]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
9 days ago[3.14] gh-94632: document the subprocess need for extra_groups=() with user= (GH...
Miss Islington (bot) [Sun, 5 Apr 2026 18:13:29 +0000 (20:13 +0200)] 
[3.14] gh-94632: document the subprocess need for extra_groups=() with user= (GH-148129) (#148130)

gh-94632: document the subprocess need for extra_groups=() with user= (GH-148129)
(cherry picked from commit a1cf4430ed89ec702528ef074138c407ccf89946)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
9 days ago[3.14] Add `permissions: {}` to all reusable workflows (#148114) (#148115)
Ezio Melotti [Sat, 4 Apr 2026 23:46:39 +0000 (07:46 +0800)] 
[3.14] Add `permissions: {}` to all reusable workflows (#148114) (#148115)

Add `permissions: {}` to all reusable workflows (#148114)

Add permissions: {} to all reusable workflows

(cherry picked from commit 1f36a510a2a16e8ff15572f44090c7db43bb7935)

10 days ago[3.14] Docs: Standardize documentation authors (GH-148102) (#148104)
Miss Islington (bot) [Sat, 4 Apr 2026 18:11:45 +0000 (20:11 +0200)] 
[3.14] Docs: Standardize documentation authors (GH-148102) (#148104)

(cherry picked from commit 75be902a13c670a1ea16aee3644548723b7d7407)

Co-authored-by: Stan Ulbrych <stan@python.org>
10 days ago[3.14] Docs: Fix a typo in the 'Non-ASCII characters in names' section (GH-148043...
Miss Islington (bot) [Sat, 4 Apr 2026 16:51:39 +0000 (18:51 +0200)] 
[3.14] Docs: Fix a typo in the 'Non-ASCII characters in names' section (GH-148043) (#148099)

(cherry picked from commit b1d2d9829cfb33f0487ce00c19fa57ddefeb1b50)

Co-authored-by: Stan Ulbrych <stan@python.org>
10 days ago[3.14] Regex HOWTO: invalid string literals result in `SyntaxWarning` (GH-148092...
Miss Islington (bot) [Sat, 4 Apr 2026 16:19:38 +0000 (18:19 +0200)] 
[3.14] Regex HOWTO: invalid string literals result in `SyntaxWarning` (GH-148092) (#148097)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
10 days ago[3.14] gh-145883: Fix two heap-buffer-overflows in `_zoneinfo` (GH-145885) (#148087)
Miss Islington (bot) [Sat, 4 Apr 2026 16:13:13 +0000 (18:13 +0200)] 
[3.14] gh-145883: Fix two heap-buffer-overflows in `_zoneinfo` (GH-145885) (#148087)

(cherry picked from commit fe9befc1ca7eac36749ec358969464334381b9f9)

Co-authored-by: Stan Ulbrych <stan@python.org>
10 days ago[3.14] gh-148074: Fix `typeobject.c` missing error return (GH-148075) (#148095)
Miss Islington (bot) [Sat, 4 Apr 2026 16:01:34 +0000 (18:01 +0200)] 
[3.14] gh-148074: Fix `typeobject.c` missing error return (GH-148075) (#148095)

gh-148074: Fix `typeobject.c` missing error return (GH-148075)
(cherry picked from commit c398490fbf15ede5de3389b4ca4e32fb9a7c5d67)

Co-authored-by: Wulian233 <1055917385@qq.com>
10 days ago[3.14] gh-145098: Use `macos-15-intel` instead of unstable `macos-26-intel` (GH-14803...
Miss Islington (bot) [Sat, 4 Apr 2026 10:02:44 +0000 (12:02 +0200)] 
[3.14] gh-145098: Use `macos-15-intel` instead of unstable `macos-26-intel` (GH-148038) (#148076)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
10 days ago[3.14] gh-143394: Skip pyrepl test_no_newline() basic REPL if readline is missing...
Miss Islington (bot) [Sat, 4 Apr 2026 08:38:43 +0000 (10:38 +0200)] 
[3.14] gh-143394: Skip pyrepl test_no_newline() basic REPL if readline is missing (GH-147973) (#148005)

gh-143394: Skip pyrepl test_no_newline() basic REPL if readline is missing (GH-147973)
(cherry picked from commit 97babb8ef70c1c25768a0e534cfb10955c6b290d)

Co-authored-by: Victor Stinner <vstinner@python.org>
10 days ago[3.14] gh-146450: Normalise feature set of Android build script with other platform...
Miss Islington (bot) [Sat, 4 Apr 2026 04:27:49 +0000 (06:27 +0200)] 
[3.14] gh-146450: Normalise feature set of Android build script with other platform build scripts (GH-146451) (#148065)

Allows for cleaning a subset of targets, customization of the download cache and
cross-build directories, and modifies the build command to allow 'all', 'build'
and 'hosts' targets.
(cherry picked from commit b8470deb5d52f524ae18c6f232fecfc99b133397)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
10 days ago[3.14] gh-146541: Allow building the Android testbed for 32-bit targets (GH-146542...
Russell Keith-Magee [Sat, 4 Apr 2026 03:58:20 +0000 (11:58 +0800)] 
[3.14] gh-146541: Allow building the Android testbed for 32-bit targets (GH-146542) (#148064)

Allows building the Android testbed for 32-bit targets, adding the target triplets
`arm-linux-androideabi` and `i686-linux-android`.
(cherry picked from commit 848bbe9ff21ae0a3ee412cc25843835ace4f75df)

Co-authored-by: Robert Kirkman <31490854+robertkirkman@users.noreply.github.com>
Co-authored-by: Malcolm Smith <smith@chaquo.com>
11 days ago[3.14] gh-126676: Expand argparse docs for type=bool with warning and alternatives...
Miss Islington (bot) [Fri, 3 Apr 2026 19:10:19 +0000 (21:10 +0200)] 
[3.14] gh-126676: Expand argparse docs for type=bool with warning and alternatives (GH-146435) (#148048)

gh-126676: Expand argparse docs for type=bool with warning and alternatives (GH-146435)
(cherry picked from commit 80d0a85d969d305c7436dc54f8939d7b6f441b5f)

Co-authored-by: Joshua Swanson <22283299+joshuaswanson@users.noreply.github.com>
Co-authored-by: joshuaswanson <joshuaswanson@users.noreply.github.com>
Co-authored-by: Savannah Ostrowski <savannah@python.org>
11 days ago[3.14] gh-143930: Tweak the exception message and increase test coverage (GH-146476...
Miss Islington (bot) [Fri, 3 Apr 2026 16:28:52 +0000 (18:28 +0200)] 
[3.14] gh-143930: Tweak the exception message and increase test coverage (GH-146476) (GH-148042)

(cherry picked from commit 3681d47a440865aead912a054d4599087b4270dd)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
11 days ago[3.14] gh-125895: Fix static asset location for `sphinx-notfound-page` (GH-147984...
Miss Islington (bot) [Fri, 3 Apr 2026 15:40:12 +0000 (17:40 +0200)] 
[3.14] gh-125895: Fix static asset location for `sphinx-notfound-page` (GH-147984) (#148040)

(cherry picked from commit 80ab6d958a0e4aa322aaf96994c43cd637496be6)

Co-authored-by: Stan Ulbrych <stan@python.org>
11 days ago[3.14] gh-148022: Add threat model to remote debugging docs (GH-148024) (#148039)
Miss Islington (bot) [Fri, 3 Apr 2026 14:34:36 +0000 (16:34 +0200)] 
[3.14] gh-148022: Add threat model to remote debugging docs (GH-148024) (#148039)

gh-148022: Add threat model to remote debugging docs (GH-148024)

The remote debugging protocol has been generating spurious
vulnerability reports from automated scanners that pattern-match
on "remote access" and "memory operations" without understanding
the privilege model. This section documents the security boundaries
so reporters can self-triage before submitting.

The threat model clarifies three points: attaching requires the
same OS-level privileges as GDB (ptrace, task_for_pid, or
SeDebugPrivilege), crashes caused by reading corrupted target
process memory are not security issues, and a compromised target
process is out of scope. A subsection explains when operators
should use PYTHON_DISABLE_REMOTE_DEBUG for defence-in-depth.
(cherry picked from commit edab6860a7d6c49b5d5762e1c094aa0261245a9c)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
11 days ago[3.14] gh-146907: Clarify ABI compatibility between debug and release builds (GH...
Miss Islington (bot) [Fri, 3 Apr 2026 08:02:36 +0000 (10:02 +0200)] 
[3.14] gh-146907: Clarify ABI compatibility between debug and release builds (GH-146925) (GH-147971)

(cherry picked from commit 03f3b9ade975e78a31bf776ff27ac6ac22fcb65a)

Co-authored-by: konsti <konstin@mailbox.org>
12 days ago[3.14] gh-142533: Document CRLF injection vulnerabilities in http.server doc (GH...
Miss Islington (bot) [Thu, 2 Apr 2026 21:32:48 +0000 (23:32 +0200)] 
[3.14] gh-142533: Document CRLF injection vulnerabilities in http.server doc (GH-143395) (#148020)

gh-142533: Document CRLF injection vulnerabilities in http.server doc (GH-143395)
(cherry picked from commit 617f4cc1c2605b86b4833450253c3599b61d6638)

Co-authored-by: Tadej Magajna <tmagajna@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
12 days ago[3.14] gh-146488: hash-pin all action references (gh-146489) (#147983)
William Woodruff [Thu, 2 Apr 2026 09:30:01 +0000 (05:30 -0400)] 
[3.14] gh-146488: hash-pin all action references (gh-146489) (#147983)

13 days ago[3.14] gh-146615: Fix format specifiers in extension modules (GH-146617) (#147704)
sunmy2019 [Wed, 1 Apr 2026 13:12:44 +0000 (21:12 +0800)] 
[3.14] gh-146615: Fix format specifiers in extension modules (GH-146617) (#147704)

Fix format specifier in parse_task_name() for long result.

2 weeks ago[3.14] gh-144438: Fix false sharing between QSBR and tlbc_index (gh-144554) (#144923)
Sam Gross [Tue, 31 Mar 2026 19:20:24 +0000 (15:20 -0400)] 
[3.14] gh-144438: Fix false sharing between QSBR and tlbc_index (gh-144554) (#144923)

Align the QSBR thread state array to a 64-byte cache line boundary
and add padding at the end of _PyThreadStateImpl. Depending on heap
layout, the QSBR array could end up sharing a cache line with a
thread's tlbc_index, causing QSBR quiescent state updates to contend
with reads of tlbc_index in RESUME_CHECK. This is sensitive to
earlier allocations during interpreter init and can appear or
disappear with seemingly unrelated changes.

Either change alone is sufficient to fix the specific issue, but both
are worthwhile to avoid similar problems in the future.

(cherry picked from commit 6577d870b0cb82baf540f4bcf49c01d68204e468)

2 weeks ago[3.14] gh-143050: Correct PyLong_FromString() to use _PyLong_Negate() (GH-145901...
Miss Islington (bot) [Tue, 31 Mar 2026 14:14:12 +0000 (16:14 +0200)] 
[3.14] gh-143050: Correct PyLong_FromString() to use _PyLong_Negate() (GH-145901) (#147331)

gh-143050: Correct PyLong_FromString() to use _PyLong_Negate() (GH-145901)

The long_from_string_base() might return a small integer, when the
_pylong.py is used to do conversion.  Hence, we must be careful here to
not smash it "small int" bit by using the _PyLong_FlipSign().
(cherry picked from commit db5936c5b89aa19e04d63120e0cf5bbc73bf2420)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.14] gh-126835: Fix _PY_IS_SMALL_INT() macro (GH-146631) (#147187)
Miss Islington (bot) [Tue, 31 Mar 2026 13:27:11 +0000 (15:27 +0200)] 
[3.14] gh-126835: Fix _PY_IS_SMALL_INT() macro (GH-146631) (#147187)

gh-126835: Fix _PY_IS_SMALL_INT() macro (GH-146631)
(cherry picked from commit adf2c47911b35134cf108c24a3cc7794b7755aac)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.14] gh-145563: Add thread-safety annotation for PyCapsule C-API (GH-146612) (...
Miss Islington (bot) [Tue, 31 Mar 2026 11:35:49 +0000 (13:35 +0200)] 
[3.14] gh-145563: Add thread-safety annotation for PyCapsule C-API (GH-146612) (#146659)

gh-145563: Add thread-safety annotation for PyCapsule C-API (GH-146612)
(cherry picked from commit 67354b2925e28b3bcc6e5b52bf92cd5f4cc69d3c)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
2 weeks ago[3.14] gh-146615: Fix format specifiers in extension modules (GH-146617) (GH-146652)
Serhiy Storchaka [Tue, 31 Mar 2026 10:07:09 +0000 (13:07 +0300)] 
[3.14] gh-146615: Fix format specifiers in extension modules (GH-146617) (GH-146652)

(cherry picked from commit 1c396e18218daa723b425af0781c5e762d7717c2)

Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
2 weeks ago[3.14] gh-146615: Fix format specifiers in Objects/ directory (GH-146620) (GH-146651)
Miss Islington (bot) [Tue, 31 Mar 2026 09:17:58 +0000 (11:17 +0200)] 
[3.14] gh-146615: Fix format specifiers in Objects/ directory (GH-146620) (GH-146651)

(cherry picked from commit bbf7fb2c15a1dc9a54d10937c3d0831b0968257d)

Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
2 weeks ago[3.14] gh-146615: Fix format specifiers in test cextensions (GH-146618) (GH-146649)
Miss Islington (bot) [Tue, 31 Mar 2026 08:31:05 +0000 (10:31 +0200)] 
[3.14] gh-146615: Fix format specifiers in test cextensions (GH-146618) (GH-146649)

(cherry picked from commit b7055533abc2f7f93e04778fb70664096aa3d3b5)

Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
2 weeks ago[3.14] gh-146615: Fix format specifiers in Python/ directory (GH-146619) (GH-146650)
Miss Islington (bot) [Tue, 31 Mar 2026 08:25:07 +0000 (10:25 +0200)] 
[3.14] gh-146615: Fix format specifiers in Python/ directory (GH-146619) (GH-146650)

(cherry picked from commit dcb260eff2d276976933f78c24a4ebd0ed7dbc36)

Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
2 weeks ago[3.14] gh-146615: Fix crash in __get__() for METH_METHOD descriptors with invalid...
Miss Islington (bot) [Tue, 31 Mar 2026 08:20:00 +0000 (10:20 +0200)] 
[3.14] gh-146615: Fix crash in __get__() for METH_METHOD descriptors with invalid type argument (GH-146634) (GH-146647)

(cherry picked from commit 72d29ea363f1515115753653aeca735a1a817a7f)

Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
2 weeks ago[3.14] gh-146376: Reduce timeout in Emscripten GHA workflow (GH-146378) (#146645)
Miss Islington (bot) [Mon, 30 Mar 2026 21:03:46 +0000 (23:03 +0200)] 
[3.14] gh-146376: Reduce timeout in Emscripten GHA workflow (GH-146378) (#146645)

gh-146376: Reduce timeout in Emscripten GHA workflow (GH-146378)
(cherry picked from commit 70d1b08a4bb52652094c3eb69e36223ecd8b8075)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2 weeks ago[3.14] gh-146250: Fix memory leak in re-initialization of `SyntaxError` (GH-146251...
Miss Islington (bot) [Mon, 30 Mar 2026 16:14:58 +0000 (18:14 +0200)] 
[3.14] gh-146250: Fix memory leak in re-initialization of `SyntaxError` (GH-146251) (#146517)

Co-authored-by: Brij Kapadia <97006829+bkap123@users.noreply.github.com>
2 weeks ago[3.14] gh-146416: Emscripten: Improve standard stream handling in node_entry.mjs...
Miss Islington (bot) [Mon, 30 Mar 2026 12:18:19 +0000 (14:18 +0200)] 
[3.14] gh-146416: Emscripten: Improve standard stream handling in node_entry.mjs (GH-146417) (#146630)

gh-146416: Emscripten: Improve standard stream handling in node_entry.mjs (GH-146417)
(cherry picked from commit 6857de625f1ab256c0ce48d9c8280d678d61bab1)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.14] gh-146444: Don't package as part of iOS 'build hosts' target (GH-146628) ...
Miss Islington (bot) [Mon, 30 Mar 2026 11:19:22 +0000 (13:19 +0200)] 
[3.14] gh-146444: Don't package as part of iOS 'build hosts' target (GH-146628) (#146629)

gh-146444: Don't package as part of iOS 'build hosts' target (GH-146628)

* Revert Py3.9 compatibility fixes.
* Only build the package on 'build all'.
(cherry picked from commit 6420847bdaa945fb13251d3f93968946c0f3444f)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2 weeks ago[3.14] gh-146444: Make Platforms/Apple/ compatible with Python 3.9 (GH-146624) (...
Miss Islington (bot) [Mon, 30 Mar 2026 09:41:50 +0000 (11:41 +0200)] 
[3.14] gh-146444: Make Platforms/Apple/ compatible with Python 3.9 (GH-146624) (#146627)

gh-146444: Make Platforms/Apple/ compatible with Python 3.9 (GH-146624)

Replace "str | None" with typing.Union[str, None].
(cherry picked from commit 382c04308d7c3638fc0402116ce8654b80b4b776)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.14] gh-146579: _zstd: Fix decompression options dict error message (GH-146577...
Miss Islington (bot) [Mon, 30 Mar 2026 08:26:45 +0000 (10:26 +0200)] 
[3.14] gh-146579: _zstd: Fix decompression options dict error message (GH-146577) (#146611)

The TypeError in _zstd_set_d_parameters incorrectly referred to
compression options; say decompression options instead.
(cherry picked from commit 4d0e8ee649ceff96b130e1676a73c20c469624a9)

Co-authored-by: cui <cuiweixie@gmail.com>
2 weeks ago[3.14] gh-146556: Fix infinite loop in annotationlib.get_annotations() on circular...
Miss Islington (bot) [Mon, 30 Mar 2026 05:30:14 +0000 (07:30 +0200)] 
[3.14] gh-146556: Fix infinite loop in annotationlib.get_annotations() on circular __wrapped__ (GH-146557) (#146622)

gh-146556: Fix infinite loop in annotationlib.get_annotations() on circular __wrapped__ (GH-146557)
(cherry picked from commit 2cf6a68f028da164bdb9b0ce8ad2cc9bf8f72750)

Co-authored-by: Ramin Farajpour Cami <ramin.blackhat@gmail.com>
2 weeks ago[3.14] gh-146083: Upgrade bundled Expat to 2.7.5 (GH-146085) (#146603)
Miss Islington (bot) [Sun, 29 Mar 2026 17:31:02 +0000 (19:31 +0200)] 
[3.14] gh-146083: Upgrade bundled Expat to 2.7.5 (GH-146085) (#146603)

(cherry picked from commit e39d84a37dfc8bcdc0eb4d6f3ce7d5ee829d7f30)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.14] gh-146090: fix memory management of internal `sqlite3` callback contexts ...
Miss Islington (bot) [Sun, 29 Mar 2026 13:15:05 +0000 (15:15 +0200)] 
[3.14] gh-146090: fix memory management of internal `sqlite3` callback contexts (GH-146569) (#146595)

gh-146090: fix memory management of internal `sqlite3` callback contexts (GH-146569)
(cherry picked from commit aa6680775d6d9ca571a675c3b2d655f4ade78c0c)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2 weeks ago[3.14] gh-146080: fix a crash in SNI callbacks when the SSL object is gone (GH-146573...
Bénédikt Tran [Sun, 29 Mar 2026 12:58:37 +0000 (14:58 +0200)] 
[3.14] gh-146080: fix a crash in SNI callbacks when the SSL object is gone (GH-146573) (#146597)

(cherry picked from commit 24db78c5329dd405460bfdf76df380ced6231353)

2 weeks ago[3.14] gh-146004: fix test_args_from_interpreter_flags on windows (GH-146580) (#146585)
Miss Islington (bot) [Sun, 29 Mar 2026 04:55:22 +0000 (06:55 +0200)] 
[3.14] gh-146004: fix test_args_from_interpreter_flags on windows (GH-146580) (#146585)

gh-146004: fix test_args_from_interpreter_flags on windows (GH-146580)
(cherry picked from commit 1af025dd2206eecee3ee6242f2a7cdb67173fb97)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
2 weeks ago[3.14] gh-146544: Fix `asyncio.Queue` docstring ambiguity (GH-146545) (#146567)
Miss Islington (bot) [Sat, 28 Mar 2026 14:11:29 +0000 (15:11 +0100)] 
[3.14] gh-146544: Fix `asyncio.Queue` docstring ambiguity (GH-146545) (#146567)

gh-146544: Fix `asyncio.Queue` docstring ambiguity (GH-146545)
(cherry picked from commit 578d726d467dee14abe52a7790aca36e4cb9f70c)

Co-authored-by: Jonathan Dung <jonathandung@yahoo.com>
2 weeks ago[3.14] Docs: don't rely on implicit 'above' directions in socket docs (GH-146426...
Miss Islington (bot) [Sat, 28 Mar 2026 09:53:14 +0000 (10:53 +0100)] 
[3.14] Docs: don't rely on implicit 'above' directions in socket docs (GH-146426) (#146560)

Docs: don't rely on implicit 'above' directions in socket docs (GH-146426)
(cherry picked from commit 3ff582238fda913691734245416eaa1a18c7ca0e)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2 weeks ago[3.14] gh-146004: propagate all -X options to multiprocessing child processes (GH...
Miss Islington (bot) [Sat, 28 Mar 2026 05:30:06 +0000 (06:30 +0100)] 
[3.14] gh-146004: propagate all -X options to multiprocessing child processes (GH-146005) (#146552)

gh-146004: propagate all -X options to multiprocessing child processes (GH-146005)

Propagate all -X command line options to multiprocessing spawned child Python processes.
(cherry picked from commit 1efe441de7c448852b9ba51fb0db4d355a7157a8)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
2 weeks ago[3.14] Fix possible memory leak in OrderedDict popitem (GH-145247) (#146537)
Sergey Miryanov [Fri, 27 Mar 2026 21:40:50 +0000 (02:40 +0500)] 
[3.14] Fix possible memory leak in OrderedDict popitem (GH-145247) (#146537)

2 weeks ago[3.14] gh-146310: Fix ensurepip to treat empty WHEEL_PKG_DIR as unset (GH-146357...
Miss Islington (bot) [Fri, 27 Mar 2026 21:13:17 +0000 (22:13 +0100)] 
[3.14] gh-146310: Fix ensurepip to treat empty WHEEL_PKG_DIR as unset (GH-146357) (#146534)

gh-146310: Fix ensurepip to treat empty WHEEL_PKG_DIR as unset (GH-146357)

Path('') resolves to CWD, so an empty WHEEL_PKG_DIR string caused
ensurepip to search the current working directory for wheel files.
Add a truthiness check to treat empty strings the same as None.
(cherry picked from commit 73cc1fd4f45b4daf2b2f9a6be69148775c7c2bff)

Co-authored-by: Imgyu Kim <kimimgo@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.14] gh-145616: Detect Android sysconfig ABI correctly on 32-bit ARM Android on...
Miss Islington (bot) [Fri, 27 Mar 2026 19:43:23 +0000 (20:43 +0100)] 
[3.14] gh-145616: Detect Android sysconfig ABI correctly on 32-bit ARM Android on 64-bit ARM kernel (GH-145617) (#146464)

gh-145616: Detect Android sysconfig ABI correctly on 32-bit ARM Android on 64-bit ARM kernel (GH-145617)

When Python is running on 32-bit ARM Android on a 64-bit ARM kernel, `os.uname().machine` is `armv8l`. Such devices run the same userspace code as `armv7l` devices, so apply the same `armeabi_v7a` Android ABI to them, which works.
(cherry picked from commit 3a2b81e919103c0be3bc60a47aaa74d34fea6e9e)

Co-authored-by: Robert Kirkman <31490854+robertkirkman@users.noreply.github.com>
2 weeks ago[3.14] Mention _Float16 (type from Annex H of the C23) in the struct docs (GH-146243...
Miss Islington (bot) [Fri, 27 Mar 2026 17:44:27 +0000 (18:44 +0100)] 
[3.14] Mention _Float16 (type from Annex H of the C23) in the struct docs (GH-146243) (#146529)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2 weeks ago[3.14] gh-142518: add thread safety annotations for bytearray C-API (GH-146514) ...
Miss Islington (bot) [Fri, 27 Mar 2026 13:51:05 +0000 (14:51 +0100)] 
[3.14] gh-142518: add thread safety annotations for bytearray C-API (GH-146514) (#146516)

gh-142518: add thread safety annotations for bytearray C-API (GH-146514)
(cherry picked from commit 5466f57eaddeec7f07a681993b22167e42c9807a)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2 weeks ago[3.14] gh-142518: add thread safety docs on bytes C-API (GH-146415) (#146515)
Miss Islington (bot) [Fri, 27 Mar 2026 13:07:37 +0000 (14:07 +0100)] 
[3.14] gh-142518: add thread safety docs on bytes C-API (GH-146415) (#146515)

gh-142518: add thread safety docs on bytes C-API (GH-146415)
(cherry picked from commit 6a94980301b880b7ac1178efd31d14f031f690f5)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2 weeks ago[3.14] gh-146480: Override the exception in _PyErr_SetKeyError() (GH-146486) (#146511)
Miss Islington (bot) [Fri, 27 Mar 2026 11:48:29 +0000 (12:48 +0100)] 
[3.14] gh-146480: Override the exception in _PyErr_SetKeyError() (GH-146486) (#146511)

gh-146480: Override the exception in _PyErr_SetKeyError() (GH-146486)

If _PyErr_SetKeyError() is called with an exception set, it now
replaces the current exception with KeyError (as expected), instead
of setting a SystemError or failing with a fatal error (in debug
mode).
(cherry picked from commit d4153a9f76736128306c4af01776729da846d926)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.14] gh-146059: Cleanup pickle fast_save_enter() test (GH-146481) (#146509)
Miss Islington (bot) [Fri, 27 Mar 2026 08:40:03 +0000 (09:40 +0100)] 
[3.14] gh-146059: Cleanup pickle fast_save_enter() test (GH-146481) (#146509)

gh-146059: Cleanup pickle fast_save_enter() test (GH-146481)

Remove {"key": data}, it's not required to reproduce the bug.
Simplify also deep_nested_struct(): remove the seed parameter.
Fix a typo in a comment.
(cherry picked from commit 0c7a75aeef4dae87f02536ed4c42a57c13ef20e2)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.14] gh-146244: Fix initconfig.c SET_ITEM macro leaks dict on expression failure...
Miss Islington (bot) [Fri, 27 Mar 2026 02:37:53 +0000 (03:37 +0100)] 
[3.14] gh-146244: Fix initconfig.c SET_ITEM macro leaks dict on expression failure (GH-146246) (GH-146432)

(cherry picked from commit 9343518c6f413b2231b17c56065e5cf823aa0d2a)

Co-authored-by: Wulian233 <1055917385@qq.com>
2 weeks ago[3.14] gh-146498: Ensure binary content is correctly processed in multi-arch iOS...
Miss Islington (bot) [Fri, 27 Mar 2026 02:16:52 +0000 (03:16 +0100)] 
[3.14] gh-146498: Ensure binary content is correctly processed in multi-arch iOS XCframeworks (GH-146499) (#146502)

Ensure that multi-arch libpython dylibs aren't copied into the app, and the
standard lib is always found for framework post-processing.
(cherry picked from commit 5684b3a04c6985e48b9a3d5394e3b7878901d6aa)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2 weeks ago[3.14] gh-146446: Miscellaneous improvements to iOS XCframework build script (GH...
Miss Islington (bot) [Thu, 26 Mar 2026 22:18:16 +0000 (23:18 +0100)] 
[3.14] gh-146446: Miscellaneous improvements to iOS XCframework build script (GH-146447) (#146496)

Modifies the iOS build script so that the clean target is more selective about
what is cleaned, the test target has a valid fallback value for ci mode, and the
cross-build directory can be customised.
(cherry picked from commit ca6dfa0f31132c80aaad40855087c2d931dc2d0f)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2 weeks ago[3.14] gh-144837: Improve documentation for more collection methods (GH-144841) ...
Miss Islington (bot) [Thu, 26 Mar 2026 19:55:25 +0000 (20:55 +0100)] 
[3.14] gh-144837: Improve documentation for more collection methods (GH-144841) (GH-146483)

Use uniform standard signature syntax in the tutorial and in
the array and collections modules documentation.
(cherry picked from commit 17070f41d4ccf5e82e5841e467b3aef5294f2c9a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.14] gh-146059: Call fast_save_leave() in pickle save_frozenset() (GH-146173) ...
Miss Islington (bot) [Thu, 26 Mar 2026 17:02:20 +0000 (18:02 +0100)] 
[3.14] gh-146059: Call fast_save_leave() in pickle save_frozenset() (GH-146173) (#146473)

gh-146059: Call fast_save_leave() in pickle save_frozenset() (GH-146173)

Add more pickle tests: test also nested structures.
(cherry picked from commit 5c0dcb3e0d817bd8c28e8efcdb97103cd9210989)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.14] gh-146318: Document that signal.SIGSTOP is Unix-only (GH-146319) (#146468)
Miss Islington (bot) [Thu, 26 Mar 2026 15:49:43 +0000 (16:49 +0100)] 
[3.14] gh-146318: Document that signal.SIGSTOP is Unix-only (GH-146319) (#146468)

gh-146318: Document that signal.SIGSTOP is Unix-only (GH-146319)
(cherry picked from commit e44993a6654de99018404960f816e57797511675)

Co-authored-by: Jonathan Dung <jonathandung@yahoo.com>
2 weeks ago[3.14] gh-145633: Fix struct.pack('f') on s390x (GH-146422) (#146460)
Miss Islington (bot) [Thu, 26 Mar 2026 11:38:42 +0000 (12:38 +0100)] 
[3.14] gh-145633: Fix struct.pack('f') on s390x (GH-146422) (#146460)

gh-145633: Fix struct.pack('f') on s390x (GH-146422)

Use PyFloat_Pack4() to raise OverflowError.
Add more tests on packing/unpacking floats.
(cherry picked from commit 8de70b31c59b1d572d95f8bb471a09cfe4cd2b13)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2 weeks ago[3.14] gh-138573: Filter out failing math tests on Solaris (GH-146402) (#146438)
Miss Islington (bot) [Thu, 26 Mar 2026 00:42:27 +0000 (01:42 +0100)] 
[3.14] gh-138573: Filter out failing math tests on Solaris (GH-146402) (#146438)

gh-138573: Filter out failing math tests on Solaris (GH-146402)
(cherry picked from commit 8e1469c952fb9db57efdcdce459fd6f78fbaeea3)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2 weeks ago[3.14] Fix typo in 3.14 What's New tail call interpreter docs (GH-146425) (GH-146430)
Miss Islington (bot) [Wed, 25 Mar 2026 18:59:35 +0000 (19:59 +0100)] 
[3.14] Fix typo in 3.14 What's New tail call interpreter docs (GH-146425) (GH-146430)

Fix typo in 3.14 What's New tail call interpreter docs (GH-146425)
(cherry picked from commit 4447f23f40801b2941e6c97eaeccf34852ba40f3)

Co-authored-by: johnthagen <johnthagen@users.noreply.github.com>
2 weeks ago[3.14] gh-146358: Fix warnings.catch_warnings on Free Threading (GH-146374) (#146418)
Miss Islington (bot) [Wed, 25 Mar 2026 16:23:21 +0000 (17:23 +0100)] 
[3.14] gh-146358: Fix warnings.catch_warnings on Free Threading (GH-146374) (#146418)

gh-146358: Fix warnings.catch_warnings on Free Threading (GH-146374)

catch_warnings now also overrides warnings.showwarning() on Free
Threading to support custom warnings.showwarning().
(cherry picked from commit 0055140b2cf3e3a86ef9ab7a39e2083212b27c58)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.14] gh-145098: Run Apple Silicon macOS CI on macos-26 (Tahoe) (GH-145099) (#146412)
Miss Islington (bot) [Wed, 25 Mar 2026 11:41:12 +0000 (12:41 +0100)] 
[3.14] gh-145098: Run Apple Silicon macOS CI on macos-26 (Tahoe) (GH-145099) (#146412)

Co-authored-by: clintonsteiner <47841949+clintonsteiner@users.noreply.github.com>
2 weeks ago[3.14] gh-146352: In Emscripten pyrepl test, pick port dynamically (GH-146375) (...
Hood Chatham [Wed, 25 Mar 2026 11:34:43 +0000 (12:34 +0100)] 
[3.14] gh-146352: In Emscripten pyrepl test, pick port dynamically (GH-146375) (#146411)

Dynamically allocates the port for the pyrepl browser test, so that multiple
tests can run at the same time. Also allows the pyrepl test to honor the
CROSS_BUILD_DIR environment variable.
(cherry picked from commit 2be147e1e75022d66eecb80b46904ed61a7a574f)

2 weeks ago[3.14] gh-144984: Skip test under tracerefs (GH-146218) (GH-146384)
Miss Islington (bot) [Wed, 25 Mar 2026 09:35:31 +0000 (10:35 +0100)] 
[3.14] gh-144984: Skip test under tracerefs (GH-146218) (GH-146384)

(cherry picked from commit 119fce7b886384fe9079b95345fa83582c08a577)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 weeks ago[3.14] gh-146041: Avoid lock in sys.intern() for already interned strings (gh-146072...
Sam Gross [Wed, 25 Mar 2026 01:42:19 +0000 (21:42 -0400)] 
[3.14] gh-146041: Avoid lock in sys.intern() for already interned strings (gh-146072) (#146390)

Fix free-threading scaling bottleneck in sys.intern and `PyObject_SetAttr` by
avoiding the interpreter-wide lock when the string is already interned and
immortalized.

(cherry picked from commit 60093096ba62110151d822b072a01061876e9404)

2 weeks ago[3.14] gh-146308: Fix error handling issues in _remote_debugging module (GH-146309...
Pablo Galindo Salgado [Wed, 25 Mar 2026 01:05:47 +0000 (01:05 +0000)] 
[3.14] gh-146308: Fix error handling issues in _remote_debugging module (GH-146309) (#146398)

(cherry picked from commit ae6adc907907562e4ffbb5355f12e77e9085c506)

3 weeks ago[3.14] gh-140196: Added constructor behavior changes in ast.rst for python 3.13 ...
Miss Islington (bot) [Tue, 24 Mar 2026 01:37:09 +0000 (02:37 +0100)] 
[3.14] gh-140196: Added constructor behavior changes in ast.rst for python 3.13 (GH-140243) (GH-146351)

(cherry picked from commit fae5761a762a587b48430cbcd6e1886034ae8130)

Co-authored-by: Parman Mohammadalizadeh <prmma23@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 weeks ago[3.14] gh-146202: Create tmp_dir in regrtest worker (GH-146347) (#146349)
Miss Islington (bot) [Tue, 24 Mar 2026 00:13:09 +0000 (01:13 +0100)] 
[3.14] gh-146202: Create tmp_dir in regrtest worker (GH-146347) (#146349)

gh-146202: Create tmp_dir in regrtest worker (GH-146347)

Create tmp_dir in libregrtest.worker since the directory can be
different than the --tempdir directory.
(cherry picked from commit bcff99cb3f3b887a08c4f0ace1279ced38dd9e62)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 weeks ago[3.14] gh-145870: Fix Format.SOURCE reference in get_annotations docstring (GH-145889...
Miss Islington (bot) [Mon, 23 Mar 2026 23:29:53 +0000 (00:29 +0100)] 
[3.14] gh-145870: Fix Format.SOURCE reference in get_annotations docstring (GH-145889) (GH-146036)

The get_annotations() docstring incorrectly referred to the SOURCE
format, which was renamed to STRING during PEP 749 development.
(cherry picked from commit 2a0fa500f82fc160feb726c0631f58c9a2f76796)

Co-authored-by: wavebyrd <160968744+wavebyrd@users.noreply.github.com>
Co-authored-by: Carson Jones <carson@Carsons-MacBook-Pro.local>
3 weeks ago[3.14] gh-136728: Combine OpenSSL and AWS-LC CI configurations (GH-144805) (GH-145397)
Zachary Ware [Mon, 23 Mar 2026 23:28:27 +0000 (18:28 -0500)] 
[3.14] gh-136728: Combine OpenSSL and AWS-LC CI configurations (GH-144805) (GH-145397)

(cherry picked from commit c9b96b1e6fea13dc2879dcc626015c06dc0056ac)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 weeks ago[3.14] GH-131296: Suppress clang-cl warnings in socketmodule.c (GH-131821) (GH-146339)
Miss Islington (bot) [Mon, 23 Mar 2026 23:27:20 +0000 (00:27 +0100)] 
[3.14] GH-131296: Suppress clang-cl warnings in socketmodule.c (GH-131821) (GH-146339)

(cherry picked from commit cc8e6d27031dcf2582bd287b14ab9b6e200d5e92)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
3 weeks ago[3.14] GH-131296: Fix clang-cl warning on Windows in socketmodule.h (GH-131832) ...
Miss Islington (bot) [Mon, 23 Mar 2026 23:27:01 +0000 (00:27 +0100)] 
[3.14] GH-131296: Fix clang-cl warning on Windows in socketmodule.h (GH-131832) (GH-146340)

(cherry picked from commit 59e2330cf391a9dc324690f8579acd179e66d19d)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
3 weeks ago[3.14] gh-145264: Do not ignore excess Base64 data after the first padded quad (GH...
Serhiy Storchaka [Mon, 23 Mar 2026 23:20:26 +0000 (01:20 +0200)] 
[3.14] gh-145264: Do not ignore excess Base64 data after the first padded quad (GH-145267) (GH-146326)

Base64 decoder (see binascii.a2b_base64(), base64.b64decode(), etc)
no longer ignores excess data after the first padded quad in non-strict
(default) mode.  Instead, in conformance with RFC 4648, it ignores the
pad character, "=", if it is present before the end of the encoded data.
(cherry picked from commit 4561f6418a691b3e89aef0901f53fe0dfb7f7c0e)

3 weeks ago[3.14] gh-143930: Reject leading dashes in webbrowser URLs (GH-146214)
Miss Islington (bot) [Mon, 23 Mar 2026 23:16:27 +0000 (00:16 +0100)] 
[3.14] gh-143930: Reject leading dashes in webbrowser URLs (GH-146214)

(cherry picked from commit 82a24a4442312bdcfc4c799885e8b3e00990f02b)

Co-authored-by: Seth Michael Larson <seth@python.org>
3 weeks ago[3.14] gh-146197: Add Emscripten to CI (GH-146198) (GH-146331)
Hood Chatham [Mon, 23 Mar 2026 23:13:16 +0000 (00:13 +0100)] 
[3.14] gh-146197: Add Emscripten to CI (GH-146198) (GH-146331)

(cherry picked from commit c94048be025ad9d39cd9307db8f503039094df11)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
3 weeks ago[3.14] docs: fix f-string in ExceptionGroup example (GH-146108) (GH-146126)
Miss Islington (bot) [Mon, 23 Mar 2026 23:09:00 +0000 (00:09 +0100)] 
[3.14] docs: fix f-string in ExceptionGroup example (GH-146108) (GH-146126)

(cherry picked from commit 2c6afb935ad588f32cb969345d0345e45d3a766e)

Co-authored-by: Bartosz Grabowski <58475557+bartosz-grabowski@users.noreply.github.com>
3 weeks ago[3.14] gh-145305: Update ocert.org URLs in docs from http to https (GH-145304) (GH...
Miss Islington (bot) [Mon, 23 Mar 2026 22:36:40 +0000 (23:36 +0100)] 
[3.14] gh-145305: Update ocert.org URLs in docs from http to https (GH-145304) (GH-145322)

(cherry picked from commit 11eec7a492670fff67fc083036d595f8498217db)

Co-authored-by: indoor47 <indoor47@gmail.com>
Co-authored-by: Adam (indoor47) <adamai@agentmail.to>
3 weeks ago[3.14] gh-141732: Fix ExceptionGroup repr changing when original exception sequence...
dr-carlos [Mon, 23 Mar 2026 22:31:32 +0000 (09:01 +1030)] 
[3.14] gh-141732: Fix ExceptionGroup repr changing when original exception sequence is mutated (GH-141736) (GH-144445)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 weeks ago[3.14] gh-136672: Docs: Move parts of Enum HOWTO to API Docs (GH-139176) (GH-144802)
Miss Islington (bot) [Mon, 23 Mar 2026 20:21:41 +0000 (21:21 +0100)] 
[3.14] gh-136672: Docs: Move parts of Enum HOWTO to API Docs (GH-139176) (GH-144802)

To avoid duplicate content in the Enum HOWTO and
API documentation which is not automatically synced,
the section about supported __dunder__ and _sunder
names is moved from HOWTO to API docs.

See also https://github.com/python/cpython/pull/136791
(cherry picked from commit 629a363ddd2889f023d5925506e61f5b6647accd)

Co-authored-by: Rafael Weingartner-Ortner <38643099+RafaelWO@users.noreply.github.com>
3 weeks ago[3.14] gh-146197: Run -m test.pythoninfo on the Emscripten CI (#146332) (#146336)
Victor Stinner [Mon, 23 Mar 2026 17:54:57 +0000 (18:54 +0100)] 
[3.14] gh-146197: Run -m test.pythoninfo on the Emscripten CI (#146332) (#146336)

gh-146197: Run -m test.pythoninfo on the Emscripten CI (#146332)

(cherry picked from commit a57209eb98943f4d8edbf56a55e98ec112e00e39)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
3 weeks ago[3.14] gh-108907: ctypes: Document _type_ codes (GH-145837) (GH-146328)
Miss Islington (bot) [Mon, 23 Mar 2026 13:07:24 +0000 (14:07 +0100)] 
[3.14] gh-108907: ctypes: Document _type_ codes (GH-145837) (GH-146328)

gh-108907: ctypes: Document _type_ codes (GH-145837)

Add `_SimpleCData._type_` docs.

Add type codes to the summary table.

Cross-link `struct`, `array`, and `ctypes`; throw in `numpy` too.
(Anyone wanting to add a code should be aware of those.)

Add `py_object`, and `VARIANT_BOOL` for completeness.
(cherry picked from commit 1114d7f7f874790f009c61cc14965888769bc198)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
3 weeks ago[3.14] gh-145144: Add more tests for UserList, UserDict, etc (GH-145145) (GH-146290)
Miss Islington (bot) [Sun, 22 Mar 2026 15:47:37 +0000 (16:47 +0100)] 
[3.14] gh-145144: Add more tests for UserList, UserDict, etc (GH-145145) (GH-146290)

(cherry picked from commit 161329cde2b1ce4e6a6fdd85c0da1d857aebfd2d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 weeks ago[3.14] gh-143959: Fix test_datetime if _datetime is unavailable (GH-145248) (GH-146288)
Miss Islington (bot) [Sun, 22 Mar 2026 14:41:38 +0000 (15:41 +0100)] 
[3.14] gh-143959: Fix test_datetime if _datetime is unavailable (GH-145248) (GH-146288)

(cherry picked from commit 97c725cd391ac63a934a6fe6f97602fe4c56f473)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 weeks ago[3.14] gh-146245: Fix reference and buffer leaks via audit hook in socket module...
Miss Islington (bot) [Sun, 22 Mar 2026 11:55:13 +0000 (12:55 +0100)] 
[3.14] gh-146245: Fix reference and buffer leaks via audit hook in socket module (GH-146248) (GH-146274)

(cherry picked from commit c30fae4bea9f9ba07833e97eb542754c26610765)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
3 weeks ago[3.14] gh-146056: Fix repr() for lists and tuples containing NULLs (GH-146129) (GH...
Serhiy Storchaka [Sun, 22 Mar 2026 07:25:02 +0000 (09:25 +0200)] 
[3.14] gh-146056: Fix repr() for lists and tuples containing NULLs (GH-146129) (GH-146155)

(cherry picked from commit 0f2246b1553f401da5ade47e0fd1c80ad7a8dfa5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
3 weeks ago[3.14] Docs: replace all `datetime` imports with `import datetime as dt` (GH-145640...
Miss Islington (bot) [Sat, 21 Mar 2026 18:19:07 +0000 (19:19 +0100)] 
[3.14] Docs: replace all `datetime` imports with `import datetime as dt` (GH-145640) (#146258)

Docs: replace all `datetime` imports with `import datetime as dt` (GH-145640)
(cherry picked from commit 83360b5869a4981c87dcb59d1186d26c41fe3386)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
3 weeks ago[3.14] gh-139588: Docs: fix PDF build (#145741)
Maciej Olko [Sat, 21 Mar 2026 17:07:12 +0000 (18:07 +0100)] 
[3.14] gh-139588: Docs: fix PDF build (#145741)

3 weeks ago[3.14] gh-138234: clarify returncode behavior for subprocesses created with `shell...
Miss Islington (bot) [Sat, 21 Mar 2026 12:38:34 +0000 (13:38 +0100)] 
[3.14] gh-138234: clarify returncode behavior for subprocesses created with `shell=True` (GH-138536) (#146254)

gh-138234: clarify returncode behavior for subprocesses created with `shell=True` (GH-138536)
(cherry picked from commit 8a531f89df8f8bf4c4fe395f9edcdc19852bdf1c)

Co-authored-by: andreuu-tsai <32549555+andreuu-tsai@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
3 weeks ago[3.14] GH-100108: Add async generators best practices section (GH-141885) (#146252)
Miss Islington (bot) [Sat, 21 Mar 2026 12:05:06 +0000 (13:05 +0100)] 
[3.14] GH-100108: Add async generators best practices section (GH-141885) (#146252)

GH-100108: Add async generators best practices section (GH-141885)
(cherry picked from commit 897fa231a7b9f3b0d5a983e1d2ab37f22304c455)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
3 weeks ago[3.14] gh-129849: Add tests for `Py_tp_bases` (GH-143208) (#146225)
AN Long [Sat, 21 Mar 2026 09:52:58 +0000 (17:52 +0800)] 
[3.14] gh-129849: Add tests for `Py_tp_bases` (GH-143208) (#146225)

(cherry picked from commit 6f8867a6765d3e6effdc09a22691830aa887c3d0)

3 weeks ago[3.14] gh-146227: Fix wrong type in _Py_atomic_load_uint16 in pyatomic_std.h (gh...
Sam Gross [Fri, 20 Mar 2026 20:08:20 +0000 (16:08 -0400)] 
[3.14] gh-146227: Fix wrong type in _Py_atomic_load_uint16 in pyatomic_std.h (gh-146229) (#146232)

Also fix a few related issues in the pyatomic headers:

* Fix _Py_atomic_store_uint_release in pyatomic_msc.h to use __stlr32
  on ARM64 instead of a plain volatile store (which is only relaxed on
  ARM64).

* Add missing _Py_atomic_store_uint_release to pyatomic_gcc.h.

* Fix pseudo-code comment for _Py_atomic_store_ptr_release in
  pyatomic.h.

(cherry picked from commit 1eff27f2c0452b3114bcf139062c87c025842c3e)

3 weeks ago[3.14] gh-146092: Raise MemoryError on allocation failure in _zoneinfo (GH-146165...
Miss Islington (bot) [Fri, 20 Mar 2026 16:44:19 +0000 (17:44 +0100)] 
[3.14] gh-146092: Raise MemoryError on allocation failure in _zoneinfo (GH-146165) (#146223)

gh-146092: Raise MemoryError on allocation failure in _zoneinfo (GH-146165)
(cherry picked from commit 6450b1d142b6254d2e3b2eba47d69125ca79b3fe)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 weeks ago[3.14] gh-146196: Fix Undefined Behavior in _PyUnicodeWriter_WriteASCIIString() ...
Victor Stinner [Fri, 20 Mar 2026 16:26:18 +0000 (17:26 +0100)] 
[3.14] gh-146196: Fix Undefined Behavior in _PyUnicodeWriter_WriteASCIIString() (#146201) (#146220)

gh-146196: Fix Undefined Behavior in _PyUnicodeWriter_WriteASCIIString() (#146201)

Avoid calling memcpy(data + writer->pos, NULL, 0)
which has an undefined behavior.

(cherry picked from commit cd10a2e65c25682095f6ee4a9b9a181938a50d2e)

Co-authored-by: Shamil <ashm.tech@proton.me>
3 weeks ago[3.14] gh-91279: Note `SOURCE_DATE_EPOCH` support in `ZipFile.writestr()` doc (GH...
Miss Islington (bot) [Fri, 20 Mar 2026 16:20:39 +0000 (17:20 +0100)] 
[3.14] gh-91279: Note `SOURCE_DATE_EPOCH` support in `ZipFile.writestr()` doc (GH-139396) (#146222)

gh-91279: Note `SOURCE_DATE_EPOCH` support in `ZipFile.writestr()` doc (GH-139396)
(cherry picked from commit 5ad738f8fb214e9852dc527e6754cbfb7abf6cc8)

Co-authored-by: Wulian233 <1055917385@qq.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
3 weeks ago[3.14] Improve tests for the PyUnicodeWriter C API (GH-146157) (GH-146180)
Serhiy Storchaka [Fri, 20 Mar 2026 11:44:25 +0000 (13:44 +0200)] 
[3.14] Improve tests for the PyUnicodeWriter C API (GH-146157) (GH-146180)

Add tests for corner cases: NULL pointers and out of range values.
(cherry picked from commit ab47892c32e6361f2180e7d86682650f0850c1c4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 weeks ago[3.14] gh-145754: Update signature retrieval in unittest.mock to use forwardref annot...
Miss Islington (bot) [Fri, 20 Mar 2026 03:06:03 +0000 (04:06 +0100)] 
[3.14] gh-145754: Update signature retrieval in unittest.mock to use forwardref annotation format (GH-145756) (#146191)

gh-145754: Update signature retrieval in unittest.mock to use forwardref annotation format (GH-145756)
(cherry picked from commit d357a7dbf38868844415ec1d5df80379ea5a2326)

Co-authored-by: Matthias Schoettle <git@mattsch.com>
3 weeks ago[3.14] gh-145177: Add emscripten run --test, uses test args from config.toml (GH...
Miss Islington (bot) [Thu, 19 Mar 2026 22:39:48 +0000 (23:39 +0100)] 
[3.14] gh-145177: Add emscripten run --test, uses test args from config.toml (GH-146160) (#146186)

This allows us to change the test arguments from the python repo rather
than having to change buildmaster-config.
(cherry picked from commit 6b5511d66bab0754d1d959cfe98947c536bf4d82)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
3 weeks ago[3.14] gh-145177: Add make-dependencies command to emscripten build script (GH-146158...
Miss Islington (bot) [Thu, 19 Mar 2026 22:27:30 +0000 (23:27 +0100)] 
[3.14] gh-145177: Add make-dependencies command to emscripten build script (GH-146158) (#146184)

Adds a standalone target for building all dependencies so that the buildbot
script is independent of a specific dependency list.
(cherry picked from commit db11623694d1231323ee3a9339f7f7504a839478)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
3 weeks ago[3.14] gh-145177: Put node version into emscripten/config.toml. (GH-146156) (#146159)
Miss Islington (bot) [Thu, 19 Mar 2026 21:23:39 +0000 (22:23 +0100)] 
[3.14] gh-145177: Put node version into emscripten/config.toml. (GH-146156) (#146159)

Configure node version as part of the emscripten build script, and install
that node version if it isn't available.
(cherry picked from commit 91e1312b950e3a98a9e968da02500db127e06f43)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
3 weeks ago[3.14] gh-145779: Improve classmethod/staticmethod scaling in free-threaded build...
Sam Gross [Thu, 19 Mar 2026 14:49:12 +0000 (10:49 -0400)] 
[3.14] gh-145779: Improve classmethod/staticmethod scaling in free-threaded build (gh-145826) (#146088)

Add special cases for classmethod and staticmethod descriptors in
_PyObject_GetMethodStackRef() to avoid calling tp_descr_get, which
avoids reference count contention on the bound method and underlying
callable. This improves scaling when calling classmethods and
staticmethods from multiple threads.

Also refactor method_vectorcall in classobject.c into a new
_PyObject_VectorcallPrepend() helper so that it can be used by
PyObject_VectorcallMethod as well.

(cherry picked from commit e0f7c1097e19b6f5c2399e19f283c9fb373c243f)

3 weeks ago[3.14] gh-146092: Fix error handling in _BINARY_OP_ADD_FLOAT opcode (#146119)
Victor Stinner [Thu, 19 Mar 2026 11:14:33 +0000 (12:14 +0100)] 
[3.14] gh-146092: Fix error handling in _BINARY_OP_ADD_FLOAT opcode (#146119)

Fix error handling in _PyFloat_FromDouble_ConsumeInputs() used by
_BINARY_OP_ADD_FLOAT, _BINARY_OP_SUBTRACT_FLOAT and
_BINARY_OP_MULTIPLY_FLOAT opcodes. PyStackRef_FromPyObjectSteal()
must not be called with a NULL pointer.

Fix also _BINARY_OP_INPLACE_ADD_UNICODE opcode.