Repository navigation
Clarify public name of curses.window #87904
Copy link
Copy link
Closed
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirtype-featureA feature request or enhancementA feature request or enhancement
Description
Activity
rmccampbell7 commented
on Apr 5, 2021 rmccampbell7mannequinMannequinAuthorMore actionsUntil 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.@curses.wrapper def main(stdscr: curses.window): stdscr.addstr(...)
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).
- addeddocsDocumentation in the Doc dirDocumentation in the Doc dirtype-featureA feature request or enhancementA feature request or enhancement3.9 (EOL)end of lifeend of life3.10 (EOL)end of lifeend of life
on Apr 5, 2021 - addeddocsDocumentation in the Doc dirDocumentation in the Doc dirtype-featureA feature request or enhancementA feature request or enhancement
on Apr 5, 2021 It could help also in help().
5 remaining items
- added3.15bugs and security fixesbugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixes
on Jun 18, 2026 And now,
python -m pydoc cursesandpython -m pydoc curses.panelshow also all classes and their methods.- added 4 commits that reference this issue
on Jul 15, 2026
Metadata
Metadata
Assignees
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirtype-featureA feature request or enhancementA feature request or enhancement
Projects
- StatusShow more project fieldsDone
- StatusShow more project fieldsTodo
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:
bugs.python.org fields:
Linked PRs