]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
21 hours ago[3.13] gh-151949: Fix Sphinx reference warnings in `Doc/library/lzma.rst` (GH-153878... 3.13
Miss Islington (bot) [Thu, 23 Jul 2026 07:48:47 +0000 (09:48 +0200)] 
[3.13] gh-151949: Fix Sphinx reference warnings in `Doc/library/lzma.rst` (GH-153878) (#154126)

* gh-151949: Fix Sphinx reference warnings in `Doc/library/lzma.rst` (GH-153878)

The lzma module constants (FORMAT_*, CHECK_*, PRESET_*, FILTER_*, MODE_*
and MF_*) were referenced with the :const: role throughout the module
documentation but were never defined as reference targets, producing
"reference target not found" warnings under nitpicky mode.

Document these public constants with .. data:: directives, following the
convention used by the signal, socket and ssl modules, so the existing
references resolve. The now-redundant inline descriptions of the format
and check constants are condensed into linked references.
(cherry picked from commit 1530b38c82f8f09c3c29b2829cd1d8c1db830761)

Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
* Fix nitpicks

---------

Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
22 hours ago[3.13] gh-154502: Disable junk filling in the OpenBSD allocator in test_capi (GH...
Miss Islington (bot) [Thu, 23 Jul 2026 06:37:12 +0000 (08:37 +0200)] 
[3.13] gh-154502: Disable junk filling in the OpenBSD allocator in test_capi (GH-154503) (GH-154515)

(cherry picked from commit 206788a6dd23b79fc38fde9a7100293d7efcc37c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
30 hours ago[3.13] gh-154272: Skip more forkserver tests if the start method is unavailable ...
Serhiy Storchaka [Wed, 22 Jul 2026 22:46:08 +0000 (01:46 +0300)] 
[3.13] gh-154272: Skip more forkserver tests if the start method is unavailable (GH-154499) (GH-154507)

Two tests were still not skipped: they were only guarded against Cygwin
and Windows.

(cherry picked from commit a2a846678e54b1b5defdccd451c573679094ff02)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
39 hours ago[3.13] gh-150076: Fix the documented signature of warnings.deprecated (GH-153879...
Miss Islington (bot) [Wed, 22 Jul 2026 13:15:40 +0000 (15:15 +0200)] 
[3.13] gh-150076: Fix the documented signature of warnings.deprecated (GH-153879) (#154489)

gh-150076: Fix the documented signature of warnings.deprecated (GH-153879)
(cherry picked from commit 56ad3bca75a408b45b5326980b35b8a2ba8113db)

Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
39 hours ago[3.13] gh-154272: Skip forkserver tests when the start method is unavailable (GH...
Serhiy Storchaka [Wed, 22 Jul 2026 13:06:06 +0000 (16:06 +0300)] 
[3.13] gh-154272: Skip forkserver tests when the start method is unavailable (GH-154274) (GH-154472)

(cherry picked from commit 13e3f8aa839d71285f3408241b0518da499eac39)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
40 hours ago[3.13] gh-154460: Do not use wcsftime() on OpenBSD (GH-154461) (GH-154476)
Miss Islington (bot) [Wed, 22 Jul 2026 12:31:13 +0000 (14:31 +0200)] 
[3.13] gh-154460: Do not use wcsftime() on OpenBSD (GH-154461) (GH-154476)

(cherry picked from commit f195b2e3edec8f770abdd013906379bf49176a5b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
40 hours ago[3.13] gh-154137: Fix handle leak in test_winapi (GH-154201) (#154204)
Miss Islington (bot) [Wed, 22 Jul 2026 12:21:19 +0000 (14:21 +0200)] 
[3.13] gh-154137: Fix handle leak in test_winapi (GH-154201) (#154204)

gh-154137: Fix handle leak in test_winapi (GH-154201)

Make sure that events handles are closed.
(cherry picked from commit 1f9d20bbd4fed601e7caf76a12e52d35c8ae2b14)

Co-authored-by: Victor Stinner <vstinner@python.org>
40 hours ago[3.13] gh-154007: Improve test coverage for the `shlex` module (GH-154009) (#154458)
Piotr Kaznowski [Wed, 22 Jul 2026 12:17:16 +0000 (14:17 +0200)] 
[3.13] gh-154007: Improve test coverage for the `shlex` module (GH-154009) (#154458)

(cherry picked from commit 0eac28e3637d0ee15f4e8737b5d1a311623e46f9)

43 hours ago[3.13] gh-154437: Fix test_getcwd_long_path on DragonFly BSD (GH-154438) (GH-154456)
Miss Islington (bot) [Wed, 22 Jul 2026 09:26:43 +0000 (11:26 +0200)] 
[3.13] gh-154437: Fix test_getcwd_long_path on DragonFly BSD (GH-154438) (GH-154456)

DragonFly BSD raises EFAULT instead of ENAMETOOLONG when the path
exceeds PATH_MAX.
(cherry picked from commit 1bf86c134a5260876ad31fb32b832cbea24c21ad)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
43 hours ago[3.13] gh-154435: Fix os.posix_fadvise() and os.posix_fallocate() on DragonFly BSD...
Miss Islington (bot) [Wed, 22 Jul 2026 09:01:58 +0000 (11:01 +0200)] 
[3.13] gh-154435: Fix os.posix_fadvise() and os.posix_fallocate() on DragonFly BSD (GH-154436) (GH-154453)

They return -1 and set errno instead of returning the error number, so
OSError was raised with a meaningless error code.
(cherry picked from commit 08a0d10709f04cf03260e5e852381cecb1c531e1)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
44 hours ago[3.13] gh-154441: Skip the scheduler tests if the API requires privileges (GH-154442...
Miss Islington (bot) [Wed, 22 Jul 2026 08:39:13 +0000 (10:39 +0200)] 
[3.13] gh-154441: Skip the scheduler tests if the API requires privileges (GH-154442) (GH-154449)

DragonFly BSD requires privileges to use the scheduler API, even for
the calling process.
(cherry picked from commit cbd15390e474e254ad2590c57de7e3bf657c0a09)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
45 hours ago[3.13] gh-154427: Check the access time in UtimeTests only if it is stored (GH-154428...
Serhiy Storchaka [Wed, 22 Jul 2026 07:53:39 +0000 (10:53 +0300)] 
[3.13] gh-154427: Check the access time in UtimeTests only if it is stored (GH-154428) (GH-154439)

HAMMER2 on DragonFly BSD does not store the access time and os.stat()
returns the modification time instead.  Probe the file system, like it
is already done for the timestamp resolution.
(cherry picked from commit 6f8f97fe5246837b93e6c2f3525aa9f623ecd30b)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
47 hours ago[3.13] gh-154416: Fix hanging test_tcflow on DragonFly BSD (GH-154417) (GH-154421)
Serhiy Storchaka [Wed, 22 Jul 2026 05:47:25 +0000 (08:47 +0300)] 
[3.13] gh-154416: Fix hanging test_tcflow on DragonFly BSD (GH-154417) (GH-154421)

TCIOFF and TCION transmit STOP and START characters, and closing the
pseudo-terminal waits until they are read.  Discard them.
(cherry picked from commit b0c945a27e708419c6845234ef633ce3f7c4c41e)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
47 hours ago[3.13] gh-154414: Skip test_tcsendbreak on DragonFly BSD (GH-154415) (GH-154424)
Serhiy Storchaka [Wed, 22 Jul 2026 05:45:25 +0000 (08:45 +0300)] 
[3.13] gh-154414: Skip test_tcsendbreak on DragonFly BSD (GH-154415) (GH-154424)

tcsendbreak() is not supported for pseudo-terminals on DragonFly BSD.
(cherry picked from commit a84e780707d3baa3b9f73981d8b7e293eb10d076)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2 days ago[3.13] gh-154394: Skip test_tcsendbreak on OpenBSD (GH-154397) (GH-154413)
Serhiy Storchaka [Wed, 22 Jul 2026 04:39:28 +0000 (07:39 +0300)] 
[3.13] gh-154394: Skip test_tcsendbreak on OpenBSD (GH-154397) (GH-154413)

tcsendbreak() is not supported for pseudo-terminals on OpenBSD.
(cherry picked from commit f1730ddc474d9d103c4f85ecc4bb1e995a268ed9)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2 days ago[3.13] gh-154399: Fix venv activate.csh in a non-interactive shell (GH-154400) (GH...
Miss Islington (bot) [Wed, 22 Jul 2026 04:29:50 +0000 (06:29 +0200)] 
[3.13] gh-154399: Fix venv activate.csh in a non-interactive shell (GH-154400) (GH-154410)

activate.csh saved the prompt unconditionally, but the prompt variable
only exists in interactive shells, and csh fails on an undefined
variable.
(cherry picked from commit 4448705d879ea41ea97114ef6c8215590913811a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2 days ago[3.13] gh-153741: Harden IDLE GUI tests for newer Tk and display scaling (GH-153742...
Miss Islington (bot) [Wed, 22 Jul 2026 01:42:44 +0000 (03:42 +0200)] 
[3.13] gh-153741: Harden IDLE GUI tests for newer Tk and display scaling (GH-153742) (#154406)

gh-153741: Harden IDLE GUI tests for newer Tk and display scaling (GH-153742)

In test_sidebar.test_mousewheel, only use the X11 <Button-4>/<Button-5> events when testing on
x11 Tk before 8.7.  Otherwise, use <Mousewheel> as on other systems.

In test_configdialog, assert the 'disabled' state flag alone instead of
the exact ttk state tuple (which transient pointer states break), and
restore the tests' method masks with addCleanup().
(cherry picked from commit a2581ebc7a93ec573f64d3a5e29cbd9053de7a1f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2 days ago[3.13] gh-154389: Do not use uuid_create() on OpenBSD (GH-154390) (GH-154393)
Miss Islington (bot) [Tue, 21 Jul 2026 18:26:44 +0000 (20:26 +0200)] 
[3.13] gh-154389: Do not use uuid_create() on OpenBSD (GH-154390) (GH-154393)

Like NetBSD, OpenBSD generates version 4 UUIDs in uuid_create(), so it
cannot be used for uuid.uuid1().
(cherry picked from commit c76fb912070389e0fbad3bf4eab066cd5da931b9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2 days ago[3.13] gh-154379: Fix test_epoll on Solaris (GH-154380) (GH-154384)
Miss Islington (bot) [Tue, 21 Jul 2026 16:27:04 +0000 (18:27 +0200)] 
[3.13] gh-154379: Fix test_epoll on Solaris (GH-154380) (GH-154384)

A non-blocking connect() can be completed immediately, and unregistering
a closed file descriptor succeeds on Solaris.
(cherry picked from commit b6abee522f1dbbba36cc306aa99ac22d1df5c454)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2 days ago[3.13] gh-154366: Fix test_asyncio.test_sendfile timing out on DragonFly BSD (GH...
Miss Islington (bot) [Tue, 21 Jul 2026 15:26:45 +0000 (17:26 +0200)] 
[3.13] gh-154366: Fix test_asyncio.test_sendfile timing out on DragonFly BSD (GH-154367) (GH-154373)

A 4 KiB receive buffer makes DragonFly defer every window update to the
delayed ACK timer, so each buffer worth of data costs 100 ms.  Use a
larger socket buffer there; it is still small enough to pause the
protocol long before all data is sent.
(cherry picked from commit a6e1b836ec5055cbc8be477ca0c2df0cc12b8cb5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2 days ago[3.13] gh-154345: Fix test_posix_pty_functions() killing the worker on Solaris (GH...
Miss Islington (bot) [Tue, 21 Jul 2026 14:47:42 +0000 (16:47 +0200)] 
[3.13] gh-154345: Fix test_posix_pty_functions() killing the worker on Solaris (GH-154346) (GH-154356)

Pushing the "ptem" STREAMS module makes a session leader without a
controlling terminal acquire the slave as one, so closing the file
descriptors sent SIGHUP to the session and killed the regrtest worker.
Disown it after the pushes, as os.openpty() does.
(cherry picked from commit f69f7fd526b6601a74ce0852c75466a183a86cea)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2 days ago[3.13] gh-154275: Do not crash on deeply nested `__parameters__` in `GenericAlias...
sobolevn [Tue, 21 Jul 2026 10:29:57 +0000 (13:29 +0300)] 
[3.13] gh-154275: Do not crash on deeply nested `__parameters__` in `GenericAlias` (GH-154277) (#154340)

* [3.13] gh-154275: Do not crash on deeply nested `__parameters__` in `GenericAlias` (GH-154277)
(cherry picked from commit 1034e07b7d55642c3a46252e6b0a631c2df588d2)

Co-authored-by: sobolevn <mail@sobolevn.me>
2 days ago[3.13] gh-154325: Skip test_add_file_after_2107() if the file system rejects the...
Miss Islington (bot) [Tue, 21 Jul 2026 06:34:46 +0000 (08:34 +0200)] 
[3.13] gh-154325: Skip test_add_file_after_2107() if the file system rejects the timestamp (GH-154328) (GH-154333)

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>
2 days ago[3.13] gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926...
Serhiy Storchaka [Tue, 21 Jul 2026 06:04:22 +0000 (09:04 +0300)] 
[3.13] gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926) (GH-154330)

"$" 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>
3 days ago[3.13] gh-154307: Fix TemporaryDirectory cleanup on DragonFly BSD (GH-154309) (GH...
Miss Islington (bot) [Tue, 21 Jul 2026 03:54:11 +0000 (05:54 +0200)] 
[3.13] gh-154307: Fix TemporaryDirectory cleanup on DragonFly BSD (GH-154309) (GH-154313)

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>
3 days ago[3.13] gh-154308: Clear file flags in os_helper.rmtree() (GH-154310) (GH-154316)
Miss Islington (bot) [Tue, 21 Jul 2026 03:51:18 +0000 (05:51 +0200)] 
[3.13] gh-154308: Clear file flags in os_helper.rmtree() (GH-154310) (GH-154316)

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>
3 days ago[3.13] gh-154291: Fix socket.has_dualstack_ipv6() on DragonFly BSD (GH-154292) (GH...
Miss Islington (bot) [Mon, 20 Jul 2026 20:25:21 +0000 (22:25 +0200)] 
[3.13] gh-154291: Fix socket.has_dualstack_ipv6() on DragonFly BSD (GH-154292) (GH-154301)

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>
3 days ago[3.13] gh-154283: Make threading.get_native_id() unique across processes on DragonFly...
Serhiy Storchaka [Mon, 20 Jul 2026 20:04:40 +0000 (23:04 +0300)] 
[3.13] gh-154283: Make threading.get_native_id() unique across processes on DragonFly (GH-154287) (GH-154298)

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>
3 days ago[3.13] gh-154289: Fix test_socket.testGetServBy on DragonFly (GH-154290) (GH-154296)
Miss Islington (bot) [Mon, 20 Jul 2026 19:50:29 +0000 (21:50 +0200)] 
[3.13] gh-154289: Fix test_socket.testGetServBy on DragonFly (GH-154290) (GH-154296)

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>
3 days ago[3.13] gh-154240: Skip cmsg truncation socket tests on OpenBSD and DragonFly (GH...
Miss Islington (bot) [Mon, 20 Jul 2026 18:06:04 +0000 (20:06 +0200)] 
[3.13] gh-154240: Skip cmsg truncation socket tests on OpenBSD and DragonFly (GH-154244) (GH-154270)

(cherry picked from commit eca3b26067a48bf18e59648695ee1a7bc36534fc)

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

(cherry picked from commit 1047cbb9746f959f6787f2c393bd79cbae6100c5)

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

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>
3 days ago[3.13] gh-154225: Fix os.openpty() acquiring a controlling terminal on Solaris (GH...
Serhiy Storchaka [Mon, 20 Jul 2026 13:25:55 +0000 (16:25 +0300)] 
[3.13] gh-154225: Fix os.openpty() acquiring a controlling terminal on Solaris (GH-154229) (GH-154257)

(cherry picked from commit a0caab9db6c2655d8429279892848d817343f99d)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
3 days ago[3.13] gh-125860: Skip separate-SCM_RIGHTS socket tests on NetBSD, OpenBSD and Dragon...
Miss Islington (bot) [Mon, 20 Jul 2026 09:45:40 +0000 (11:45 +0200)] 
[3.13] gh-125860: Skip separate-SCM_RIGHTS socket tests on NetBSD, OpenBSD and DragonFly (GH-154239) (GH-154247)

(cherry picked from commit 9cfa08c80d588931ff4644c885f31598cf2b725f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
3 days ago[3.13] gh-154227: Fix os.posix_openpt() on OpenBSD (GH-154228) (GH-154237)
Miss Islington (bot) [Mon, 20 Jul 2026 09:43:25 +0000 (11:43 +0200)] 
[3.13] gh-154227: Fix os.posix_openpt() on OpenBSD (GH-154228) (GH-154237)

(cherry picked from commit d01b90cf33f8f77172eb9f445dbc2ed0055ffd3b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
3 days ago[3.13] gh-154226: Fix test_posix_pty_functions on Solaris (GH-154230) (GH-154243)
Miss Islington (bot) [Mon, 20 Jul 2026 09:35:50 +0000 (11:35 +0200)] 
[3.13] gh-154226: Fix test_posix_pty_functions on Solaris (GH-154230) (GH-154243)

(cherry picked from commit 3d998611a48b45691894c687ac0ec52b54df52bf)

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

(cherry picked from commit 051b6e07f9e43980d99c563d67bea32144238461)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
3 days ago[3.13] gh-154046: docs: fix dead link to codahale timing attacks article in secrets...
Miss Islington (bot) [Mon, 20 Jul 2026 06:23:56 +0000 (08:23 +0200)] 
[3.13] gh-154046: docs: fix dead link to codahale timing attacks article in secrets.rst (GH-154047) (#154215)

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>
3 days ago[3.13] gh-119710: fix asyncio Process.wait() to finish on process exit and not wait...
Miss Islington (bot) [Mon, 20 Jul 2026 05:18:37 +0000 (07:18 +0200)] 
[3.13] gh-119710: fix asyncio Process.wait() to finish on process exit and not wait for closing of pipes (GH-151983) (#154172)

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>
3 days ago[3.13] fix ResourceWarnings of test_kill_issue43884 in asyncio (GH-154178) (#154185)
Miss Islington (bot) [Mon, 20 Jul 2026 04:55:24 +0000 (06:55 +0200)] 
[3.13] fix ResourceWarnings of test_kill_issue43884 in asyncio (GH-154178) (#154185)

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

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
4 days ago[3.13] Fix grammatical typos in documentation (GH-154181) (#154193)
ilya [Sun, 19 Jul 2026 19:50:08 +0000 (22:50 +0300)] 
[3.13] Fix grammatical typos in documentation (GH-154181) (#154193)

(cherry picked from commit 40f7fbf4a53d2f2cb0414a22f891d6e7e288280c)

4 days ago[3.13] gh-154144: Fix false positive from the stdbool.h guard in _testcapimodule...
Miss Islington (bot) [Sun, 19 Jul 2026 15:31:04 +0000 (17:31 +0200)] 
[3.13] gh-154144: Fix false positive from the stdbool.h guard in _testcapimodule.c (GH-154145) (GH-154159)

(cherry picked from commit 8d11eb0c31efcfd1d504650a564d9a4b45cba721)

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

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>
4 days ago[3.13] gh-153864: Fix curses window.insch() for non-ASCII characters on a wide build...
Serhiy Storchaka [Sun, 19 Jul 2026 15:17:14 +0000 (18:17 +0300)] 
[3.13] gh-153864: Fix curses window.insch() for non-ASCII characters on a wide build (GH-153865) (GH-154154)

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>
4 days ago[3.13] improve json test coverage (GH-154123) (GH-154133)
Miss Islington (bot) [Sun, 19 Jul 2026 15:16:54 +0000 (17:16 +0200)] 
[3.13] improve json test coverage (GH-154123) (GH-154133)

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>
4 days ago[3.13] Add test for explicit `cls` argument bypassing default JSON decoder (GH-154094...
Miss Islington (bot) [Sun, 19 Jul 2026 12:22:33 +0000 (14:22 +0200)] 
[3.13] Add test for explicit `cls` argument bypassing default JSON decoder (GH-154094) (#154114)

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>
4 days ago[3.13] Document getopt and gnu_getopt longopts argument as string (GH-153976) (#154097)
Miss Islington (bot) [Sun, 19 Jul 2026 11:16:21 +0000 (13:16 +0200)] 
[3.13] Document getopt and gnu_getopt longopts argument as string (GH-153976) (#154097)

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>
4 days ago[3.13] Improve colorsys coverage (GH-153982) (#154078)
Miss Islington (bot) [Sun, 19 Jul 2026 10:09:17 +0000 (12:09 +0200)] 
[3.13] Improve colorsys coverage (GH-153982) (#154078)

Improve colorsys coverage (GH-153982)

* improve colorsys coverage

* add subtest
(cherry picked from commit 54b00c055210d738f5c3fb590ab85bde80b46ac6)

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

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>
4 days ago[3.13] Fix typo "interruptability" in Logging Cookbook documentation (GH-154027)...
Miss Islington (bot) [Sun, 19 Jul 2026 09:01:48 +0000 (11:01 +0200)] 
[3.13] Fix typo "interruptability" in Logging Cookbook documentation (GH-154027) (#154068)

(cherry picked from commit 30541f202f81ab3d3da5a6ac10c07fb6f1e4dcb4)

Co-authored-by: Michael Newman <michael.b.newman@gmail.com>
4 days ago[3.13] gh-153896: Deduplicate unhashable arguments in `typing.Literal` (GH-153914...
Miss Islington (bot) [Sun, 19 Jul 2026 07:56:21 +0000 (09:56 +0200)] 
[3.13] gh-153896: Deduplicate unhashable arguments in `typing.Literal` (GH-153914) (#153957)

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

Co-authored-by: Massimiliano Bruni <massimiliano.bruni@icloud.com>
4 days ago[3.13] gh-154001: Avoid division by zero in binomialvariate (GH-154004) (GH-154052)
Miss Islington (bot) [Sun, 19 Jul 2026 06:27:57 +0000 (08:27 +0200)] 
[3.13] gh-154001: Avoid division by zero in binomialvariate (GH-154004) (GH-154052)

(cherry picked from commit 1f1374009b681814642ca199136815b223fd90ae)

Co-authored-by: Łukasz <lukaszlapinski7@gmail.com>
5 days ago[3.13] Docs: point `uu` module users to the `"uu"` encoding (GH-153657) (#154024)
Miss Islington (bot) [Sat, 18 Jul 2026 19:53:36 +0000 (21:53 +0200)] 
[3.13] Docs: point `uu` module users to the `"uu"` encoding (GH-153657) (#154024)

(cherry picked from commit a1d580430c81c298d267ec255d544d0fa1d197c4)

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

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

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

Fix parameter name of read_mime_types() in mimetypes docs (GH-153974)
(cherry picked from commit c89b5effa11366e28cb4a290a302a534352b768f)

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

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>
5 days ago[3.13] gh-141004: Document unstable executable kind macros from `pyframe.h` (GH-14349...
Peter Bierma [Sat, 18 Jul 2026 15:13:05 +0000 (11:13 -0400)] 
[3.13] gh-141004: Document unstable executable kind macros from `pyframe.h` (GH-143490) (GH-153993)

(cherry picked from commit dc62ba84ab2b83d70dee111d3feec1a6f1c3f69d)

Co-authored-by: Yashraj <yashrajpala8@gmail.com>
5 days ago[3.13] gh-141004: Document unstable perf map functions in `ceval.h` (GH-143492) ...
Peter Bierma [Sat, 18 Jul 2026 15:06:02 +0000 (11:06 -0400)] 
[3.13] gh-141004: Document unstable perf map functions in `ceval.h` (GH-143492) (GH-153996)

(cherry picked from commit 6453065db9ff31e3f737240030f8311d2b087851)

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

(cherry picked from commit 0a772f2967c77a2137c45d7db1fcde9b71afacde)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
5 days ago[3.13] gh-71896: Add a docs warning about trailing newlines ignored by `difflib.HtmlD...
Peter Bierma [Sat, 18 Jul 2026 14:10:12 +0000 (10:10 -0400)] 
[3.13] gh-71896: Add a docs warning about trailing newlines ignored by `difflib.HtmlDiff` (GH-153930) (GH-153968)

(cherry picked from commit 755d97167f6f5d4361c790f8f18df76cae8f2ad2)

Co-authored-by: Lenormand Julien <lenormand.julien0@gmail.com>
5 days ago[3.13] gh-122102: Fix/improve docs of descriptor-related tools in `inspect` (GH-153950)
Miss Islington (bot) [Sat, 18 Jul 2026 13:32:04 +0000 (15:32 +0200)] 
[3.13] gh-122102: Fix/improve docs of descriptor-related tools in `inspect` (GH-153950)

(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>
5 days ago[3.13] Test `calendar.February` deprecation (GH-153893) (#153921)
Miss Islington (bot) [Sat, 18 Jul 2026 13:09:43 +0000 (15:09 +0200)] 
[3.13] Test `calendar.February` deprecation (GH-153893) (#153921)

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>
5 days ago[3.13] gh-153934: Correct documented parameter in `calendar.weekheader` from `n`...
Miss Islington (bot) [Sat, 18 Jul 2026 12:53:21 +0000 (14:53 +0200)] 
[3.13] gh-153934: Correct documented parameter in `calendar.weekheader` from `n` to `width` (GH-153942) (GH-153945)

(cherry picked from commit 7486c7b3df7ff26ac23390947102f2604f55243a)

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

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>
5 days ago[3.13] gh-153808: Replace obsolete 'condition list' verbiage with 'expression list...
Miss Islington (bot) [Sat, 18 Jul 2026 11:49:34 +0000 (13:49 +0200)] 
[3.13] gh-153808: Replace obsolete 'condition list' verbiage with 'expression list' in eval() docs (GH-153925)

(cherry picked from commit c5e97ed6351766deff488ea6d95e4aa0853943ae)

Co-authored-by: palakkhinvasara <109575264+palakkhinvasara@users.noreply.github.com>
5 days ago[3.13] gh-153899: Fix documented parameter names for `filecmp.cmpfiles` (GH-153900...
Miss Islington (bot) [Sat, 18 Jul 2026 10:40:45 +0000 (12:40 +0200)] 
[3.13] gh-153899: Fix documented parameter names for `filecmp.cmpfiles` (GH-153900) (#153912)

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>
6 days ago[3.13] gh-153853: Fix parameter name of calendar.setfirstweekday() in docs (GH-153851...
Miss Islington (bot) [Fri, 17 Jul 2026 18:59:09 +0000 (20:59 +0200)] 
[3.13] gh-153853: Fix parameter name of calendar.setfirstweekday() in docs (GH-153851) (#153861)

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>
6 days ago[3.13] gh-85943: Fix BytesWarning in the struct format cache under -bb (GH-153627...
Serhiy Storchaka [Fri, 17 Jul 2026 08:26:14 +0000 (11:26 +0300)] 
[3.13] gh-85943: Fix BytesWarning in the struct format cache under -bb (GH-153627) (GH-153836)

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: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
6 days ago[3.13] gh-153404: Silently ignore non-decimal digits in robots.txt Crawl-delay and...
Miss Islington (bot) [Fri, 17 Jul 2026 06:12:42 +0000 (08:12 +0200)] 
[3.13] gh-153404: Silently ignore non-decimal digits in robots.txt Crawl-delay and Request-rate (GH-153405) (GH-153832)

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>
7 days ago[3.13] gh-145521: Add 'infer_variance' parameter to ParamSpec class (GH-145522) ...
Jelle Zijlstra [Fri, 17 Jul 2026 02:52:52 +0000 (19:52 -0700)] 
[3.13] gh-145521: Add 'infer_variance' parameter to ParamSpec class (GH-145522) (#153825)

(cherry picked from commit 2e94f14310e8ab62f41dd01276f2c69cb3d36da2)

Co-authored-by: Kai (Kazuya Ito) <kazya.ito.dream@gmail.com>
8 days ago[3.13] gh-153550: Modernize the older prose sections of the tkinter documentation...
Serhiy Storchaka [Wed, 15 Jul 2026 16:51:13 +0000 (19:51 +0300)] 
[3.13] gh-153550: Modernize the older prose sections of the tkinter documentation (GH-153647) (GH-153775)

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)

8 days ago[3.13] gh-128846: Fix test_configure_custom_copy for the aqua theme with Tk 9 (GH...
Serhiy Storchaka [Wed, 15 Jul 2026 14:53:13 +0000 (17:53 +0300)] 
[3.13] gh-128846: Fix test_configure_custom_copy for the aqua theme with Tk 9 (GH-153611)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
8 days ago[3.13] gh-151126: Fix missing memory errors in `_interpretersmodule.c` (#153765)
stevens [Wed, 15 Jul 2026 12:40:54 +0000 (20:40 +0800)] 
[3.13] gh-151126: Fix missing memory errors in `_interpretersmodule.c`  (#153765)

gh-151126: Fix missing memory errors in `_interpretersmodule.c` (#151624)

(cherry picked from commit 05225aa06a4c5eceaa2eb29e99c2d44d2dbfe295)

8 days ago[3.13] gh-149689: add missing error checks in `Parser/action_helpers.c` (GH-153763)
Thomas Kowalski [Wed, 15 Jul 2026 12:11:52 +0000 (14:11 +0200)] 
[3.13] gh-149689: add missing error checks in `Parser/action_helpers.c` (GH-153763)

(cherry picked from commit 2dd6e59aea24220975cce2b602846d997413d46c)

8 days ago[3.13] Docs: fill in descriptor C API docs (GH-146644) (GH-153759)
Boy Steven [Wed, 15 Jul 2026 11:30:54 +0000 (18:30 +0700)] 
[3.13] Docs: fill in descriptor C API docs (GH-146644) (GH-153759)

8 days ago[3.13] gh-151623: Add missing curses docstrings and document intrflush() (GH-151632...
Serhiy Storchaka [Wed, 15 Jul 2026 11:23:41 +0000 (14:23 +0300)] 
[3.13] gh-151623: Add missing curses docstrings and document intrflush() (GH-151632) (GH-153756)

(cherry picked from commit 12add3822f458a3e107dff4176b4c4b991764ea7)

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

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>
8 days ago[3.13] gh-150285: Fix too long docstrings in the os module (GH-150296) (GH-150341...
Serhiy Storchaka [Wed, 15 Jul 2026 11:03:27 +0000 (14:03 +0300)] 
[3.13] gh-150285: Fix too long docstrings in the os module (GH-150296) (GH-150341) (GH-150464) (GH-153755)

(cherry picked from commit 739552caae245ddafd42a3641765aa0961419bce)
(cherry picked from commit a5cb7c34dd25aaa639a512f0dbbaaa6c9e03f1a1)
(cherry picked from commit 1e72dfadf64cbd4d9cddb67bd3ef35cb3b4e56c0)

8 days ago[3.13] gh-71086: Document negative offset support in struct.pack_into() and unpack_fr...
Serhiy Storchaka [Wed, 15 Jul 2026 09:43:32 +0000 (12:43 +0300)] 
[3.13] gh-71086: Document negative offset support in struct.pack_into() and unpack_from() (GH-153650) (GH-153754)

(cherry picked from commit 1706d14a2a1f009f786b8d7599e53c168b0392e0)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
8 days ago[3.13] gh-87904: Document curses classes (GH-151643) (GH-153752)
Serhiy Storchaka [Wed, 15 Jul 2026 09:09:35 +0000 (12:09 +0300)] 
[3.13] gh-87904: Document curses classes (GH-151643) (GH-153752)

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>
8 days ago[3.13] gh-93417: Improve test_mimetypes (GH-150725) (GH-153750)
Serhiy Storchaka [Wed, 15 Jul 2026 09:05:31 +0000 (12:05 +0300)] 
[3.13] gh-93417: Improve test_mimetypes (GH-150725) (GH-153750)

* 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)

8 days ago[3.13] gh-153695: Fix sqlite3.Row.__hash__ with an unhashable value (GH-153696) ...
tonghuaroot (童话) [Wed, 15 Jul 2026 08:24:51 +0000 (16:24 +0800)] 
[3.13] gh-153695: Fix sqlite3.Row.__hash__ with an unhashable value (GH-153696) (GH-153725)

(cherry picked from commit b704b647b2295924ebaf8d20ddf88925095039bb)

8 days ago[3.13] gh-153716: Harden ttk/tkinter GUI tests against display scaling (GH-153717...
Serhiy Storchaka [Wed, 15 Jul 2026 05:39:23 +0000 (08:39 +0300)] 
[3.13] gh-153716: Harden ttk/tkinter GUI tests against display scaling (GH-153717) (GH-153743)

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: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
9 days ago[3.13] Remove duplicate button_ok code in idlelib.textview (GH-153733) (#153736)
Miss Islington (bot) [Wed, 15 Jul 2026 03:27:27 +0000 (05:27 +0200)] 
[3.13] Remove duplicate button_ok code in idlelib.textview (GH-153733) (#153736)

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

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
9 days ago[3.13] gh-153631: Ensure iOS simulator is running before starting build (GH-153632...
Russell Keith-Magee [Tue, 14 Jul 2026 23:34:35 +0000 (07:34 +0800)] 
[3.13] gh-153631: Ensure iOS simulator is running before starting build (GH-153632) (#153675)

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)

9 days ago[3.13] gh-151912: Fix segfault in `type()` with NULL `tp_new` metaclasses (GH-151916...
Miss Islington (bot) [Tue, 14 Jul 2026 16:46:47 +0000 (18:46 +0200)] 
[3.13] gh-151912: Fix segfault in `type()` with NULL `tp_new` metaclasses (GH-151916) (#153706)

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>
9 days ago[3.13] gh-71019: document which objects connect_read_pipe/connect_write_pipe accept...
Kumar Aditya [Tue, 14 Jul 2026 08:02:54 +0000 (13:32 +0530)] 
[3.13] gh-71019: document which objects connect_read_pipe/connect_write_pipe accept and add tests (GH-153660) (#153687)

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

(cherry picked from commit 7fb315b0cd53277c6191b4bfd8019f999d49f1f0)

9 days ago[3.13] gh-153658: Fix sqlite3 iterdump() for table names containing a single quote...
Miss Islington (bot) [Tue, 14 Jul 2026 07:40:52 +0000 (09:40 +0200)] 
[3.13] gh-153658: Fix sqlite3 iterdump() for table names containing a single quote (GH-153659) (#153684)

(cherry picked from commit 2fc3c4d47dff722758c76686f657d5ecdd922551)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
10 days ago[3.13] gh-89696: Fix `loop.sock_connect` docs on address resolution (GH-153651) ...
Miss Islington (bot) [Mon, 13 Jul 2026 10:10:28 +0000 (12:10 +0200)] 
[3.13] gh-89696: Fix `loop.sock_connect` docs on address resolution (GH-153651) (#153654)

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>
11 days ago[3.13] gh-90431: Document cancellation behavior of asyncio.wait() and asyncio.as_comp...
Miss Islington (bot) [Sun, 12 Jul 2026 11:01:13 +0000 (13:01 +0200)] 
[3.13] gh-90431: Document cancellation behavior of asyncio.wait() and asyncio.as_completed() (GH-153616) (#153619)

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>
12 days ago[3.13] gh-152132: Close stderr_copy in test_api.test_run (GH-153591) (#153597)
Miss Islington (bot) [Sat, 11 Jul 2026 22:19:27 +0000 (00:19 +0200)] 
[3.13] gh-152132: Close stderr_copy in test_api.test_run (GH-153591) (#153597)

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>
12 days ago[3.13] gh-102591: Document that urlcleanup resets the global opener (GH-153562) ...
Miss Islington (bot) [Sat, 11 Jul 2026 21:20:46 +0000 (23:20 +0200)] 
[3.13] gh-102591: Document that urlcleanup resets the global opener (GH-153562) (#153590)

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>
12 days ago[3.13] gh-152614: Add raises to `QueueShutDown` in `asyncio.Queue.put_no_wait` and...
Miss Islington (bot) [Sat, 11 Jul 2026 12:45:26 +0000 (14:45 +0200)] 
[3.13] gh-152614: Add raises to `QueueShutDown` in `asyncio.Queue.put_no_wait` and `asyncio.Queue.get_nowait` documentation methods (GH-152681) (#153567)

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>
12 days ago[3.13] gh-86726: Fix and improve tkinter documentation and docstrings (GH-153549...
Serhiy Storchaka [Sat, 11 Jul 2026 10:29:12 +0000 (13:29 +0300)] 
[3.13] gh-86726: Fix and improve tkinter documentation and docstrings (GH-153549) (GH-153557)

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: Claude Opus 4.8 <noreply@anthropic.com>
12 days ago[3.13] gh-86726: Note that the ttk Treeview separator column option needs Tk 9.0...
Miss Islington (bot) [Sat, 11 Jul 2026 10:17:20 +0000 (12:17 +0200)] 
[3.13] gh-86726: Note that the ttk Treeview separator column option needs Tk 9.0 (GH-153556) (GH-153560)

(cherry picked from commit 9ca892717eaa66f3fba231f00dc5bce355f6f34c)

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

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>
12 days ago[3.13] gh-88647: Fix tkinter config() docs for synonym options (GH-153544) (GH-153547)
Miss Islington (bot) [Sat, 11 Jul 2026 08:22:05 +0000 (10:22 +0200)] 
[3.13] gh-88647: Fix tkinter config() docs for synonym options (GH-153544) (GH-153547)

(cherry picked from commit d52cfd2a0ec4423ed94bda640deefdfcf053bd8e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
13 days ago[3.13] gh-128846: Make tkinter tests robust against Tcl/Tk 9.0 (GH-153484)
Serhiy Storchaka [Sat, 11 Jul 2026 04:25:46 +0000 (07:25 +0300)] 
[3.13] gh-128846: Make tkinter tests robust against Tcl/Tk 9.0 (GH-153484)

Backport the test-only parts of the Tcl/Tk 8.7/9.0/9.1 test adaptations so
that test_tkinter and test_ttk pass when Python 3.13 is built against
Tcl/Tk 9.0 (for example the Homebrew build used on macOS), while still
passing against the Tcl/Tk 8.6 that 3.13 ships.

Combines the test changes from:

* gh-124111: Update tkinter for compatibility with Tcl/Tk 9.0.0 (GH-124156)
* gh-124111: test macOS CI with Tk 9 (GH-137424)
* gh-145736: Fix Tkinter tests for Tk 8.7, 9.0 and 9.1 (GH-145738)

The corresponding non-test changes (Modules/_tkinter.c, Lib/tkinter/ttk.py,
PCbuild and CI configuration) are not backported.

13 days ago[3.13] gh-152132: Test Py_CompileString() in test_capi.test_run (#153470) (#153473...
Victor Stinner [Fri, 10 Jul 2026 22:25:22 +0000 (00:25 +0200)] 
[3.13] gh-152132: Test Py_CompileString() in test_capi.test_run (#153470) (#153473) (#153533)

[3.14] gh-152132: Test Py_CompileString() in test_capi.test_run (#153470) (#153473)

gh-152132: Test Py_CompileString() in test_capi.test_run (#153470)

PyRun functions now raises ValueError if the start argument is
invalid.

Add Modules/_testlimitedcapi/run.c.

(cherry picked from commit d83d26724b8c3be5f535e56ded88593cc6803b86)
(cherry picked from commit 6374772d8c2118c5615c8aae109222442603b921)

13 days ago[3.13] gh-153380: Adapt ttk tests to Tk 9.1 changes (GH-153381) (GH-153388)
Miss Islington (bot) [Fri, 10 Jul 2026 19:34:36 +0000 (21:34 +0200)] 
[3.13] gh-153380: Adapt ttk tests to Tk 9.1 changes (GH-153381) (GH-153388)

- selectmode: new 'single' and 'multiple' modes
- set(): includes the tree column '#0'
- insert()/selection(): item ids keep the passed value's type
- heading_callback: avoid a double click on the second click
- theme_create_image: don't assert the exact (now scaled) width
(cherry picked from commit d6855c8ad00ffa2bee318b510d0e90573dddbbab)

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