Skip to content

[3.15] gh-157546: Add missing docstrings in curses (GH-157547) - #157903

Merged
serhiy-storchaka merged 2 commits into
python:3.15from
serhiy-storchaka:backport-b1e2766-3.15
Oct 9, 2026
Merged

serhiy-storchaka merged 2 commits into
python:3.15from
serhiy-storchaka:backport-b1e2766-3.15

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

The Python wrappers initscr() and start_color() now use the docstrings of the wrapped C functions. Also "WindowObject" in the initscr() docstring is replaced with "window object".

The newterm() wrapper and the screen type do not exist in this branch.
(cherry picked from commit b1e2766)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…7547)

The Python wrappers initscr() and start_color() now use the docstrings
of the wrapped C functions.
(cherry picked from commit b1e2766)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@serhiy-storchaka

Copy link
Copy Markdown
Member Author

Only backported to 3.15: 3.13 and 3.14 lack several other docstrings (the window and panel types, the error exceptions), while the type docstrings were backported to the not yet released 3.15, so only these two functions are missing there.

@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) October 9, 2026 18:02
@serhiy-storchaka
serhiy-storchaka merged commit a865be0 into python:3.15 Oct 9, 2026
49 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant