]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-152258: Add curses.window.dupwin() (GH-152259)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 26 Jun 2026 14:28:53 +0000 (17:28 +0300)
committerGitHub <noreply@github.com>
Fri, 26 Jun 2026 14:28:53 +0000 (14:28 +0000)
commit49d484e4b1665fcb546075edbee429b8184a9d73
tree691e97b741c99717c10d0f4793f8dc390318bbb4
parent3ffda34f5cd3809a8755c9596948e4e477661d5f
gh-152258: Add curses.window.dupwin() (GH-152259)

dupwin() returns a new window that is an independent duplicate of an existing
one -- same size, position, contents and attributes, but with its own cell
buffer, so changes to one do not affect the other.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Doc/library/curses.rst
Doc/whatsnew/3.16.rst
Lib/test/test_curses.py
Misc/NEWS.d/next/Library/2026-06-26-13-40-00.gh-issue-152258.Qe7Lm3.rst [new file with mode: 0644]
Modules/_cursesmodule.c
Modules/clinic/_cursesmodule.c.h