…eptions
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. This matches the convention used by decimal.Decimal,
collections.deque and sqlite3.Error. The types are unchanged objects,
still reachable through the _curses and _curses_panel modules.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
This matches the convention already used by decimal.Decimal, collections.deque and sqlite3.Error, and makes the documented public names usable in tracebacks and help(). The types are unchanged objects, still reachable through _curses and _curses_panel.