]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
19 hours ago[3.15] gh-139445: Skip pyrepl tests if the terminal is not supported (GH-154497)... 3.15
Miss Islington (bot) [Thu, 23 Jul 2026 11:15:08 +0000 (13:15 +0200)] 
[3.15] gh-139445: Skip pyrepl tests if the terminal is not supported (GH-154497) (GH-154529)

They were only skipped if TERM was unset or "dumb", but pyrepl also
needs the terminal to have several capabilities.
(cherry picked from commit 7745710bec7f6de899e97d6f87528035e8977d85)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
23 hours ago[3.15] gh-151949: Fix Sphinx reference warnings in `Doc/library/lzma.rst` (GH-153878...
Miss Islington (bot) [Thu, 23 Jul 2026 07:48:12 +0000 (09:48 +0200)] 
[3.15] gh-151949: Fix Sphinx reference warnings in `Doc/library/lzma.rst` (GH-153878) (#154127)

* 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>
24 hours ago[3.15] gh-154502: Disable junk filling in the OpenBSD allocator in test_capi (GH...
Miss Islington (bot) [Thu, 23 Jul 2026 06:36:47 +0000 (08:36 +0200)] 
[3.15] gh-154502: Disable junk filling in the OpenBSD allocator in test_capi (GH-154503) (GH-154513)

(cherry picked from commit 206788a6dd23b79fc38fde9a7100293d7efcc37c)

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

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>
37 hours ago[3.15] gh-153291: Fix data race in readline.get_completer() and get_pre_input_hook...
Miss Islington (bot) [Wed, 22 Jul 2026 17:54:26 +0000 (19:54 +0200)] 
[3.15] gh-153291: Fix data race in readline.get_completer() and get_pre_input_hook() (gh-153362) (gh-154418)

The setters store these hooks while holding the module critical section
(via set_hook's Py_XSETREF), but the getters read and Py_NewRef the same
fields without it. Annotate both getters with @critical_section, matching
the other readline functions (gh-126895).

(cherry picked from commit 90b6a7992ae0ce6959eaa6b6401105582d866037)

Co-authored-by: Harjoth Khara <harjoth.khara@gmail.com>
Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
37 hours ago[3.15] gh-154443: Fix test_makedev on DragonFly BSD (GH-154444) (GH-154450)
Miss Islington (bot) [Wed, 22 Jul 2026 17:28:59 +0000 (19:28 +0200)] 
[3.15] gh-154443: Fix test_makedev on DragonFly BSD (GH-154444) (GH-154450)

major() and minor() do not preserve NODEV on DragonFly BSD.
(cherry picked from commit 2cf8e59a38251ff6dfbcd326104068be01c95385)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
39 hours ago[3.15] gh-154137: Fix handle leak in test_winapi (GH-154201) (#154202)
Miss Islington (bot) [Wed, 22 Jul 2026 15:08:46 +0000 (17:08 +0200)] 
[3.15] gh-154137: Fix handle leak in test_winapi (GH-154201) (#154202)

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

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
41 hours ago[3.15] gh-150076: Fix the documented signature of warnings.deprecated (GH-153879...
Miss Islington (bot) [Wed, 22 Jul 2026 13:16:23 +0000 (15:16 +0200)] 
[3.15] gh-150076: Fix the documented signature of warnings.deprecated (GH-153879) (#154487)

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>
42 hours ago[3.15] gh-154431: Fix data race in `sys.audithook` (GH-154462) (#154477)
Miss Islington (bot) [Wed, 22 Jul 2026 12:41:16 +0000 (14:41 +0200)] 
[3.15] gh-154431: Fix data race in `sys.audithook` (GH-154462) (#154477)

gh-154431: Fix data race in `sys.audithook` (GH-154462)
(cherry picked from commit 596cd5c5d7b6ada3e50c6499447eb90a065769ad)

Co-authored-by: sobolevn <mail@sobolevn.me>
42 hours ago[3.15] gh-154460: Do not use wcsftime() on OpenBSD (GH-154461) (GH-154474)
Miss Islington (bot) [Wed, 22 Jul 2026 12:38:47 +0000 (14:38 +0200)] 
[3.15] gh-154460: Do not use wcsftime() on OpenBSD (GH-154461) (GH-154474)

(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>
42 hours ago[3.15] gh-153872: macOS: free-threading support is installed by default on Python...
Miss Islington (bot) [Wed, 22 Jul 2026 12:16:11 +0000 (14:16 +0200)] 
[3.15] gh-153872: macOS: free-threading support is installed by default on Python 3.15 (GH-154103) (#154479)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
43 hours ago[3.15] gh-154272: Skip forkserver tests when the start method is unavailable (GH...
Miss Islington (bot) [Wed, 22 Jul 2026 11:44:19 +0000 (13:44 +0200)] 
[3.15] gh-154272: Skip forkserver tests when the start method is unavailable (GH-154274) (GH-154468)

(cherry picked from commit 13e3f8aa839d71285f3408241b0518da499eac39)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
45 hours ago[3.15] gh-154014: Initialize cold executor vm_data fields (GH-154142) (GH-154457)
Miss Islington (bot) [Wed, 22 Jul 2026 09:49:29 +0000 (11:49 +0200)] 
[3.15] gh-154014: Initialize cold executor vm_data fields (GH-154142) (GH-154457)

gh-154014: Initialize cold executor vm_data fields (GH-154142)
(cherry picked from commit d1174a48ea8fda8bd0057f10e9776ec148276100)

Co-authored-by: Bhuvansh <bhuvanshkataria@gmail.com>
45 hours ago[3.15] gh-154437: Fix test_getcwd_long_path on DragonFly BSD (GH-154438) (GH-154454)
Miss Islington (bot) [Wed, 22 Jul 2026 09:36:14 +0000 (11:36 +0200)] 
[3.15] gh-154437: Fix test_getcwd_long_path on DragonFly BSD (GH-154438) (GH-154454)

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>
46 hours ago[3.15] gh-154366: Fix test_asyncio.test_sendfile timing out on DragonFly BSD (GH...
Miss Islington (bot) [Wed, 22 Jul 2026 08:49:42 +0000 (10:49 +0200)] 
[3.15] gh-154366: Fix test_asyncio.test_sendfile timing out on DragonFly BSD (GH-154367) (GH-154371)

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>
46 hours ago[3.15] gh-154441: Skip the scheduler tests if the API requires privileges (GH-154442...
Miss Islington (bot) [Wed, 22 Jul 2026 08:48:25 +0000 (10:48 +0200)] 
[3.15] gh-154441: Skip the scheduler tests if the API requires privileges (GH-154442) (GH-154447)

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>
46 hours ago[3.15] gh-154007: Improve test coverage for the `shlex` module (GH-154009) (#154445)
Miss Islington (bot) [Wed, 22 Jul 2026 08:35:09 +0000 (10:35 +0200)] 
[3.15] gh-154007: Improve test coverage for the `shlex` module (GH-154009) (#154445)

gh-154007: Improve test coverage for the `shlex` module (GH-154009)
(cherry picked from commit 0eac28e3637d0ee15f4e8737b5d1a311623e46f9)

Co-authored-by: Piotr Kaznowski <piotr@kazno.dev>
47 hours ago[3.15] Test `object_hook` and pickleability of some JSON components (GH-154155) ...
Miss Islington (bot) [Wed, 22 Jul 2026 08:02:31 +0000 (10:02 +0200)] 
[3.15] Test `object_hook` and pickleability of some JSON components (GH-154155) (#154374)

Test `object_hook` and pickleability of some JSON components (GH-154155)
(cherry picked from commit d333e5aa59f6cc20198502f4ff50b14eabde9b8b)

Co-authored-by: David <slavicek.david29@gmail.com>
47 hours ago[3.15] gh-154427: Check the access time in UtimeTests only if it is stored (GH-154428...
Miss Islington (bot) [Wed, 22 Jul 2026 07:32:39 +0000 (09:32 +0200)] 
[3.15] gh-154427: Check the access time in UtimeTests only if it is stored (GH-154428) (GH-154432)

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: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2 days ago[3.15] gh-154414: Skip test_tcsendbreak on DragonFly BSD (GH-154415) (GH-154426)
Serhiy Storchaka [Wed, 22 Jul 2026 06:30:21 +0000 (09:30 +0300)] 
[3.15] gh-154414: Skip test_tcsendbreak on DragonFly BSD (GH-154415) (GH-154426)

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.15] gh-154416: Fix hanging test_tcflow on DragonFly BSD (GH-154417) (GH-154423)
Serhiy Storchaka [Wed, 22 Jul 2026 05:57:42 +0000 (08:57 +0300)] 
[3.15] gh-154416: Fix hanging test_tcflow on DragonFly BSD (GH-154417) (GH-154423)

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>
2 days ago[3.15] gh-154394: Skip test_tcsendbreak on OpenBSD (GH-154397) (GH-154411)
Serhiy Storchaka [Wed, 22 Jul 2026 05:43:33 +0000 (08:43 +0300)] 
[3.15] gh-154394: Skip test_tcsendbreak on OpenBSD (GH-154397) (GH-154411)

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.15] gh-154399: Fix venv activate.csh in a non-interactive shell (GH-154400) (GH...
Miss Islington (bot) [Wed, 22 Jul 2026 04:38:09 +0000 (06:38 +0200)] 
[3.15] gh-154399: Fix venv activate.csh in a non-interactive shell (GH-154400) (GH-154408)

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.15] gh-153741: Harden IDLE GUI tests for newer Tk and display scaling (GH-153742...
Miss Islington (bot) [Wed, 22 Jul 2026 01:49:48 +0000 (03:49 +0200)] 
[3.15] gh-153741: Harden IDLE GUI tests for newer Tk and display scaling (GH-153742) (#154404)

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.15] gh-154389: Do not use uuid_create() on OpenBSD (GH-154390) (GH-154391)
Miss Islington (bot) [Tue, 21 Jul 2026 20:02:34 +0000 (22:02 +0200)] 
[3.15] gh-154389: Do not use uuid_create() on OpenBSD (GH-154390) (GH-154391)

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.15] gh-154379: Fix test_epoll on Solaris (GH-154380) (GH-154382)
Miss Islington (bot) [Tue, 21 Jul 2026 16:44:29 +0000 (18:44 +0200)] 
[3.15] gh-154379: Fix test_epoll on Solaris (GH-154380) (GH-154382)

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.15] gh-154345: Fix test_posix_pty_functions() killing the worker on Solaris (GH...
Miss Islington (bot) [Tue, 21 Jul 2026 14:49:13 +0000 (16:49 +0200)] 
[3.15] gh-154345: Fix test_posix_pty_functions() killing the worker on Solaris (GH-154346) (GH-154354)

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.15] gh-154352: Fix killing a worker process in regrtest on OpenBSD (GH-154353...
Miss Islington (bot) [Tue, 21 Jul 2026 14:30:04 +0000 (16:30 +0200)] 
[3.15] gh-154352: Fix killing a worker process in regrtest on OpenBSD (GH-154353) (GH-154360)

os.getsid() is only allowed for a process in the same session on
OpenBSD.  Worker processes are started in their own session, so the
failure means that the process group can be killed.
(cherry picked from commit bfd774d61eeb384b74380deb1fc5b726decba75e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2 days ago[3.15] gh-153881: Atomically load `dk_nentries` in `_PyObject_IsInstanceDictEmpty...
Miss Islington (bot) [Tue, 21 Jul 2026 12:47:37 +0000 (14:47 +0200)] 
[3.15] gh-153881: Atomically load `dk_nentries` in `_PyObject_IsInstanceDictEmpty` (GH-153882) (#154349)

gh-153881: Atomically load `dk_nentries` in `_PyObject_IsInstanceDictEmpty` (GH-153882)
(cherry picked from commit 7ebe773160327026ba5393b27e2e2860db4d08b2)

Co-authored-by: Brij Kapadia <97006829+brijkapadia@users.noreply.github.com>
2 days ago[3.15] gh-154275: Fix cleanup code in `_Py_make_parameters` (GH-154341) (#154342)
Miss Islington (bot) [Tue, 21 Jul 2026 10:56:35 +0000 (12:56 +0200)] 
[3.15] gh-154275: Fix cleanup code in `_Py_make_parameters` (GH-154341) (#154342)

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

Co-authored-by: sobolevn <mail@sobolevn.me>
2 days ago[3.15] gh-154308: Clear file flags in os_helper.rmtree() (GH-154310) (GH-154314)
Miss Islington (bot) [Tue, 21 Jul 2026 07:48:31 +0000 (09:48 +0200)] 
[3.15] gh-154308: Clear file flags in os_helper.rmtree() (GH-154310) (GH-154314)

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>
2 days ago[3.15] gh-154326: Fix test_fsize_not_too_big() on Solaris (GH-154329) (GH-154334)
Miss Islington (bot) [Tue, 21 Jul 2026 07:17:48 +0000 (09:17 +0200)] 
[3.15] gh-154326: Fix test_fsize_not_too_big() on Solaris (GH-154329) (GH-154334)

Solaris silently converts resource limits that do not fit in a signed
64-bit integer to RLIM_INFINITY.
(cherry picked from commit 202c4c88ed5cb68ba41c54ad91e99c5585debdb4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
3 days ago[3.15] gh-154325: Skip test_add_file_after_2107() if the file system rejects the...
Miss Islington (bot) [Tue, 21 Jul 2026 06:42:10 +0000 (08:42 +0200)] 
[3.15] gh-154325: Skip test_add_file_after_2107() if the file system rejects the timestamp (GH-154328) (GH-154331)

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>
3 days ago[3.15] gh-154279: Skip readline completion tests that fail on DragonFly and illumos...
Miss Islington (bot) [Tue, 21 Jul 2026 06:18:07 +0000 (08:18 +0200)] 
[3.15] gh-154279: Skip readline completion tests that fail on DragonFly and illumos (GH-154280) (GH-154282)

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: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
3 days ago[3.15] gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926...
Miss Islington (bot) [Tue, 21 Jul 2026 05:57:38 +0000 (07:57 +0200)] 
[3.15] gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926) (GH-154322)

"$" 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>
3 days ago[3.15] gh-154303: Skip test_sqlite3 CLI completion tests on OpenBSD (GH-154304) ...
Miss Islington (bot) [Tue, 21 Jul 2026 03:58:01 +0000 (05:58 +0200)] 
[3.15] gh-154303: Skip test_sqlite3 CLI completion tests on OpenBSD (GH-154304) (GH-154305)

OpenBSD's readline does not honor "completion-query-items 0", so completing
many candidates blocks on a "Display all N?" prompt that hangs the
pseudo-terminal opened by run_pty().  Skip the whole Completion class on
OpenBSD, like the existing libedit skip.
(cherry picked from commit 63b564fc8728036f165805407f7d2b4e8bfd3ef0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
3 days ago[3.15] gh-154307: Fix TemporaryDirectory cleanup on DragonFly BSD (GH-154309) (GH...
Miss Islington (bot) [Tue, 21 Jul 2026 03:54:45 +0000 (05:54 +0200)] 
[3.15] gh-154307: Fix TemporaryDirectory cleanup on DragonFly BSD (GH-154309) (GH-154311)

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.15] gh-148665: Enable socket.shutdown function for emscripten (GH-148666) (#154319)
Miss Islington (bot) [Tue, 21 Jul 2026 01:05:04 +0000 (03:05 +0200)] 
[3.15] gh-148665: Enable socket.shutdown function for emscripten (GH-148666) (#154319)

Re-enable the autoconf check for socket.shutdown on Emscripten, as some
Emscripten environments are able to provide this call.
(cherry picked from commit 20b7e8e50b9a4a92989b36531429f9b51ee0a0bf)

Co-authored-by: Gyeongjae Choi <gyeongjae@cloudflare.com>
3 days ago[3.15] gh-154275: Do not crash on deeply nested `__parameters__` in `GenericAlias...
Miss Islington (bot) [Mon, 20 Jul 2026 22:40:04 +0000 (00:40 +0200)] 
[3.15] gh-154275: Do not crash on deeply nested `__parameters__` in `GenericAlias` (GH-154277) (#154306)

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

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.15] gh-154283: Make threading.get_native_id() unique across processes on DragonFly...
Miss Islington (bot) [Mon, 20 Jul 2026 20:20:57 +0000 (22:20 +0200)] 
[3.15] gh-154283: Make threading.get_native_id() unique across processes on DragonFly (GH-154287) (GH-154293)

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: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
3 days ago[3.15] gh-154289: Fix test_socket.testGetServBy on DragonFly (GH-154290) (GH-154294)
Miss Islington (bot) [Mon, 20 Jul 2026 20:00:01 +0000 (22:00 +0200)] 
[3.15] gh-154289: Fix test_socket.testGetServBy on DragonFly (GH-154290) (GH-154294)

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.15] gh-154240: Skip cmsg truncation socket tests on OpenBSD and DragonFly (GH...
Miss Islington (bot) [Mon, 20 Jul 2026 19:12:40 +0000 (21:12 +0200)] 
[3.15] gh-154240: Skip cmsg truncation socket tests on OpenBSD and DragonFly (GH-154244) (GH-154286)

(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.15] gh-125860: Skip separate-SCM_RIGHTS socket tests on NetBSD, OpenBSD and Dragon...
Miss Islington (bot) [Mon, 20 Jul 2026 18:25:13 +0000 (20:25 +0200)] 
[3.15] gh-125860: Skip separate-SCM_RIGHTS socket tests on NetBSD, OpenBSD and DragonFly (GH-154239) (GH-154245)

(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.15] gh-154260: Fix test_flush_parameters on DragonFly BSD (GH-154261) (GH-154269)
Miss Islington (bot) [Mon, 20 Jul 2026 18:22:59 +0000 (20:22 +0200)] 
[3.15] gh-154260: Fix test_flush_parameters on DragonFly BSD (GH-154261) (GH-154269)

DragonFly, like FreeBSD, rejects mmap.flush() with MS_ASYNC|MS_INVALIDATE
(EINVAL).  Use str.startswith() so the check also matches DragonFly, whose
sys.platform carries a version suffix.
(cherry picked from commit fc4d93dcf1a01f56fd8ffc35b6d3700c98ffa6c9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
3 days ago[3.15] gh-99968: FAQ: dev versions end in `+dev` (GH-153262) (#154268)
Miss Islington (bot) [Mon, 20 Jul 2026 14:59:12 +0000 (16:59 +0200)] 
[3.15] gh-99968: FAQ: dev versions end in `+dev` (GH-153262) (#154268)

gh-99968: FAQ: dev versions end in `+dev` (GH-153262)
(cherry picked from commit 4cde5cfd5bc53e964ff8b594ff47fe88e64df789)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
3 days ago[3.15] gh-154258: Fix mmap.resize() crash on NetBSD growing a shared anonymous mappin...
Miss Islington (bot) [Mon, 20 Jul 2026 14:51:38 +0000 (16:51 +0200)] 
[3.15] gh-154258: Fix mmap.resize() crash on NetBSD growing a shared anonymous mapping (GH-154259) (GH-154262)

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.15] gh-154167: Fix test suite hang when SIGINT is ignored (GH-154168) (GH-154265)
Miss Islington (bot) [Mon, 20 Jul 2026 14:44:07 +0000 (16:44 +0200)] 
[3.15] gh-154167: Fix test suite hang when SIGINT is ignored (GH-154168) (GH-154265)

(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.15] Fix two typos in two stdlib docstrings (GH-153479) (#154252)
Miss Islington (bot) [Mon, 20 Jul 2026 10:56:31 +0000 (12:56 +0200)] 
[3.15] Fix two typos in two stdlib docstrings (GH-153479) (#154252)

(cherry picked from commit e0293b0de4071ca591e36fd42ef04285b91ef546)

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

(cherry picked from commit 86e1fed859dab3de8f069208ef33cee24d816c79)

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

(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.15] gh-154225: Fix os.openpty() acquiring a controlling terminal on Solaris (GH...
Miss Islington (bot) [Mon, 20 Jul 2026 09:40:40 +0000 (11:40 +0200)] 
[3.15] gh-154225: Fix os.openpty() acquiring a controlling terminal on Solaris (GH-154229) (GH-154238)

(cherry picked from commit a0caab9db6c2655d8429279892848d817343f99d)

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

(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.15] gh-154218: Fix test_posix_fallocate on file systems that do not support posix_...
Miss Islington (bot) [Mon, 20 Jul 2026 09:35:36 +0000 (11:35 +0200)] 
[3.15] gh-154218: Fix test_posix_fallocate on file systems that do not support posix_fallocate() (GH-154219) (GH-154232)

(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.15] gh-154176: Fix locale.strxfrm() crash on DragonFly BSD (GH-154177) (GH-154217)
Miss Islington (bot) [Mon, 20 Jul 2026 08:15:34 +0000 (10:15 +0200)] 
[3.15] gh-154176: Fix locale.strxfrm() crash on DragonFly BSD (GH-154177) (GH-154217)

Query the result size with a real one-element buffer instead of
wcsxfrm(NULL, s, 0): DragonFly BSD's wcsxfrm() crashes when the
destination is NULL or the size is 0.
(cherry picked from commit f389b03f9f2768342bfd49987a257460d4aa4faf)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
3 days ago[3.15] gh-127049: fix race condition in asyncio signalling an unrelated process with...
Miss Islington (bot) [Mon, 20 Jul 2026 07:27:58 +0000 (09:27 +0200)] 
[3.15] gh-127049: fix race condition in asyncio signalling an unrelated process with ThreadedChildWatcher (GH-153810) (#154220)

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>
4 days ago[3.15] urllib: Add tests for HTTP errors to complete coverage (GH-154102) (#154120)
Miss Islington (bot) [Mon, 20 Jul 2026 06:38:10 +0000 (08:38 +0200)] 
[3.15] urllib: Add tests for HTTP errors to complete coverage (GH-154102) (#154120)

urllib: Add tests for HTTP errors to complete coverage (GH-154102)

* add test for httperror props such as reason and fp, and stringified urlerror test

* rm unnecessary 'reason' attr test, change url to filename and add reason and headers attr

* separate file pointer test

* prevent resource warning, close httperror exception

* exc > err
(cherry picked from commit b8ec956716c183430a93929e6415ceed74089af1)

Co-authored-by: Ajob Kustra <ajob.edward.kustra@cern.ch>
4 days ago[3.15] gh-154211: Skip C-stack exhaustion tests when the C stack is huge (GH-154212...
Miss Islington (bot) [Mon, 20 Jul 2026 06:35:33 +0000 (08:35 +0200)] 
[3.15] gh-154211: Skip C-stack exhaustion tests when the C stack is huge (GH-154212) (GH-154216)

(cherry picked from commit 863b31268c3160af1febcee4c79ff6ed380f328f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
4 days ago[3.15] Fix grammatical typos in documentation (GH-154181) (#154190)
Miss Islington (bot) [Mon, 20 Jul 2026 06:35:14 +0000 (08:35 +0200)] 
[3.15] Fix grammatical typos in documentation (GH-154181) (#154190)

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

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

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

* 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>
4 days ago[3.15] fix ResourceWarnings of test_kill_issue43884 in asyncio (GH-154178) (#154183)
Miss Islington (bot) [Mon, 20 Jul 2026 04:54:52 +0000 (06:54 +0200)] 
[3.15] fix ResourceWarnings of test_kill_issue43884 in asyncio (GH-154178) (#154183)

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.15] gh-151022: Fix remote debugging linetable reads (GH-151036) (#154187)
Miss Islington (bot) [Sun, 19 Jul 2026 18:59:49 +0000 (20:59 +0200)] 
[3.15] gh-151022: Fix remote debugging linetable reads (GH-151036) (#154187)

4 days ago[3.15] Fix typos in `Py_tp_base` macro documentation (GH-154150) (#154180)
Miss Islington (bot) [Sun, 19 Jul 2026 17:41:29 +0000 (19:41 +0200)] 
[3.15] Fix typos in `Py_tp_base` macro documentation (GH-154150) (#154180)

(cherry picked from commit 53916ee48d2e78592898bea2e52bfeb4497e0bcd)

Co-authored-by: Michael Newman <michael.b.newman@gmail.com>
4 days ago[3.15] gh-154144: Fix false positive from the stdbool.h guard in _testcapimodule...
Miss Islington (bot) [Sun, 19 Jul 2026 15:38:01 +0000 (17:38 +0200)] 
[3.15] gh-154144: Fix false positive from the stdbool.h guard in _testcapimodule.c (GH-154145) (GH-154157)

(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.15] gh-139806: Mention pickle error changes in What's New in 3.14 (GH-154020)...
Miss Islington (bot) [Sun, 19 Jul 2026 15:28:16 +0000 (17:28 +0200)] 
[3.15] gh-139806: Mention pickle error changes in What's New in 3.14 (GH-154020) (GH-154161)

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

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.15] gh-152798: update sys.thread_info.lock documentation to match implementation...
Miss Islington (bot) [Sun, 19 Jul 2026 15:03:25 +0000 (17:03 +0200)] 
[3.15] gh-152798: update sys.thread_info.lock documentation to match implementation (GH-153263) (#153276)

gh-152798: update sys.thread_info.lock documentation to match implementation (GH-153263)
(cherry picked from commit 48cc2579b65be508ca64b6cb64ce0f7922eab9ab)

Co-authored-by: Wojusensei <wojusensei@outlook.com>
4 days ago[3.15] gh-153932: protect read of en_index during enumerate.reduce (GH-154118) (GH...
Miss Islington (bot) [Sun, 19 Jul 2026 15:01:00 +0000 (17:01 +0200)] 
[3.15] gh-153932: protect read of en_index during enumerate.reduce (GH-154118) (GH-154128)

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>
4 days ago[3.15] gh-153862: Fix curses window.inch() for non-ASCII characters on a wide build...
Serhiy Storchaka [Sun, 19 Jul 2026 12:46:08 +0000 (15:46 +0300)] 
[3.15] gh-153862: Fix curses window.inch() for non-ASCII characters on a wide build (GH-153863) (GH-154116)

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.15] gh-153864: Fix curses window.insch() for non-ASCII characters on a wide build...
Serhiy Storchaka [Sun, 19 Jul 2026 12:45:26 +0000 (15:45 +0300)] 
[3.15] gh-153864: Fix curses window.insch() for non-ASCII characters on a wide build (GH-153865) (GH-154117)

On a wide build, winsch() does not locale-decode a byte above 127, unlike
waddch(), so insch() inserted '¤' (U+00A4) instead of '€' for byte 0xA4
under ISO-8859-15.  Decode the byte with btowc() and insert it as a wide
character, like addch().

(cherry picked from commit 223cbffca6df7e4c8c77b360a4e6ba0472255643)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
4 days ago[3.15] gh-154053: Fix compilation of the ssl module against LibreSSL (GH-154054)...
Miss Islington (bot) [Sun, 19 Jul 2026 12:30:29 +0000 (14:30 +0200)] 
[3.15] gh-154053: Fix compilation of the ssl module against LibreSSL (GH-154054) (GH-154075)

LibreSSL does not provide SSL_CTX_set1_sigalgs_list() or
SSL_CTX_set1_client_sigalgs_list(), added in gh-138252, so _ssl failed to
compile against LibreSSL on 3.15+. Guard the set_server_sigalgs() and
set_client_sigalgs() methods so they raise NotImplementedError on LibreSSL,
and skip the corresponding tests.
(cherry picked from commit 39b058f8ad29238edc8b65406bb1fb0bc3c0020d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 days ago[3.15] Add test for explicit `cls` argument bypassing default JSON decoder (GH-154094...
Miss Islington (bot) [Sun, 19 Jul 2026 12:28:27 +0000 (14:28 +0200)] 
[3.15] Add test for explicit `cls` argument bypassing default JSON decoder (GH-154094) (#154112)

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.15] Document getopt and gnu_getopt longopts argument as string (GH-153976) (#154095)
Miss Islington (bot) [Sun, 19 Jul 2026 11:16:32 +0000 (13:16 +0200)] 
[3.15] Document getopt and gnu_getopt longopts argument as string (GH-153976) (#154095)

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.15] Improve colorsys coverage (GH-153982) (#154076)
Miss Islington (bot) [Sun, 19 Jul 2026 10:17:49 +0000 (12:17 +0200)] 
[3.15] Improve colorsys coverage (GH-153982) (#154076)

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.15] gh-149319: Make `asyncio` REPL respect `-I` and `-E` options (GH-149405) ...
Miss Islington (bot) [Sun, 19 Jul 2026 10:06:57 +0000 (12:06 +0200)] 
[3.15] gh-149319: Make `asyncio` REPL respect `-I` and `-E` options (GH-149405) (#154072)

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.15] Docs: add frozendict to data types theme (GH-154063) (#154079)
Miss Islington (bot) [Sun, 19 Jul 2026 10:06:20 +0000 (12:06 +0200)] 
[3.15] Docs: add frozendict to data types theme (GH-154063) (#154079)

Docs: add frozendict to data types theme (GH-154063)
(cherry picked from commit 426cf84e84ed85d94c9055affd19e6fd69cfc939)

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
4 days ago[3.15] gh-152769: fixup enabling of perf trampoline on musl (Alpine Linux) (#153995)
Jonathan J. Helmus [Sun, 19 Jul 2026 09:39:05 +0000 (04:39 -0500)] 
[3.15] gh-152769: fixup enabling of perf trampoline on musl (Alpine Linux) (#153995)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 days ago[3.15] gh-154001: Avoid division by zero in binomialvariate (GH-154004) (GH-154050)
Miss Islington (bot) [Sun, 19 Jul 2026 09:28:18 +0000 (11:28 +0200)] 
[3.15] gh-154001: Avoid division by zero in binomialvariate (GH-154004) (GH-154050)

(cherry picked from commit 1f1374009b681814642ca199136815b223fd90ae)

Co-authored-by: Łukasz <lukaszlapinski7@gmail.com>
4 days ago[3.15] fix typos in `abi3t-migration.rst` (GH-153918) (#154056)
Miss Islington (bot) [Sun, 19 Jul 2026 09:11:51 +0000 (11:11 +0200)] 
[3.15] fix typos in `abi3t-migration.rst` (GH-153918) (#154056)

fix typos in `abi3t-migration.rst` (GH-153918)

(cherry picked from commit 4b60b46f09e7148216d5e07c289a17c9ebbb6074)

Co-authored-by: Jost Migenda <jost.migenda@kcl.ac.uk>
Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
4 days ago[3.15] Test that `ValueError` is raised when `vfsopen` is passed an invalid mode...
Miss Islington (bot) [Sun, 19 Jul 2026 09:10:16 +0000 (11:10 +0200)] 
[3.15] Test that `ValueError` is raised when `vfsopen` is passed an invalid mode (GH-154008) (#154064)

Test that `ValueError` is raised when `vfsopen` is passed an invalid mode (GH-154008)

* ValueError with message test

* Remove white space

* Apply suggestions from code review

Change from double quotes to single quotes.

---------
(cherry picked from commit 9f5af278960a2f73a2e070de5141701e72675cf6)

Co-authored-by: Rayan <157278782+ravg998@users.noreply.github.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
4 days ago[3.15] Add test coverage to check execution of GetoptError.__str__ (GH-153941) (...
Miss Islington (bot) [Sun, 19 Jul 2026 09:09:28 +0000 (11:09 +0200)] 
[3.15] Add test coverage to check execution of GetoptError.__str__ (GH-153941) (#153997)

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

(cherry picked from commit 30541f202f81ab3d3da5a6ac10c07fb6f1e4dcb4)

Co-authored-by: Michael Newman <michael.b.newman@gmail.com>
4 days ago[3.15] gh-153896: Deduplicate unhashable arguments in `typing.Literal` (GH-153914...
Miss Islington (bot) [Sun, 19 Jul 2026 08:29:23 +0000 (10:29 +0200)] 
[3.15] gh-153896: Deduplicate unhashable arguments in `typing.Literal` (GH-153914) (#153955)

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

Co-authored-by: Massimiliano Bruni <massimiliano.bruni@icloud.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
4 days ago[3.15] Add vfspath TypeError test (GH-153987) (#154010)
Miss Islington (bot) [Sun, 19 Jul 2026 08:16:03 +0000 (10:16 +0200)] 
[3.15] Add vfspath TypeError test (GH-153987) (#154010)

Add vfspath TypeError test (GH-153987)

typeerror with message test
(cherry picked from commit 5763bfdd1b582ef30cf3e6dd88754991973c77ce)

Co-authored-by: Ajob Kustra <ajobkustra.p@gmail.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
5 days ago[3.15] Improve `getopt.getopt` and `getopt.gnu_getopt` test coverage (GH-153933)...
Miss Islington (bot) [Sat, 18 Jul 2026 22:07:10 +0000 (00:07 +0200)] 
[3.15] Improve `getopt.getopt` and `getopt.gnu_getopt` test coverage (GH-153933) (GH-153972)

(cherry picked from commit 0fa144bb78042fb91c703678bb378b4dbce3cb95)

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

(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.15] gh-150663: Document that PyErr_SetRaisedException accepts null (GH-153046...
Miss Islington (bot) [Sat, 18 Jul 2026 18:18:22 +0000 (20:18 +0200)] 
[3.15] gh-150663: Document that PyErr_SetRaisedException accepts null (GH-153046) (#154021)

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.15] Fix parameter name of `read_mime_types()` in `mimetypes` docs (GH-153974)...
Miss Islington (bot) [Sat, 18 Jul 2026 16:47:09 +0000 (18:47 +0200)] 
[3.15] Fix parameter name of `read_mime_types()` in `mimetypes` docs (GH-153974) (#153979)

(cherry picked from commit c89b5effa11366e28cb4a290a302a534352b768f)

Co-authored-by: Raúl Santos Quirós <130504291+raul-sq@users.noreply.github.com>
5 days ago[3.15] gh-153236: Propagate lazy submodule import errors (GH-153237) (#153936)
Miss Islington (bot) [Sat, 18 Jul 2026 16:04:40 +0000 (18:04 +0200)] 
[3.15] gh-153236: Propagate lazy submodule import errors (GH-153237) (#153936)

gh-153236: Propagate lazy submodule import errors (GH-153237)
(cherry picked from commit 0a09dafb03dae17895d4a86af04985e373bbdceb)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
5 days ago[3.15] gh-124111: Update Windows builds to Tcl/Tk 9.0.4 (GH-153990)
Miss Islington (bot) [Sat, 18 Jul 2026 15:21:55 +0000 (17:21 +0200)] 
[3.15] gh-124111: Update Windows builds to Tcl/Tk 9.0.4 (GH-153990)

(cherry picked from commit 46e950fc0df8ad300497d612c4c9de3e5a1e87f3)

Co-authored-by: Zachary Ware <zach@python.org>
5 days ago[3.15] gh-153908: Fix data race in `itertools.count.__repr__` (GH-153917) (GH-153951)
Miss Islington (bot) [Sat, 18 Jul 2026 15:18:04 +0000 (17:18 +0200)] 
[3.15] gh-153908: Fix data race in `itertools.count.__repr__` (GH-153917) (GH-153951)

(cherry picked from commit 5200f1192428becab0c31db98e7baa97f3c3c3e2)

Co-authored-by: John <me@joh.ng>
5 days ago[3.15] gh-141004: Document unstable executable kind macros from `pyframe.h` (GH-14349...
Miss Islington (bot) [Sat, 18 Jul 2026 15:00:16 +0000 (17:00 +0200)] 
[3.15] gh-141004: Document unstable executable kind macros from `pyframe.h` (GH-143490) (GH-153988)

(cherry picked from commit dc62ba84ab2b83d70dee111d3feec1a6f1c3f69d)

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

(cherry picked from commit 0a772f2967c77a2137c45d7db1fcde9b71afacde)

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

(cherry picked from commit 755d97167f6f5d4361c790f8f18df76cae8f2ad2)

Co-authored-by: Lenormand Julien <lenormand.julien0@gmail.com>
5 days ago[3.15] Docs: Fix typo in the pymanager command name (GH-153877) (GH-153960)
Miss Islington (bot) [Sat, 18 Jul 2026 13:35:29 +0000 (15:35 +0200)] 
[3.15] Docs: Fix typo in the pymanager command name (GH-153877) (GH-153960)

(cherry picked from commit 32cfc88d6a5561c510a0d7bb954251e39b598dd5)

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

(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 agoMerge branch '3.15' of https://github.com/python/cpython into 3.15
Hugo van Kemenade [Sat, 18 Jul 2026 13:09:50 +0000 (15:09 +0200)] 
Merge branch '3.15' of https://github.com/python/cpython into 3.15

5 days ago[3.15] Test `calendar.February` deprecation (GH-153893) (#153919)
Miss Islington (bot) [Sat, 18 Jul 2026 13:09:14 +0000 (15:09 +0200)] 
[3.15] Test `calendar.February` deprecation (GH-153893) (#153919)

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 agoPost 3.15.0b4
Hugo van Kemenade [Sat, 18 Jul 2026 13:08:51 +0000 (15:08 +0200)] 
Post 3.15.0b4