Skip to content

Clarify public name of curses.window #87904

Description

@rmccampbell7
BPO 43738
Nosy @serhiy-storchaka

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 = None
closed_at = None
created_at = <Date 2021-04-05.23:37:41.319>
labels = ['type-feature', '3.9', '3.10', 'docs']
title = 'Clarify public name of curses.window'
updated_at = <Date 2021-04-06.07:44:00.293>
user = 'https://bugs.python.org/rmccampbell7'

bugs.python.org fields:

activity = <Date 2021-04-06.07:44:00.293>
actor = 'serhiy.storchaka'
assignee = 'docs@python'
closed = False
closed_date = None
closer = None
components = ['Documentation']
creation = <Date 2021-04-05.23:37:41.319>
creator = 'rmccampbell7'
dependencies = []
files = []
hgrepos = []
issue_num = 43738
keywords = []
message_count = 2.0
messages = ['390266', '390289']
nosy_count = 3.0
nosy_names = ['docs@python', 'serhiy.storchaka', 'rmccampbell7']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue43738'
versions = ['Python 3.9', 'Python 3.10']

Linked PRs

Activity

  1. rmccampbell7 commented on Apr 5, 2021

    rmccampbell7mannequin
    MannequinAuthor

    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.

    @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).

  2. added
    docsDocumentation in the Doc dir
    type-featureA feature request or enhancement
    on Apr 5, 2021
  3. serhiy-storchaka commented on Apr 6, 2021

    @serhiy-storchaka
    Member

    It could help also in help().

  4. transferred this issue fromon Apr 10, 2022
  5. 5 remaining items

  6. added
    3.15bugs and security fixes
    3.16new features, bugs and security fixes
    on Jun 18, 2026
  7. serhiy-storchaka commented on Jun 18, 2026

    @serhiy-storchaka
    Member

    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.

  8. added 3 commits that reference this issue on Jun 24, 2026
  9. serhiy-storchaka commented on Jun 27, 2026

    @serhiy-storchaka
    Member

    And now, python -m pydoc curses and python -m pydoc curses.panel show also all classes and their methods.

  10. moved this from Features to Done in Curses issueson Jun 27, 2026
  11. added 4 commits that reference this issue on Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

3.13only security fixes3.14bugs and security fixes3.15bugs and security fixes3.16new features, bugs and security fixesdocsDocumentation in the Doc dirtype-featureA feature request or enhancement

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions