]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-153395: Accept curses.complexchar in curses.ascii predicates and conversions ...
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 17 Jul 2026 08:10:21 +0000 (11:10 +0300)
committerGitHub <noreply@github.com>
Fri, 17 Jul 2026 08:10:21 +0000 (11:10 +0300)
commitabdd7aea18bde039fe35983b5c0d8036bc16f1a7
treec3e85fc7d5e6aefe39fe30474175d503d45b1995
parent456f3a713eb1fa62e1aa470b7ca8e23caa962c7d
gh-153395: Accept curses.complexchar in curses.ascii predicates and conversions (GH-153396)

The curses.ascii predicates and the ctrl() and unctrl() functions now accept
a curses.complexchar, classifying it by its single character.  ctrl() now
returns a non-ASCII argument unchanged instead of masking it to a control
character.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Doc/library/curses.ascii.rst
Lib/curses/ascii.py
Lib/test/test_curses.py
Misc/NEWS.d/next/Library/2026-07-09-10-14-08.gh-issue-153395.N8FuG3.rst [new file with mode: 0644]