You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2021-04-05.23:37:41.319>labels= ['type-feature', '3.9', '3.10', 'docs']
title='Clarify public name of curses.window'updated_at=<Date2021-04-06.07:44:00.293>user='https://bugs.python.org/rmccampbell7'
Until 3.8 the curses window class was not directly available in code, but now it is available as _curses.window. This is not explicitly stated in the documentation (although it is consistent with how the method signatures are written). It is useful to have a public name for the type to aid IDE's with explicit type annotations, i.e.
See python/typeshed#5180, which adds this name to type hints in the typeshed project.
This name should be more clearly documented so programmers can annotate the type without worrying that it may change (which will cause a runtime error unless it is quoted).
curses.window was already documented in GH-138414 (backported to 3.14). #151643 documents also curses.panel.panel and curses.panel.error and adds docstrings to all four classes.
Activity
rmccampbell7 commentedon Apr 5, 2021
Until 3.8 the curses window class was not directly available in code, but now it is available as
_curses.window. This is not explicitly stated in the documentation (although it is consistent with how the method signatures are written). It is useful to have a public name for the type to aid IDE's with explicit type annotations, i.e.See python/typeshed#5180, which adds this name to type hints in the typeshed project.
This name should be more clearly documented so programmers can annotate the type without worrying that it may change (which will cause a runtime error unless it is quoted).
serhiy-storchaka commentedon Apr 6, 2021
It could help also in help().
5 remaining items
serhiy-storchaka commentedon Jun 18, 2026
curses.windowwas already documented in GH-138414 (backported to 3.14). #151643 documents alsocurses.panel.panelandcurses.panel.errorand adds docstrings to all four classes.gh-87904: Document curses classes (GH-151643)
[3.15] gh-87904: Document curses classes (GH-151643) (GH-152048)
gh-87904: Report the public module name in curses types and exceptions (
serhiy-storchaka commentedon Jun 27, 2026
And now,
python -m pydoc cursesandpython -m pydoc curses.panelshow also all classes and their methods.pythongh-87904: Document curses classes (pythonGH-151643)
pythongh-87904: Document curses classes (pythonGH-151643)
[3.14] gh-87904: Document curses classes (GH-151643) (GH-153751)
[3.13] gh-87904: Document curses classes (GH-151643) (GH-153752)