]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-87904: Report the public module name in curses types and exceptions (GH-152341)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 27 Jun 2026 07:10:11 +0000 (10:10 +0300)
committerGitHub <noreply@github.com>
Sat, 27 Jun 2026 07:10:11 +0000 (10:10 +0300)
commitfd63e21c0b190812556696211ef6bbe286b92075
tree8934c9b3267afd366eb68a76cf7cbdead5e31fb7
parent389e00f13fb5b20b424980b08678753441db7529
gh-87904: Report the public module name in curses types and exceptions (GH-152341)

The curses C types and exceptions now set their tp_name to the public
module, so __module__, repr() and help() report curses.window,
curses.complexchar, curses.complexstr, curses.screen, curses.error,
curses.panel.panel and curses.panel.error instead of the underscore
extension modules.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Lib/test/test_curses.py
Misc/NEWS.d/next/Library/2026-06-26-22-06-07.gh-issue-87904.F71C70.rst [new file with mode: 0644]
Modules/_curses_panel.c
Modules/_cursesmodule.c