]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
96 min ago[3.14] gh-154275: Fix cleanup code in `_Py_make_parameters` (GH-154341) (#154343) 3.14
Miss Islington (bot) [Tue, 21 Jul 2026 10:53:06 +0000 (12:53 +0200)] 
[3.14] gh-154275: Fix cleanup code in `_Py_make_parameters` (GH-154341) (#154343)

gh-154275: Fix cleanup code in `_Py_make_parameters` (GH-154341)
(cherry picked from commit 196e16d54f9f06f566c52e7bca3b5213a8a64223)

Co-authored-by: sobolevn <mail@sobolevn.me>
3 hours ago[3.14] gh-154275: Do not crash on deeply nested `__parameters__` in `GenericAlias...
sobolevn [Tue, 21 Jul 2026 09:18:51 +0000 (12:18 +0300)] 
[3.14] gh-154275: Do not crash on deeply nested `__parameters__` in `GenericAlias` (GH-154277) (#154339)

(cherry picked from commit 1034e07b7d55642c3a46252e6b0a631c2df588d2)

4 hours ago[3.14] gh-154325: Skip test_add_file_after_2107() if the file system rejects the...
Miss Islington (bot) [Tue, 21 Jul 2026 07:47:07 +0000 (09:47 +0200)] 
[3.14] gh-154325: Skip test_add_file_after_2107() if the file system rejects the timestamp (GH-154328) (GH-154332)

Some file systems (UFS and ZFS on illumos) reject timestamps that do not
fit in 32 bits with EOVERFLOW instead of raising OverflowError.
(cherry picked from commit 63a2709b700d5532b8925caca5bc8b9437e7a1f3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
6 hours ago[3.14] gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926...
Miss Islington (bot) [Tue, 21 Jul 2026 05:51:12 +0000 (07:51 +0200)] 
[3.14] gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926) (GH-154323)

"$" does not match before "\r" even in the MULTILINE mode, so such a
field was not found and the delimiter was guessed from character
frequencies instead, which could give a letter.
(cherry picked from commit 70f7c6c0f2ddfd3b447946f1b926776b2a344703)

Co-authored-by: Zhou Wei <lilaboc.cn@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
8 hours ago[3.14] gh-154307: Fix TemporaryDirectory cleanup on DragonFly BSD (GH-154309) (GH...
Miss Islington (bot) [Tue, 21 Jul 2026 03:54:27 +0000 (05:54 +0200)] 
[3.14] gh-154307: Fix TemporaryDirectory cleanup on DragonFly BSD (GH-154309) (GH-154312)

On DragonFly BSD, removing a file or directory with the UF_NOUNLINK flag
fails with EISDIR (IsADirectoryError) instead of EPERM, so the cleanup did
not reset the flags.  Handle IsADirectoryError the same as PermissionError.
(cherry picked from commit 1c1088b1da5a7484b7b04e90ccc47aa362e709eb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
8 hours ago[3.14] gh-154308: Clear file flags in os_helper.rmtree() (GH-154310) (GH-154315)
Miss Islington (bot) [Tue, 21 Jul 2026 03:51:33 +0000 (05:51 +0200)] 
[3.14] gh-154308: Clear file flags in os_helper.rmtree() (GH-154310) (GH-154315)

On BSD systems a test may leave behind files or directories with flags
such as UF_IMMUTABLE or UF_NOUNLINK set, which prevent the directory from
being modified or removed.  Clear the flags before removing, so cleaning
up a temporary directory does not fail.
(cherry picked from commit 1f649fecb645d70b9c48268839e4177d8fe4e1d1)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
16 hours ago[3.14] gh-154291: Fix socket.has_dualstack_ipv6() on DragonFly BSD (GH-154292) (GH...
Miss Islington (bot) [Mon, 20 Jul 2026 20:25:57 +0000 (22:25 +0200)] 
[3.14] gh-154291: Fix socket.has_dualstack_ipv6() on DragonFly BSD (GH-154292) (GH-154300)

On DragonFly BSD setsockopt(IPPROTO_IPV6, IPV6_V6ONLY, 0) succeeds without
actually clearing the flag, so has_dualstack_ipv6() wrongly returned True.
Verify with getsockopt() that IPV6_V6ONLY was cleared.
(cherry picked from commit c7bbf040e721781be8f11a3b0716220835d4de2f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
16 hours ago[3.14] gh-154283: Make threading.get_native_id() unique across processes on DragonFly...
Serhiy Storchaka [Mon, 20 Jul 2026 20:21:13 +0000 (23:21 +0300)] 
[3.14] gh-154283: Make threading.get_native_id() unique across processes on DragonFly (GH-154287) (GH-154297)

On DragonFly BSD lwp_gettid() is only unique within a process (the main
thread is always LWP 1), so combine it with the process id, like Solaris.
(cherry picked from commit 53597df11e2d9f01ade2529c147df24b49685878)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
16 hours ago[3.14] gh-154289: Fix test_socket.testGetServBy on DragonFly (GH-154290) (GH-154295)
Miss Islington (bot) [Mon, 20 Jul 2026 20:18:41 +0000 (22:18 +0200)] 
[3.14] gh-154289: Fix test_socket.testGetServBy on DragonFly (GH-154290) (GH-154295)

DragonFly lists "echo 4/ddp" before "echo 7/tcp" in /etc/services, like
FreeBSD, so avoid the "echo" service there too.
(cherry picked from commit 96059f9446510f594c4148d53bd1a4e3532af697)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
17 hours ago[3.14] gh-154279: Skip readline completion tests that fail on DragonFly and illumos...
Serhiy Storchaka [Mon, 20 Jul 2026 19:11:05 +0000 (22:11 +0300)] 
[3.14] gh-154279: Skip readline completion tests that fail on DragonFly and illumos (GH-154280) (GH-154288)

They are already skipped on FreeBSD, where a backspace does not remove
the auto-indentation.  The same happens on DragonFly and illumos.

(cherry picked from commit e81f19052ae1dad6bfaa240f3e56c2b34129a8fd)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
17 hours ago[3.14] gh-154240: Skip cmsg truncation socket tests on OpenBSD and DragonFly (GH...
Miss Islington (bot) [Mon, 20 Jul 2026 19:06:59 +0000 (21:06 +0200)] 
[3.14] gh-154240: Skip cmsg truncation socket tests on OpenBSD and DragonFly (GH-154244) (GH-154285)

(cherry picked from commit eca3b26067a48bf18e59648695ee1a7bc36534fc)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
18 hours ago[3.14] gh-125860: Skip separate-SCM_RIGHTS socket tests on NetBSD, OpenBSD and Dragon...
Miss Islington (bot) [Mon, 20 Jul 2026 18:24:17 +0000 (20:24 +0200)] 
[3.14] gh-125860: Skip separate-SCM_RIGHTS socket tests on NetBSD, OpenBSD and DragonFly (GH-154239) (GH-154246)

(cherry picked from commit 9cfa08c80d588931ff4644c885f31598cf2b725f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
21 hours ago[3.14] gh-154167: Fix test suite hang when SIGINT is ignored (GH-154168) (GH-154266)
Miss Islington (bot) [Mon, 20 Jul 2026 14:56:20 +0000 (16:56 +0200)] 
[3.14] gh-154167: Fix test suite hang when SIGINT is ignored (GH-154168) (GH-154266)

(cherry picked from commit 1047cbb9746f959f6787f2c393bd79cbae6100c5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
21 hours ago[3.14] gh-154258: Fix mmap.resize() crash on NetBSD growing a shared anonymous mappin...
Miss Islington (bot) [Mon, 20 Jul 2026 14:34:24 +0000 (16:34 +0200)] 
[3.14] gh-154258: Fix mmap.resize() crash on NetBSD growing a shared anonymous mapping (GH-154259) (GH-154263)

NetBSD mremap() returns a mapping whose grown region is not backed when
growing a shared anonymous mapping, so accessing it crashes.  Reject it
with ValueError, as is already done on Linux.
(cherry picked from commit 542b98293108a84fa5d904fb6dcf8bfb5080ec93)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
23 hours ago[3.14] gh-154225: Fix os.openpty() acquiring a controlling terminal on Solaris (GH...
Serhiy Storchaka [Mon, 20 Jul 2026 13:11:32 +0000 (16:11 +0300)] 
[3.14] gh-154225: Fix os.openpty() acquiring a controlling terminal on Solaris (GH-154229) (GH-154256)

(cherry picked from commit a0caab9db6c2655d8429279892848d817343f99d)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
25 hours ago[3.14] Fix two typos in two stdlib docstrings (GH-153479) (#154253)
Miss Islington (bot) [Mon, 20 Jul 2026 10:49:25 +0000 (12:49 +0200)] 
[3.14] Fix two typos in two stdlib docstrings (GH-153479) (#154253)

(cherry picked from commit e0293b0de4071ca591e36fd42ef04285b91ef546)

Co-authored-by: Javad Koushyar <javadmokhtari@outlook.com>
26 hours ago[3.14] Fix typo in C API Type Object Structures documentation (GH-154249) (#154251)
Miss Islington (bot) [Mon, 20 Jul 2026 10:15:11 +0000 (12:15 +0200)] 
[3.14] Fix typo in C API Type Object Structures documentation (GH-154249) (#154251)

(cherry picked from commit 86e1fed859dab3de8f069208ef33cee24d816c79)

Co-authored-by: Michael Newman <michael.b.newman@gmail.com>
26 hours ago[3.14] gh-154227: Fix os.posix_openpt() on OpenBSD (GH-154228) (GH-154236)
Miss Islington (bot) [Mon, 20 Jul 2026 09:44:43 +0000 (11:44 +0200)] 
[3.14] gh-154227: Fix os.posix_openpt() on OpenBSD (GH-154228) (GH-154236)

(cherry picked from commit d01b90cf33f8f77172eb9f445dbc2ed0055ffd3b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
26 hours ago[3.14] gh-154226: Fix test_posix_pty_functions on Solaris (GH-154230) (GH-154242)
Miss Islington (bot) [Mon, 20 Jul 2026 09:36:03 +0000 (11:36 +0200)] 
[3.14] gh-154226: Fix test_posix_pty_functions on Solaris (GH-154230) (GH-154242)

(cherry picked from commit 3d998611a48b45691894c687ac0ec52b54df52bf)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
26 hours ago[3.14] gh-154218: Fix test_posix_fallocate on file systems that do not support posix_...
Miss Islington (bot) [Mon, 20 Jul 2026 09:35:22 +0000 (11:35 +0200)] 
[3.14] gh-154218: Fix test_posix_fallocate on file systems that do not support posix_fallocate() (GH-154219) (GH-154233)

(cherry picked from commit 051b6e07f9e43980d99c563d67bea32144238461)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
27 hours ago[3.14] gh-154211: Skip C-stack exhaustion tests when the C stack is huge (GH-154212...
Serhiy Storchaka [Mon, 20 Jul 2026 09:23:42 +0000 (12:23 +0300)] 
[3.14] gh-154211: Skip C-stack exhaustion tests when the C stack is huge (GH-154212) (GH-154231)

(cherry picked from commit 863b31268c3160af1febcee4c79ff6ed380f328f)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
29 hours ago[3.14] gh-127049: fix race condition in asyncio signalling an unrelated process with...
Miss Islington (bot) [Mon, 20 Jul 2026 07:27:43 +0000 (09:27 +0200)] 
[3.14] gh-127049: fix race condition in asyncio signalling an unrelated process with ThreadedChildWatcher (GH-153810) (#154221)

gh-127049: fix race condition in asyncio signalling an unrelated process with ThreadedChildWatcher (GH-153810)
(cherry picked from commit 2875d1dc913d2d7810465da4bc3899305da5abc7)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
29 hours ago[3.14] Fix grammatical typos in documentation (GH-154181) (#154191)
Miss Islington (bot) [Mon, 20 Jul 2026 06:35:36 +0000 (08:35 +0200)] 
[3.14] Fix grammatical typos in documentation (GH-154181) (#154191)

Fix grammatical typos in documentation (GH-154181)
(cherry picked from commit 40f7fbf4a53d2f2cb0414a22f891d6e7e288280c)

Co-authored-by: ilya <110783299+bontail@users.noreply.github.com>
30 hours ago[3.14] gh-154046: docs: fix dead link to codahale timing attacks article in secrets...
Miss Islington (bot) [Mon, 20 Jul 2026 06:24:26 +0000 (08:24 +0200)] 
[3.14] gh-154046: docs: fix dead link to codahale timing attacks article in secrets.rst (GH-154047) (#154214)

gh-154046: docs: fix dead link to codahale timing attacks article in secrets.rst (GH-154047)
(cherry picked from commit e8042329b6bb2472b16645c559e4223486b85965)

Co-authored-by: Pranav Choudhary <pranav.nstblr@gmail.com>
31 hours ago[3.14] gh-119710: fix asyncio Process.wait() to finish on process exit and not wait...
Miss Islington (bot) [Mon, 20 Jul 2026 05:26:22 +0000 (07:26 +0200)] 
[3.14] gh-119710: fix asyncio Process.wait() to finish on process exit and not wait for closing of pipes (GH-151983) (#154171)

gh-119710: fix asyncio Process.wait() to finish on process exit and not wait for closing of pipes (GH-151983)
(cherry picked from commit f2521324e6bdf331460abec7c2a88e2d3736b91c)

Co-authored-by: Tobias Alex-Petersen <tobias.alex.petersen@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
31 hours ago[3.14] fix ResourceWarnings of test_kill_issue43884 in asyncio (GH-154178) (#154184)
Miss Islington (bot) [Mon, 20 Jul 2026 04:55:10 +0000 (06:55 +0200)] 
[3.14] fix ResourceWarnings of test_kill_issue43884 in asyncio (GH-154178) (#154184)

fix ResourceWarnings of test_kill_issue43884 in asyncio (GH-154178)
(cherry picked from commit 6df4993bb646e7f1a30f37c3f65a5b4c9c033cb0)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
41 hours ago[3.14] gh-153864: Fix curses window.insch() for non-ASCII characters on a wide build...
Serhiy Storchaka [Sun, 19 Jul 2026 19:28:00 +0000 (22:28 +0300)] 
[3.14] gh-153864: Fix curses window.insch() for non-ASCII characters on a wide build (GH-153865) (GH-154152)

On a wide build, winsch() does not locale-decode a byte above 127, unlike
waddch(), so insch()/mvinsch() stored the wrong character for a non-ASCII
byte of an 8-bit locale ('€' 0xA4 under ISO-8859-15 became U+00A4 '¤').
Decode the byte with btowc() and insert it as a wide character, as addch()
effectively does.

(cherry picked from commit 223cbffca6df7e4c8c77b360a4e6ba0472255643)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
44 hours ago[3.14] gh-154144: Fix false positive from the stdbool.h guard in _testcapimodule...
Miss Islington (bot) [Sun, 19 Jul 2026 15:33:59 +0000 (17:33 +0200)] 
[3.14] gh-154144: Fix false positive from the stdbool.h guard in _testcapimodule.c (GH-154145) (GH-154158)

(cherry picked from commit 8d11eb0c31efcfd1d504650a564d9a4b45cba721)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
45 hours ago[3.14] gh-139806: Mention pickle error changes in What's New in 3.14 (GH-154020)...
Miss Islington (bot) [Sun, 19 Jul 2026 15:28:20 +0000 (17:28 +0200)] 
[3.14] gh-139806: Mention pickle error changes in What's New in 3.14 (GH-154020) (GH-154162)

The gh-122311 changes made pickle.dump() and pickle.dumps() raise
PicklingError for some failures that previously raised AttributeError,
ImportError, ValueError or UnicodeEncodeError, depending on the
implementation.
Add an entry about this in the "Porting to Python 3.14" section.
(cherry picked from commit eb447081ed8182f825fa01953ec87cff41f3d585)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
45 hours ago[3.14] gh-153862: Fix curses window.inch() for non-ASCII characters on a wide build...
Serhiy Storchaka [Sun, 19 Jul 2026 15:19:15 +0000 (18:19 +0300)] 
[3.14] gh-153862: Fix curses window.inch() for non-ASCII characters on a wide build (GH-153863) (GH-154151)

On a wide build, winch() returns the low 8 bits of the character's code
point with no locale conversion, so inch()/mvinch() disagreed with instr()
for a non-ASCII character of an 8-bit locale ('€' under ISO-8859-15 gave
0xAC instead of 0xA4).  Re-encode the cell to its locale byte via wctob(),
as ncurses does for getbkgd().

(cherry picked from commit a83aaa91490d5885949eb0780a37b15963b6d0f3)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
45 hours ago[3.14] improve json test coverage (GH-154123) (GH-154135)
Miss Islington (bot) [Sun, 19 Jul 2026 15:16:47 +0000 (17:16 +0200)] 
[3.14] improve json test coverage (GH-154123) (GH-154135)

Add test that covers the except block on line 106 of decoder.py
(cherry picked from commit ee1e48ebd8194cd5984714021c4df85dbb93c6df)

Co-authored-by: David <slavicek.david29@gmail.com>
45 hours ago[3.14] gh-153932: protect read of en_index during enumerate.reduce (GH-154118) (GH...
Miss Islington (bot) [Sun, 19 Jul 2026 15:01:07 +0000 (17:01 +0200)] 
[3.14] gh-153932: protect read of en_index during enumerate.reduce (GH-154118) (GH-154129)

gh-153932: protect read of en_index during enumerate.reduce (GH-154118)
(cherry picked from commit 1604043caf0a00fe4ea9f6e31e389c4cf8b8baab)

Co-authored-by: L. Le <lelynn11@gmail.com>
2 days ago[3.14] Add test for explicit `cls` argument bypassing default JSON decoder (GH-154094...
Miss Islington (bot) [Sun, 19 Jul 2026 12:27:04 +0000 (14:27 +0200)] 
[3.14] Add test for explicit `cls` argument bypassing default JSON decoder (GH-154094) (#154113)

Add test for explicit `cls` argument bypassing default JSON decoder (GH-154094)

* Add test for skipped `cls=None` case

* Fix lint

* Add new line between classes
(cherry picked from commit 5380589615515fa9e2c48820073a3fd8e32a930d)

Co-authored-by: Dominic H <dom@dominic.sk>
2 days ago[3.14] Document getopt and gnu_getopt longopts argument as string (GH-153976) (#154096)
Miss Islington (bot) [Sun, 19 Jul 2026 11:16:37 +0000 (13:16 +0200)] 
[3.14] Document getopt and gnu_getopt longopts argument as string (GH-153976) (#154096)

Document getopt and gnu_getopt longopts argument as string (GH-153976)

Document getopt and gnu_getopt longopts as string
(cherry picked from commit 16562f1ce31ba654c42eee644f253bb31cff9f9d)

Co-authored-by: Florian Freitag <flohacksfriday@gmail.com>
2 days ago[3.14] Improve colorsys coverage (GH-153982) (#154077)
Miss Islington (bot) [Sun, 19 Jul 2026 11:06:14 +0000 (13:06 +0200)] 
[3.14] Improve colorsys coverage (GH-153982) (#154077)

Improve colorsys coverage (GH-153982)

* improve colorsys coverage

* add subtest
(cherry picked from commit 54b00c055210d738f5c3fb590ab85bde80b46ac6)

Co-authored-by: MonadChains <monadchains@gmail.com>
2 days ago[3.14] gh-149319: Make `asyncio` REPL respect `-I` and `-E` options (GH-149405) ...
Miss Islington (bot) [Sun, 19 Jul 2026 10:07:07 +0000 (12:07 +0200)] 
[3.14] gh-149319: Make `asyncio` REPL respect `-I` and `-E` options (GH-149405) (#154074)

gh-149319: Make `asyncio` REPL respect `-I` and `-E` options (GH-149405)
(cherry picked from commit 7f8fc07e850d7b27a220c815db8c8abd545286c3)

Co-authored-by: Jonathan Dung <jonathandung@yahoo.com>
2 days ago[3.14] Fix typo "interruptability" in Logging Cookbook documentation (GH-154027)...
Miss Islington (bot) [Sun, 19 Jul 2026 09:01:26 +0000 (11:01 +0200)] 
[3.14] Fix typo "interruptability" in Logging Cookbook documentation (GH-154027) (#154067)

(cherry picked from commit 30541f202f81ab3d3da5a6ac10c07fb6f1e4dcb4)

Co-authored-by: Michael Newman <michael.b.newman@gmail.com>
2 days ago[3.14] gh-154001: Avoid division by zero in binomialvariate (GH-154004) (GH-154051)
Miss Islington (bot) [Sun, 19 Jul 2026 08:42:20 +0000 (10:42 +0200)] 
[3.14] gh-154001: Avoid division by zero in binomialvariate (GH-154004) (GH-154051)

(cherry picked from commit 1f1374009b681814642ca199136815b223fd90ae)

Co-authored-by: Łukasz <lukaszlapinski7@gmail.com>
2 days ago[3.14] gh-154058: Fix failing C API docs check (GH-154061)
Peter Bierma [Sun, 19 Jul 2026 08:13:12 +0000 (04:13 -0400)] 
[3.14] gh-154058: Fix failing C API docs check (GH-154061)

2 days ago[3.14] gh-153896: Deduplicate unhashable arguments in `typing.Literal` (GH-153914...
Miss Islington (bot) [Sun, 19 Jul 2026 07:56:06 +0000 (09:56 +0200)] 
[3.14] gh-153896: Deduplicate unhashable arguments in `typing.Literal` (GH-153914) (#153956)

gh-153896: Deduplicate unhashable arguments in `typing.Literal` (GH-153914)
(cherry picked from commit a53b5b126749133e50692fe0c3729f5580ee8500)

Co-authored-by: Massimiliano Bruni <massimiliano.bruni@icloud.com>
2 days ago[3.14] Improve `getopt.getopt` and `getopt.gnu_getopt` test coverage (GH-153933)...
Miss Islington (bot) [Sat, 18 Jul 2026 22:07:18 +0000 (00:07 +0200)] 
[3.14] Improve `getopt.getopt` and `getopt.gnu_getopt` test coverage (GH-153933) (GH-153973)

(cherry picked from commit 0fa144bb78042fb91c703678bb378b4dbce3cb95)

Co-authored-by: Florian Freitag <flohacksfriday@gmail.com>
2 days ago[3.14] Docs: point `uu` module users to the `"uu"` encoding (GH-153657) (#154025)
Miss Islington (bot) [Sat, 18 Jul 2026 19:54:21 +0000 (21:54 +0200)] 
[3.14] Docs: point `uu` module users to the `"uu"` encoding (GH-153657) (#154025)

(cherry picked from commit a1d580430c81c298d267ec255d544d0fa1d197c4)

Co-authored-by: Ondřej Hošek <ondra.hosek@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
2 days ago[3.14] gh-150663: Document that PyErr_SetRaisedException accepts null (GH-153046...
Miss Islington (bot) [Sat, 18 Jul 2026 18:17:48 +0000 (20:17 +0200)] 
[3.14] gh-150663: Document that PyErr_SetRaisedException accepts null (GH-153046) (#154022)

gh-150663: Document that PyErr_SetRaisedException accepts null (GH-153046)
(cherry picked from commit a0c8329218402396478be92b691043453fc28c32)

Co-authored-by: Andrii Hrimov <andrew.hrimov@gmail.com>
2 days ago[3.14] Fix parameter name of read_mime_types() in mimetypes docs (GH-153974) (#153978)
Miss Islington (bot) [Sat, 18 Jul 2026 16:48:44 +0000 (18:48 +0200)] 
[3.14] Fix parameter name of read_mime_types() in mimetypes docs (GH-153974) (#153978)

(cherry picked from commit c89b5effa11366e28cb4a290a302a534352b768f)

Co-authored-by: Raúl Santos Quirós <130504291+raul-sq@users.noreply.github.com>
2 days ago[3.14] Add test coverage to check execution of GetoptError.__str__ (GH-153941) (...
Miss Islington (bot) [Sat, 18 Jul 2026 15:34:41 +0000 (17:34 +0200)] 
[3.14] Add test coverage to check execution of GetoptError.__str__ (GH-153941) (#153998)

Add test coverage to check execution of GetoptError.__str__ (GH-153941)

* Increase test coverage of getopt to check execution of GetoptError.__str__

* Add test coverage to check execution of GetoptError.__str__

* Add test coverage to check execution of GetoptError.__str__

* Add test coverage to check execution of GetoptError.__str__

* Add test coverage to check execution of GetoptError.__str__

* Add test coverage to check execution of GetoptError.__str__
(cherry picked from commit 9adef68a7956744b804d09c8b8b06c8c171053e5)

Co-authored-by: Manith Hettiarachchilage <manithhetti@gmail.com>
2 days ago[3.14] gh-141004: Document unstable perf map functions in `ceval.h` (GH-143492) ...
Peter Bierma [Sat, 18 Jul 2026 15:10:05 +0000 (11:10 -0400)] 
[3.14] gh-141004: Document unstable perf map functions in `ceval.h` (GH-143492) (GH-153994)

(cherry picked from commit 6453065db9ff31e3f737240030f8311d2b087851)

Co-authored-by: Yashraj <yashrajpala8@gmail.com>
2 days ago[3.14] gh-141004: Document unstable executable kind macros from `pyframe.h` (GH-14349...
Peter Bierma [Sat, 18 Jul 2026 15:01:36 +0000 (11:01 -0400)] 
[3.14] gh-141004: Document unstable executable kind macros from `pyframe.h` (GH-143490) (GH-153991)

(cherry picked from commit dc62ba84ab2b83d70dee111d3feec1a6f1c3f69d)

Co-authored-by: Yashraj <yashrajpala8@gmail.com>
2 days ago[3.14] gh-141004: Document remaining `PyCF_*` compiler flag macros (GH-153958) (GH...
Miss Islington (bot) [Sat, 18 Jul 2026 14:49:50 +0000 (16:49 +0200)] 
[3.14] gh-141004: Document remaining `PyCF_*` compiler flag macros (GH-153958) (GH-153985)

(cherry picked from commit 0a772f2967c77a2137c45d7db1fcde9b71afacde)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
2 days ago[3.14] gh-71896: Add a docs warning about trailing newlines ignored by `difflib.HtmlD...
Miss Islington (bot) [Sat, 18 Jul 2026 14:11:27 +0000 (16:11 +0200)] 
[3.14] gh-71896: Add a docs warning about trailing newlines ignored by `difflib.HtmlDiff` (GH-153930) (GH-153966)

(cherry picked from commit 755d97167f6f5d4361c790f8f18df76cae8f2ad2)

Co-authored-by: Lenormand Julien <lenormand.julien0@gmail.com>
2 days ago[3.14] gh-153761: Fix asyncio sock_accept() dropping a connection when cancelled...
Miss Islington (bot) [Sat, 18 Jul 2026 14:05:44 +0000 (16:05 +0200)] 
[3.14] gh-153761: Fix asyncio sock_accept() dropping a connection when cancelled (GH-153762) (#153828)

gh-153761: Fix asyncio sock_accept() dropping a connection when cancelled (GH-153762)
(cherry picked from commit b090d06e7331c40b3c94e70b35a09f785b279e17)

Co-authored-by: Timofei <128279579+deadlovelll@users.noreply.github.com>
2 days ago[3.14] Docs: Fix typo in the pymanager command name (GH-153877) (GH-153961)
Miss Islington (bot) [Sat, 18 Jul 2026 13:35:02 +0000 (15:35 +0200)] 
[3.14] Docs: Fix typo in the pymanager command name (GH-153877) (GH-153961)

(cherry picked from commit 32cfc88d6a5561c510a0d7bb954251e39b598dd5)

Co-authored-by: Sam Katakouzinos <sam.katakouzinos@gmail.com>
2 days ago[3.14] gh-122102: Fix/improve docs of descriptor-related tools in `inspect` (GH-153949)
Miss Islington (bot) [Sat, 18 Jul 2026 13:31:43 +0000 (15:31 +0200)] 
[3.14] gh-122102: Fix/improve docs of descriptor-related tools in `inspect` (GH-153949)

(cherry picked from commit 87f8fc8e00704396a0c598c8843cdde373c0ea4c)

Co-authored-by: Jan Kaliszewski <zuo@kaliszewski.net>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2 days ago[3.14] gh-153908: Fix data race in `itertools.count.__repr__` (GH-153917) (GH-153952)
Miss Islington (bot) [Sat, 18 Jul 2026 13:29:04 +0000 (15:29 +0200)] 
[3.14] gh-153908: Fix data race in `itertools.count.__repr__` (GH-153917) (GH-153952)

(cherry picked from commit 5200f1192428becab0c31db98e7baa97f3c3c3e2)

Co-authored-by: John <me@joh.ng>
2 days ago[3.14] Test `calendar.February` deprecation (GH-153893) (#153920)
Miss Islington (bot) [Sat, 18 Jul 2026 13:09:29 +0000 (15:09 +0200)] 
[3.14] Test `calendar.February` deprecation (GH-153893) (#153920)

Test `calendar.February` deprecation (GH-153893)

Calendar related tests now check if both deprecated constants surface the proper warnings.

* extended `test_deprecation_warning` to check `constants.February` as well
(cherry picked from commit 31c81e6ee3b1c874a807ea161182b83c6c607713)

Co-authored-by: vjabuilds <77214151+vjabuilds@users.noreply.github.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
2 days ago[3.14] gh-153934: Correct documented parameter in `calendar.weekheader` from `n`...
Miss Islington (bot) [Sat, 18 Jul 2026 12:52:54 +0000 (14:52 +0200)] 
[3.14] gh-153934: Correct documented parameter in `calendar.weekheader` from `n` to `width` (GH-153942) (GH-153944)

(cherry picked from commit 7486c7b3df7ff26ac23390947102f2604f55243a)

Co-authored-by: Marta <marta.podziewska@gmail.com>
2 days ago[3.14] gh-153926: Fix documented parameter name for `calendar.calendar` and `calendar...
Miss Islington (bot) [Sat, 18 Jul 2026 12:52:23 +0000 (14:52 +0200)] 
[3.14] gh-153926: Fix documented parameter name for `calendar.calendar` and `calendar.prcal` (GH-153927) (#153938)

gh-153926: Fix documented parameter name for `calendar.calendar` and `calendar.prcal` (GH-153927)

gh-153926: Fix documented parameter name for calendar.calendar and calendar.prcal

calendar.calendar() and calendar.prcal() are bound methods of the
module's TextCalendar instance, whose first parameter is named theyear,
but the documentation named it year, so the documented keyword raised
TypeError. Update the documentation to match the real signature, which
also matches the sibling month() and prmonth() functions.
(cherry picked from commit d12434b4661c6be7430002e66a54d920f7d4ca7f)

Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
3 days ago[3.14] gh-153808: Replace obsolete 'condition list' verbiage with 'expression list...
Miss Islington (bot) [Sat, 18 Jul 2026 11:49:18 +0000 (13:49 +0200)] 
[3.14] gh-153808: Replace obsolete 'condition list' verbiage with 'expression list' in eval() docs (GH-153924)

(cherry picked from commit c5e97ed6351766deff488ea6d95e4aa0853943ae)

Co-authored-by: palakkhinvasara <109575264+palakkhinvasara@users.noreply.github.com>
3 days ago[3.14] Fix punctuation in `Doc/library/concurrent.interpreters.rst` (GH-153894) ...
Miss Islington (bot) [Sat, 18 Jul 2026 10:46:07 +0000 (12:46 +0200)] 
[3.14] Fix punctuation in `Doc/library/concurrent.interpreters.rst` (GH-153894) (#153916)

Fix punctuation in `Doc/library/concurrent.interpreters.rst` (GH-153894)
(cherry picked from commit 6ebb22cb83d8ce05f7136166d1674d0a14a29459)

Co-authored-by: Raúl Santos Quirós <130504291+raul-sq@users.noreply.github.com>
3 days ago[3.14] gh-153899: Fix documented parameter names for `filecmp.cmpfiles` (GH-153900...
Miss Islington (bot) [Sat, 18 Jul 2026 10:42:20 +0000 (12:42 +0200)] 
[3.14] gh-153899: Fix documented parameter names for `filecmp.cmpfiles` (GH-153900) (#153911)

gh-153899: Fix documented parameter names for `filecmp.cmpfiles` (GH-153900)

Update the `filecmp.cmpfiles()` docs to match its actual signature.
(cherry picked from commit 26e7c4fe3f68668abbc96fc4ac57c2d5ef8048b5)

Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
3 days ago[3.14] gh-150583: Fix zstd compression level with digested ZstdDict (GH-150586) ...
Miss Islington (bot) [Sat, 18 Jul 2026 07:21:38 +0000 (09:21 +0200)] 
[3.14] gh-150583: Fix zstd compression level with digested ZstdDict (GH-150586) (#153884)

gh-150583: Fix zstd compression level with digested ZstdDict (GH-150586)
(cherry picked from commit 0983642c966d9c536416101e99b7d2b085483847)

Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
3 days ago[3.14] gh-124111: Update macOS installer to use Tcl/Tk 9.0.4. (GH-153868) (#153870)
Miss Islington (bot) [Fri, 17 Jul 2026 22:36:17 +0000 (00:36 +0200)] 
[3.14] gh-124111: Update macOS installer to use Tcl/Tk 9.0.4. (GH-153868) (#153870)

(cherry picked from commit d478cf81f770168e3fb512ce110a88774f04f549)
Co-authored-by: Ned Deily <nad@python.org>
3 days ago[3.14] gh-123471: Free-threading fixes for itertools (GH-131212) (GH-132814) (GH...
Neil Schemenauer [Fri, 17 Jul 2026 20:20:36 +0000 (13:20 -0700)] 
[3.14] gh-123471: Free-threading fixes for itertools (GH-131212) (GH-132814) (GH-135689) (GH-144402) (GH-146033) (GH-142957) (GH-153791)

Combined backport of PRs from main branch, fixing free-threading data-races in itertools:

* gh-123471: make concurrent iteration over `itertools.cycle` safe under free-threading (gh-131212)
* gh-123471: Make itertools.product and itertools.combinations thread-safe (GH-132814)
* gh-123471: Make itertools.chain thread-safe (gh-135689)
* gh-123471: Make concurrent iteration over `itertools.permutations` and `itertools.combinations_with_replacement` thread-safe (gh-144402)
* gh-123471: make concurrent iteration over itertools.accumulate thread-safe (gh-144486)
* gh-123471: Make `itertools.zip_longest` safe in the FT build (gh-146033)

(cherry picked from commit 26a1cd4e8c0c9ea1a6683abd82547ddee656ff3d)
(cherry picked from commit 847d1c2cb4014f122df64e0db0b3b554c01779c6)
(cherry picked from commit 0533c1faf27d1e50b062bb623dfad93288757f57)
(cherry picked from commit 009c8c052f5eb9f869c09029724ef194d8c161ca)
(cherry picked from commit 3a248564470075cb8c7b8a75fe7ba61f7ea341b2)
(cherry picked from commit 9214e3f33eeeb0ee862777378f98fdeb7b6944c6)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
3 days ago[3.14] gh-151644: Fix data race in sys.setdlopenflags/getdlopenflags under free-threa...
Miss Islington (bot) [Fri, 17 Jul 2026 20:13:30 +0000 (22:13 +0200)] 
[3.14] gh-151644: Fix data race in sys.setdlopenflags/getdlopenflags under free-threading (gh-151768) (gh-153789)

In free-threading builds, concurrent calls to sys.getdlopenflags() and
sys.setdlopenflags() race on interp->imports.dlopenflags.  Fix by
using FT_ATOMIC_LOAD_INT_RELAXED / FT_ATOMIC_STORE_INT_RELAXED in
_PyImport_GetDLOpenFlags and _PyImport_SetDLOpenFlags, consistent with
how analogous interpreter-state integer fields (lazy_imports_mode,
pystats_enabled) are protected.

Relaxed ordering is correct here: dlopenflags is a standalone config
integer with no ordering relationship to other memory.

(cherry picked from commit cde31ec135905472f1137dddcc8227af2430d89c)

Co-authored-by: Jiucheng(Oliver) <git.jiucheng@gmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
3 days ago[3.14] gh-150411: fix `gc_generation.count` race in free-threading (GH-150413) (GH...
Miss Islington (bot) [Fri, 17 Jul 2026 20:12:12 +0000 (22:12 +0200)] 
[3.14] gh-150411: fix `gc_generation.count` race in free-threading (GH-150413) (GH-153787)

(cherry picked from commit 12af26d17e4343c1f4ea3a1019bcc34ee76671c3)

Co-authored-by: Edward Xu <xuxiangad@gmail.com>
3 days ago[3.14] gh-149816: Fix UAF in Modules/_pickle.c (GH-150024) (GH-153719)
Neil Schemenauer [Fri, 17 Jul 2026 20:09:29 +0000 (13:09 -0700)] 
[3.14] gh-149816: Fix UAF in Modules/_pickle.c (GH-150024) (GH-153719)

(cherry picked from commit d095ceb0f420a22353271a8adaf5a83433d018e5)

Co-authored-by: Alexey Katsman <alex2007508@gmail.com>
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
3 days ago[3.14] gh-144774: Add critical section in `BaseException.__setstate__` (GH-150578...
Neil Schemenauer [Fri, 17 Jul 2026 20:08:26 +0000 (13:08 -0700)] 
[3.14] gh-144774: Add critical section in `BaseException.__setstate__` (GH-150578) (GH-153819)

(cherry picked from commit f586fd9e304e6747fdebe2477355beb059724571)

Co-authored-by: Brij Kapadia <97006829+brijkapadia@users.noreply.github.com>
3 days ago[3.14] gh-153853: Fix parameter name of calendar.setfirstweekday() in docs (GH-153851...
Miss Islington (bot) [Fri, 17 Jul 2026 18:59:14 +0000 (20:59 +0200)] 
[3.14] gh-153853: Fix parameter name of calendar.setfirstweekday() in docs (GH-153851) (#153860)

gh-153853: Fix parameter name of calendar.setfirstweekday() in docs (GH-153851)
(cherry picked from commit 1736526023a3e616d1530815880bb3b28e3433c3)

Co-authored-by: Ibrahim Shaqqou <101660458+IbrahimShaqqou@users.noreply.github.com>
3 days ago[3.14] Shut down leaked executors in `test_interpreter_pool` (GH-153780) (#153848)
Miss Islington (bot) [Fri, 17 Jul 2026 15:46:52 +0000 (17:46 +0200)] 
[3.14] Shut down leaked executors in `test_interpreter_pool` (GH-153780) (#153848)

(cherry picked from commit 8ca85b5bc5a888b8329915aff0ceb34de9373546)

Co-authored-by: Stan Ulbrych <stan@python.org>
4 days ago[3.14] gh-85943: Fix BytesWarning in the struct format cache under -bb (GH-153627...
Miss Islington (bot) [Fri, 17 Jul 2026 08:16:34 +0000 (10:16 +0200)] 
[3.14] gh-85943: Fix BytesWarning in the struct format cache under -bb (GH-153627) (GH-153835)

Normalize bytes format strings to str before using them as the cache key,
so that equal str and bytes formats no longer collide and get compared.
(cherry picked from commit 190d2ffbb969ad571fd12d4988b37519091194d5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
4 days ago[3.14] gh-153404: Silently ignore non-decimal digits in robots.txt Crawl-delay and...
Miss Islington (bot) [Fri, 17 Jul 2026 06:23:28 +0000 (08:23 +0200)] 
[3.14] gh-153404: Silently ignore non-decimal digits in robots.txt Crawl-delay and Request-rate (GH-153405) (GH-153831)

str.isdigit() returned True for non-decimal Unicode digits such as
U+00B2 SUPERSCRIPT TWO, which int() then rejected with ValueError.
(cherry picked from commit 597ec2d7e5f8bbd5a1eb9e6780444cae46cec3ea)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
4 days ago[3.14] gh-145521: Add 'infer_variance' parameter to ParamSpec class (GH-145522) ...
Jelle Zijlstra [Fri, 17 Jul 2026 02:50:00 +0000 (19:50 -0700)] 
[3.14] gh-145521: Add 'infer_variance' parameter to ParamSpec class (GH-145522) (#153824)

(cherry picked from commit 2e94f14310e8ab62f41dd01276f2c69cb3d36da2)

Co-authored-by: Kai (Kazuya Ito) <kazya.ito.dream@gmail.com>
4 days ago[3.14] gh-149162: Use _Py_LOCK_DONT_DETACH in intern_common (gh-149164) (gh-153815)
Neil Schemenauer [Thu, 16 Jul 2026 18:59:10 +0000 (11:59 -0700)] 
[3.14] gh-149162: Use _Py_LOCK_DONT_DETACH in intern_common (gh-149164) (gh-153815)

Avoids potential deadlocks with C++ static local initialization in
extensions that call PyUnicode_InternFromString during one-time
initialization.

(cherry picked from commit f62050d65743f0c895f7e6d665936c4e86aa39d5)

Co-authored-by: Sam Gross <colesbury@gmail.com>
5 days ago[3.14] gh-153630: Add `str.remove{prefix,suffix}()` to the `str` method summary ...
Miss Islington (bot) [Wed, 15 Jul 2026 18:13:38 +0000 (20:13 +0200)] 
[3.14] gh-153630: Add `str.remove{prefix,suffix}()` to the `str` method summary (GH-153629) (#153779)

(cherry picked from commit b4662e8e3b60a264486130a171047c7381f993f0)

Co-authored-by: darida12321 <73121369+darida12321@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
5 days ago[3.14] gh-153550: Modernize the older prose sections of the tkinter documentation...
Miss Islington (bot) [Wed, 15 Jul 2026 16:27:21 +0000 (18:27 +0200)] 
[3.14] gh-153550: Modernize the older prose sections of the tkinter documentation (GH-153647) (GH-153774)

Refresh the narrative "Tkinter life preserver" and "Handy reference"
sections to match the overhauled reference (gh-86726 and gh-153549).

* Rework "The packer" into a general "Geometry management" section
  covering grid, pack and place, and cross-link it with the Grid, Pack
  and Place reference classes.
* Rework "The window manager" and "Coupling widget variables", replacing
  the dated App(Frame) examples with direct Tk() and ttk examples.
* Replace page-number citations to Ousterhout's book with links to the
  relevant Tk man pages.
* Modernize the tkinter.ttk front matter and its Tcl/Tk links, and add
  cross-references between the two documents.
* Reconcile the "Packer options" and "Tk option data types" lists with
  the reference, and fill in the empty Entry index list.
* Fix the malformed target-selection list in tkinter.dnd.
(cherry picked from commit 93beea7e5a3c5a03253e6812a06f2497505aeb30)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
6 days ago[3.14] Docs: fill in descriptor C API docs (GH-146644) (GH-153760)
Boy Steven [Wed, 15 Jul 2026 11:31:06 +0000 (18:31 +0700)] 
[3.14] Docs: fill in descriptor C API docs (GH-146644) (GH-153760)

6 days ago[3.14] gh-89554: Document standard type objects in types as classes (GH-150676) ...
Serhiy Storchaka [Wed, 15 Jul 2026 11:23:22 +0000 (14:23 +0300)] 
[3.14] gh-89554: Document standard type objects in types as classes (GH-150676) (GH-153757)

Use the directive and the role "class" instead of "data" for classes
exposed in the types module.

(cherry picked from commit bc055444e4ade9e210139d07200f602a4a9feb67)

Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
6 days ago[3.14] gh-71086: Document negative offset support in struct.pack_into() and unpack_fr...
Serhiy Storchaka [Wed, 15 Jul 2026 09:52:24 +0000 (12:52 +0300)] 
[3.14] gh-71086: Document negative offset support in struct.pack_into() and unpack_from() (GH-153650) (GH-153753)

(cherry picked from commit 1706d14a2a1f009f786b8d7599e53c168b0392e0)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
6 days ago[3.14] gh-93417: Improve test_mimetypes (GH-150725) (GH-153749)
Serhiy Storchaka [Wed, 15 Jul 2026 09:12:38 +0000 (12:12 +0300)] 
[3.14] gh-93417: Improve test_mimetypes (GH-150725) (GH-153749)

* Separate tests for module-level API and for the MimeTypes class.
* Add tests for mimetypes.init() and MimeTypes() with knownfiles and with
  explicitly passed files.

(cherry picked from commit b23646adf1f484d6ee61ea04529b48443508715a)

6 days ago[3.14] gh-87904: Document curses classes (GH-151643) (GH-153751)
Serhiy Storchaka [Wed, 15 Jul 2026 09:08:35 +0000 (12:08 +0300)] 
[3.14] gh-87904: Document curses classes (GH-151643) (GH-153751)

Document the panel class and its error exception in curses.panel.rst,
using the real lowercase panel name.

(cherry picked from commit 560ff8e2021d818555884622f6865f4a0d60756f)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
6 days ago[3.14] gh-153716: Harden ttk/tkinter GUI tests against display scaling (GH-153717...
Miss Islington (bot) [Wed, 15 Jul 2026 03:33:49 +0000 (05:33 +0200)] 
[3.14] gh-153716: Harden ttk/tkinter GUI tests against display scaling (GH-153717) (GH-153738)

Compute probe coordinates from each widget's own realized geometry
instead of hardcoding pixels such as (5, 5) or width - 5, which land on
a different element, or miss it entirely, at a high display scaling.
(cherry picked from commit 87411d0742f070b1424c08b41cf3af49d377b215)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
6 days ago[3.14] Remove duplicate button_ok code in idlelib.textview (GH-153733) (#153735)
Miss Islington (bot) [Wed, 15 Jul 2026 03:31:05 +0000 (05:31 +0200)] 
[3.14] Remove duplicate button_ok code in idlelib.textview (GH-153733) (#153735)

Remove duplicate button_ok code in idlelib.textview (GH-153733)
(cherry picked from commit c5530cc836595aed61cbd0504c92e4d8fb996ed0)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 days ago[3.14] gh-153313: Run Emscripten PyRepl test in CI (GH-153701) (#153728)
Miss Islington (bot) [Wed, 15 Jul 2026 01:42:54 +0000 (03:42 +0200)] 
[3.14] gh-153313: Run Emscripten PyRepl test in CI (GH-153701) (#153728)

Adds the PyRepl test to the Github CI configuration for Emscripten.
(cherry picked from commit 1b3914ab3d29bba00effe3d58145498efcbeca93)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
6 days ago[3.14] gh-153695: Fix sqlite3.Row.__hash__ with an unhashable value (GH-153696) ...
Miss Islington (bot) [Tue, 14 Jul 2026 22:49:09 +0000 (00:49 +0200)] 
[3.14] gh-153695: Fix sqlite3.Row.__hash__ with an unhashable value (GH-153696) (#153724)

gh-153695: Fix sqlite3.Row.__hash__ with an unhashable value (GH-153696)
(cherry picked from commit b704b647b2295924ebaf8d20ddf88925095039bb)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
6 days ago[3.14] gh-148488: Clarify the company/tag separator in the py -V docs (GH-153427...
Miss Islington (bot) [Tue, 14 Jul 2026 21:39:50 +0000 (23:39 +0200)] 
[3.14] gh-148488: Clarify the company/tag separator in the py -V docs (GH-153427) (GH-153722)

gh-148488: Clarify the company/tag separator in the py -V docs (GH-153427)
(cherry picked from commit 54976e1482578d742d4e611741a7995650e8ae6b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 days ago[3.14] gh-151912: Fix segfault in `type()` with NULL `tp_new` metaclasses (GH-151916...
Miss Islington (bot) [Tue, 14 Jul 2026 16:46:33 +0000 (18:46 +0200)] 
[3.14] gh-151912: Fix segfault in `type()` with NULL `tp_new` metaclasses (GH-151916) (#153705)

gh-151912: Fix segfault in `type()` with NULL `tp_new` metaclasses (GH-151916)
(cherry picked from commit f160f16373f9ea3f636bc5cd6fb4be7e150bb27f)

Co-authored-by: Santhosh .I 🦇 <santhoshilaiyaraja2006@gmail.com>
7 days ago[3.14] gh-71019: document which objects connect_read_pipe/connect_write_pipe accept...
Kumar Aditya [Tue, 14 Jul 2026 08:22:43 +0000 (13:52 +0530)] 
[3.14] gh-71019: document which objects connect_read_pipe/connect_write_pipe accept and add tests (GH-153660) (#153686)

gh-71019: document which objects connect_read_pipe/connect_write_pipe accept and add tests (GH-153660)

(cherry picked from commit 7fb315b0cd53277c6191b4bfd8019f999d49f1f0)

7 days ago[3.14] gh-153658: Fix sqlite3 iterdump() for table names containing a single quote...
Miss Islington (bot) [Tue, 14 Jul 2026 07:43:50 +0000 (09:43 +0200)] 
[3.14] gh-153658: Fix sqlite3 iterdump() for table names containing a single quote (GH-153659) (#153683)

(cherry picked from commit 2fc3c4d47dff722758c76686f657d5ecdd922551)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
7 days ago[3.14] gh-153631: Move to `macos-26` runner for iOS (GH-153632) (#153674)
Russell Keith-Magee [Tue, 14 Jul 2026 04:59:00 +0000 (12:59 +0800)] 
[3.14] gh-153631: Move to `macos-26` runner for iOS (GH-153632) (#153674)

Switches iOS CI to use the macos-26 runner, and makes a small change to the iOS
build script to improve build stability. xcodebuild doesn't guarantee that the
CoreSimulatorService is running before starting a simulator. If the service
isn't running, xcodebuild reports that no simulators are available, and fails to
start the test app. However, simctl blocks until the simulator is available, and
simctl is used to evaluate the default simulator. So - the iOS build script now
unconditionally determines the default simulator, even if a specific simulator
is requested.
(cherry picked from commit 2dc1a91af801ea896e21f6c6e6cc41f57e8268d9)

8 days ago[3.14] gh-89696: Fix `loop.sock_connect` docs on address resolution (GH-153651) ...
Miss Islington (bot) [Mon, 13 Jul 2026 10:10:10 +0000 (12:10 +0200)] 
[3.14] gh-89696: Fix `loop.sock_connect` docs on address resolution (GH-153651) (#153653)

gh-89696: Fix `loop.sock_connect` docs on address resolution (GH-153651)
(cherry picked from commit 1fece4457032382947c7c2a5c9e95dc106ca7a7d)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
8 days ago[3.14] gh-148286: Fix UB in `ZstdDecompressor.unused_data` when a frame is decompress...
Stan Ulbrych [Mon, 13 Jul 2026 07:31:44 +0000 (09:31 +0200)] 
[3.14] gh-148286: Fix UB in `ZstdDecompressor.unused_data` when a frame is decompressed in one call (GH-153258) (#153645)

(cherry picked from commit adebb68153346043c0671fa5725d269c32cc40e4)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
8 days ago[3.14] gh-153037: Make ZstdFile.__next__ raise io.UnsupportedOperation on non-readabl...
Miss Islington (bot) [Mon, 13 Jul 2026 02:51:30 +0000 (04:51 +0200)] 
[3.14] gh-153037: Make ZstdFile.__next__ raise io.UnsupportedOperation on non-readable files (GH-153045) (#153639)

gh-153037: Make ZstdFile.__next__ raise io.UnsupportedOperation on non-readable files (GH-153045)

Make `ZstdFile.__next__` raise `io.UnsupportedOperation` on non-readable files, consistent with other compression modules.
(cherry picked from commit ed716551e13d1e46a5cd17955657d64b8824626a)

Co-authored-by: Łukasz <lukaszlapinski7@gmail.com>
9 days ago[3.14] gh-90431: Document cancellation behavior of asyncio.wait() and asyncio.as_comp...
Miss Islington (bot) [Sun, 12 Jul 2026 11:01:38 +0000 (13:01 +0200)] 
[3.14] gh-90431: Document cancellation behavior of asyncio.wait() and asyncio.as_completed() (GH-153616) (#153618)

gh-90431: Document cancellation behavior of asyncio.wait() and asyncio.as_completed() (GH-153616)
(cherry picked from commit dd2faeb33d5fa0d2635b91ece6eaebd34c61408c)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
9 days ago[3.14] gh-152132: Close stderr_copy in test_api.test_run (GH-153591) (#153596)
Miss Islington (bot) [Sat, 11 Jul 2026 22:21:06 +0000 (00:21 +0200)] 
[3.14] gh-152132: Close stderr_copy in test_api.test_run (GH-153591) (#153596)

gh-152132: Close stderr_copy in test_api.test_run (GH-153591)

Previously, the test was leaking a file descriptor.
(cherry picked from commit 0023d5b23df09f18425fea9b9c54a37ba050d5cf)

Co-authored-by: Victor Stinner <vstinner@python.org>
9 days ago[3.14] gh-102591: Document that urlcleanup resets the global opener (GH-153562) ...
Miss Islington (bot) [Sat, 11 Jul 2026 21:20:42 +0000 (23:20 +0200)] 
[3.14] gh-102591: Document that urlcleanup resets the global opener (GH-153562) (#153589)

gh-102591: Document that urlcleanup resets the global opener (GH-153562)
(cherry picked from commit bbd1f2f9e0354f91c5d3c4eb3eb53657265dcc77)

Co-authored-by: Taeknology <20297177+Taeknology@users.noreply.github.com>
Co-authored-by: Senthil Kumaran <senthil@python.org>
9 days ago[3.14] gh-152614: Add raises to `QueueShutDown` in `asyncio.Queue.put_no_wait` and...
Miss Islington (bot) [Sat, 11 Jul 2026 12:45:48 +0000 (14:45 +0200)] 
[3.14] gh-152614: Add raises to `QueueShutDown` in `asyncio.Queue.put_no_wait` and `asyncio.Queue.get_nowait` documentation methods (GH-152681) (#153566)

gh-152614: Add raises to `QueueShutDown` in `asyncio.Queue.put_no_wait` and `asyncio.Queue.get_nowait` documentation methods (GH-152681)
(cherry picked from commit d1a5b54abaca2b443c7642ef3a7be8e1cd077ae3)

Co-authored-by: Duprat <yduprat@gmail.com>
10 days ago[3.14] gh-86726: Note that the ttk Treeview separator column option needs Tk 9.0...
Miss Islington (bot) [Sat, 11 Jul 2026 10:18:07 +0000 (12:18 +0200)] 
[3.14] gh-86726: Note that the ttk Treeview separator column option needs Tk 9.0 (GH-153556) (GH-153559)

(cherry picked from commit 9ca892717eaa66f3fba231f00dc5bce355f6f34c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
10 days ago[3.14] gh-86726: Fix and improve tkinter documentation and docstrings (GH-153549...
Miss Islington (bot) [Sat, 11 Jul 2026 10:12:23 +0000 (12:12 +0200)] 
[3.14] gh-86726: Fix and improve tkinter documentation and docstrings (GH-153549) (GH-153552)

Correct inaccurate return-type and option descriptions in the tkinter
reference, and add missing module and class docstrings.
(cherry picked from commit 77cb7560c07feed0d5b144c0c1735e1620c96f51)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
10 days ago[3.14] gh-126877: Fix the configure check for Tcl/Tk with optimizing compilers (GH...
Miss Islington (bot) [Sat, 11 Jul 2026 10:08:13 +0000 (12:08 +0200)] 
[3.14] gh-126877: Fix the configure check for Tcl/Tk with optimizing compilers (GH-153543) (GH-153554)

The check assigned the addresses of Tcl_Init() and Tk_Init() to unused
variables, which optimizing compilers can eliminate, so it linked even
when the libraries were missing.  Call the functions instead.
(cherry picked from commit ff0a9ae269fa38c21f01bdea1a7ff5d439c4f681)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
10 days ago[3.14] gh-152785: Upgrade Ubuntu from 24.04 to 26.04 in GitHub Actions (#152717)...
Victor Stinner [Sat, 11 Jul 2026 09:47:03 +0000 (11:47 +0200)] 
[3.14] gh-152785: Upgrade Ubuntu from 24.04 to 26.04 in GitHub Actions (#152717) (#153416) (#153526)

* [3.15] gh-152785: Upgrade Ubuntu from 24.04 to 26.04 in GitHub Actions (#152717) (#153416)

gh-152785: Upgrade Ubuntu from 24.04 to 26.04 in GitHub Actions (#152717)

* Replace "ubuntu-24.04" with "ubuntu-26.04" on most jobs.
* Replace "ubuntu-latest" with "ubuntu-26.04" for Cross build Linux.
* Replace "ubuntu-latest" with "ubuntu-slim" for small workloads.
* Update ".github/actionlint.yaml" to allow "ubuntu-26.04"
  and "ubuntu-26.04-arm" images.

Backport changes:

* Keep Ubuntu 24.04 and llvm.sh to install LLVM 19 and LLVM 20.
* WASI uses ubuntu-26.04, not ubuntu-26.04-arm.

(cherry picked from commit 4c79929705eb31959a6f4071cc34583de0737a28)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
(cherry picked from commit da999e638c03a05ed2b0f8a828f4013c7f9179bd)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
10 days ago[3.14] gh-88647: Fix tkinter config() docs for synonym options (GH-153544) (GH-153546)
Miss Islington (bot) [Sat, 11 Jul 2026 08:21:57 +0000 (10:21 +0200)] 
[3.14] gh-88647: Fix tkinter config() docs for synonym options (GH-153544) (GH-153546)

(cherry picked from commit d52cfd2a0ec4423ed94bda640deefdfcf053bd8e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>