]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 hours ago[3.13] Fix mixed line endings with pre-commit (GH-148336) (#148339) 3.13
Hugo van Kemenade [Fri, 10 Apr 2026 15:36:16 +0000 (18:36 +0300)] 
[3.13] Fix mixed line endings with pre-commit (GH-148336) (#148339)

Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
6 hours ago[3.13] gh-145831: email.quoprimime: `decode()` leaves stray `\r` when `eol='\r\n...
Miss Islington (bot) [Fri, 10 Apr 2026 12:51:34 +0000 (14:51 +0200)] 
[3.13] gh-145831: email.quoprimime: `decode()` leaves stray `\r` when `eol='\r\n'` (GH-145832) (#148311)

decoded[:-1] only strips one character, leaving a stray \r when eol
is two characters. Fix: decoded[:-len(eol)].
(cherry picked from commit 1a0edb1fa899c067f19b09598b45cdb6e733c4ee)

Co-authored-by: Stefan Zetzsche <120379523+stefanzetzsche@users.noreply.github.com>
28 hours ago[3.13] gh-148254: Use singular "sec" in timeit verbose output (GH-148290) (#148304)
Hugo van Kemenade [Thu, 9 Apr 2026 15:06:27 +0000 (18:06 +0300)] 
[3.13] gh-148254: Use singular "sec" in timeit verbose output (GH-148290) (#148304)

Co-authored-by: gaweng <38250674+gaweng@users.noreply.github.com>
28 hours ago[3.13] gh-148091: clarify asyncio.Future.cancel(msg) behaviour (GH-148248) (#148300)
Miss Islington (bot) [Thu, 9 Apr 2026 14:52:59 +0000 (16:52 +0200)] 
[3.13] gh-148091: clarify asyncio.Future.cancel(msg) behaviour (GH-148248) (#148300)

gh-148091: clarify asyncio.Future.cancel(msg) behaviour (GH-148248)
(cherry picked from commit 2acb8d9257c4f5049777d9d462092373b0b3feca)

Co-authored-by: Manoj K M <136242596+manoj-k-m@users.noreply.github.com>
29 hours ago[3.13] gh-148067: Fix typo in asyncio event loop docs: 'signals' -> 'signal' (GH...
Miss Islington (bot) [Thu, 9 Apr 2026 14:07:54 +0000 (16:07 +0200)] 
[3.13] gh-148067: Fix typo in asyncio event loop docs: 'signals' -> 'signal' (GH-148073) (#148245)

Co-authored-by: TT <70463940+Herrtian@users.noreply.github.com>
29 hours ago[3.13] gh-106318: Add example for str.swapcase() method (GH-144575) (#148297)
Miss Islington (bot) [Thu, 9 Apr 2026 13:40:28 +0000 (15:40 +0200)] 
[3.13] gh-106318: Add example for str.swapcase() method (GH-144575) (#148297)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
32 hours ago[3.13] gh-146646: Document that glob functions suppress OSError (GH-147996) (#148289)
Miss Islington (bot) [Thu, 9 Apr 2026 10:51:12 +0000 (12:51 +0200)] 
[3.13] gh-146646: Document that glob functions suppress OSError (GH-147996) (#148289)

gh-146646: Document that glob functions suppress OSError (GH-147996)
(cherry picked from commit 8000a9de3c0b22f8202898a424c1008e13bd16ce)

Co-authored-by: WYSIATI <chester.lee.cold@gmail.com>
44 hours ago[3.13] gh-70039: smtplib: store the server name in ._host in .connect() (GH-115259...
Miss Islington (bot) [Wed, 8 Apr 2026 22:15:16 +0000 (00:15 +0200)] 
[3.13] gh-70039: smtplib: store the server name in ._host in .connect() (GH-115259) (#148272)

Original patch by gigaplastik, extended with a few more tests.

Addresses gh-70039 and bpo-25852: failure of starttls if connect is called explicitly.
(cherry picked from commit 442f83a5ea1b4d334befd231a79c40d6ff41a0bd)

Co-authored-by: nmartensen <nis.martensen@web.de>
2 days ago[3.13] Minor edit: Four space indent in example (gh-148264) (gh-148266)
Miss Islington (bot) [Wed, 8 Apr 2026 17:56:10 +0000 (19:56 +0200)] 
[3.13] Minor edit: Four space indent in example (gh-148264) (gh-148266)

2 days agoPost 3.13.13
Thomas Wouters [Tue, 7 Apr 2026 21:28:57 +0000 (23:28 +0200)] 
Post 3.13.13

3 days agoPython 3.13.13 v3.13.13
Thomas Wouters [Tue, 7 Apr 2026 18:18:42 +0000 (20:18 +0200)] 
Python 3.13.13

3 days ago[3.13] GH-146128: Remove the buggy AArch64 "33rx" relocation (#146263) (#148199)
Hugo van Kemenade [Tue, 7 Apr 2026 18:10:33 +0000 (21:10 +0300)] 
[3.13] GH-146128: Remove the buggy AArch64 "33rx" relocation (#146263) (#148199)

GH-146128: Remove the buggy AArch64 "33rx" relocation (#146263)

(cherry picked from commit 6bb7b33e8f8e1640e284aeb24bf90292df6a8187)

Co-authored-by: Brandt Bucher <brandt@python.org>
Co-authored-by: Ken Jin <kenjin@python.org>
3 days ago[3.13] gh-124613: Deactivate perf support in tests if the jit is set (GH-124794)...
Miss Islington (bot) [Tue, 7 Apr 2026 14:51:43 +0000 (16:51 +0200)] 
[3.13] gh-124613: Deactivate perf support in tests if the jit is set (GH-124794) (GH-148214)

gh-124613: Deactivate perf support in tests if the jit is set (GH-124794)

gh-124613: Deactivate the JIT during perf tests

(cherry picked from commit 5e9e50612eb27aef8f74a0ccc234e5cfae50c4d7)

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 days ago[3.13] gh-146121: Clarify security model of pkgutil.getdata; revert checks (GH-148197...
Miss Islington (bot) [Tue, 7 Apr 2026 10:26:51 +0000 (12:26 +0200)] 
[3.13] gh-146121: Clarify security model of pkgutil.getdata; revert checks (GH-148197) (#148205)

gh-146121: Clarify security model of pkgutil.getdata; revert checks (GH-148197)

This reverts commit bcdf231946b1da8bdfbab4c05539bb0cc964a1c7,
and clarifies get_data's security model.

(cherry picked from commit cf59bf76470f3d75ad47d80ffb8ce76b64b5e943)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
3 days ago[3.13] gh-146613: Fix re-entrant use-after-free in `itertools._grouper` (GH-147962...
Miss Islington (bot) [Tue, 7 Apr 2026 10:24:54 +0000 (12:24 +0200)] 
[3.13] gh-146613: Fix re-entrant use-after-free in `itertools._grouper` (GH-147962) (#148011)

gh-146613: Fix re-entrant use-after-free in `itertools._grouper` (GH-147962)
(cherry picked from commit fc7a188fe70a7b98696b4fcee8db9eb8398aeb7b)

Co-authored-by: Ma Yukun <68433685+TheSkyC@users.noreply.github.com>
3 days ago[3.13] gh-144984: Fix crash in Expat's `ExternalEntityParserCreate` error paths ...
Ramin Farajpour Cami [Tue, 7 Apr 2026 10:22:22 +0000 (13:52 +0330)] 
[3.13] gh-144984: Fix crash in Expat's `ExternalEntityParserCreate` error paths (GH-144992) (#146142)

* gh-144984: Fix crash in Expat's `ExternalEntityParserCreate` error paths (#144992)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-144984: Skip test under tracerefs (GH-146218)

---------

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
3 days ago[3.13] gh-144503: Pass sys.argv to forkserver as real argv elements (GH-148194) ...
Gregory P. Smith [Tue, 7 Apr 2026 06:19:40 +0000 (23:19 -0700)] 
[3.13] gh-144503: Pass sys.argv to forkserver as real argv elements (GH-148194) (#148196)

Avoid embedding the parent's sys.argv into the forkserver -c command
string via repr().  When sys.argv is large (e.g. thousands of file
paths from a pre-commit hook), the resulting single argument could
exceed the OS per-argument length limit (MAX_ARG_STRLEN on Linux,
typically 128 KiB), causing posix_spawn to fail and the parent to
observe a BrokenPipeError.

Instead, append the argv entries as separate command-line arguments
after -c; the forkserver child reads them back as sys.argv[1:].  This
cannot exceed any limit the parent itself did not already satisfy.

Regression introduced by gh-143706 / 298d5440eb8.
(cherry picked from commit 5e9d90b615b94469081b39a7b0808fea86c417be)

3 days ago[3.13] gh-137586: Open external osascript program with absolute path (GH-137584)...
Miss Islington (bot) [Tue, 7 Apr 2026 03:35:14 +0000 (05:35 +0200)] 
[3.13] gh-137586: Open external osascript program with absolute path (GH-137584) (#148174)

Co-authored-by: Fionn <1897918+fionn@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 days ago[3.13] gh-148157: Check for `_PyPegen_add_type_comment_to_arg` fail in `_PyPegen_name...
Miss Islington (bot) [Mon, 6 Apr 2026 12:13:32 +0000 (14:13 +0200)] 
[3.13] gh-148157: Check for `_PyPegen_add_type_comment_to_arg` fail in `_PyPegen_name_default_pair` (GH-148158) (#148163)

(cherry picked from commit 1795fccfbc7ccb89ead5c529b2f55f54622d1314)

Co-authored-by: Stan Ulbrych <stan@python.org>
4 days ago[3.13] Docs: Update "Installing Python modules" (GH-146249) (#148160)
Miss Islington (bot) [Mon, 6 Apr 2026 11:28:40 +0000 (13:28 +0200)] 
[3.13] Docs: Update "Installing Python modules" (GH-146249) (#148160)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 days ago[3.13] gh-144418: Increase Android testbed emulator RAM to 4 GB (GH-148054) (#148151)
Miss Islington (bot) [Mon, 6 Apr 2026 06:09:20 +0000 (08:09 +0200)] 
[3.13] gh-144418: Increase Android testbed emulator RAM to 4 GB (GH-148054) (#148151)

Pre-create the Android emulator image so that the the configuration can be
modified to use 4GB of RAM.
(cherry picked from commit a95ee3a21d97afdbe6bd2ce4cd8343a36cd13b02)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
4 days ago[3.13] gh-146541: Allow building the Android testbed for 32-bit targets (GH-146542...
Malcolm Smith [Sun, 5 Apr 2026 23:47:01 +0000 (00:47 +0100)] 
[3.13] gh-146541: Allow building the Android testbed for 32-bit targets (GH-146542) (#148107)

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>
4 days ago[3.13] gh-145098: Use `macos-15-intel` instead of unstable `macos-26-intel` in `...
Hugo van Kemenade [Sun, 5 Apr 2026 22:11:29 +0000 (01:11 +0300)] 
[3.13] gh-145098: Use `macos-15-intel` instead of unstable `macos-26-intel` in `{jit,tail-call}.yml` (GH-148126) (#148136)

(cherry picked from commit bce96a181350f348560fe0623361f39a6d5c6361)

Co-authored-by: Stan Ulbrych <stan@python.org>
5 days ago[3.13] gh-94632: document the subprocess need for extra_groups=() with user= (GH...
Miss Islington (bot) [Sun, 5 Apr 2026 18:14:03 +0000 (20:14 +0200)] 
[3.13] gh-94632: document the subprocess need for extra_groups=() with user= (GH-148129) (#148131)

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>
5 days ago[3.13] Add `permissions: {}` to all reusable workflows (#148114) (#148116)
Ezio Melotti [Sun, 5 Apr 2026 10:04:33 +0000 (18:04 +0800)] 
[3.13] Add `permissions: {}` to all reusable workflows (#148114) (#148116)

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

Add permissions: {} to all reusable workflows

(cherry picked from commit 1f36a510a2a16e8ff15572f44090c7db43bb7935)

6 days ago[3.13] Docs: Standardize documentation authors (GH-148102) (#148106)
Stan Ulbrych [Sat, 4 Apr 2026 18:14:37 +0000 (19:14 +0100)] 
[3.13] Docs: Standardize documentation authors (GH-148102) (#148106)

(cherry picked from commit 75be902a13c670a1ea16aee3644548723b7d7407)

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

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

(cherry picked from commit fe9befc1ca7eac36749ec358969464334381b9f9)

Co-authored-by: Stan Ulbrych <stan@python.org>
6 days ago[3.13] gh-145098: Use `macos-15-intel` instead of unstable `macos-26-intel` (GH-14803...
Hugo van Kemenade [Sat, 4 Apr 2026 10:04:43 +0000 (13:04 +0300)] 
[3.13] gh-145098: Use `macos-15-intel` instead of unstable `macos-26-intel` (GH-148038) (#148077)

6 days ago[3.13] gh-146450: Normalise feature set of Android build script with other platform...
Miss Islington (bot) [Sat, 4 Apr 2026 04:27:56 +0000 (06:27 +0200)] 
[3.13] gh-146450: Normalise feature set of Android build script with other platform build scripts (GH-146451) (#148066)

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>
7 days ago[3.13] gh-126676: Expand argparse docs for type=bool with warning and alternatives...
Miss Islington (bot) [Fri, 3 Apr 2026 19:10:09 +0000 (21:10 +0200)] 
[3.13] gh-126676: Expand argparse docs for type=bool with warning and alternatives (GH-146435) (#148049)

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>
7 days ago[3.13] gh-143930: Tweak the exception message and increase test coverage (GH-146476...
Łukasz Langa [Fri, 3 Apr 2026 17:45:02 +0000 (19:45 +0200)] 
[3.13] gh-143930: Tweak the exception message and increase test coverage (GH-146476) (GH-148045)

(cherry picked from commit 3681d47a440865aead912a054d4599087b4270dd)

7 days ago[3.13] gh-125895: Fix static asset location for `sphinx-notfound-page` (GH-147984...
Miss Islington (bot) [Fri, 3 Apr 2026 15:40:32 +0000 (17:40 +0200)] 
[3.13] gh-125895: Fix static asset location for `sphinx-notfound-page` (GH-147984) (#148041)

(cherry picked from commit 80ab6d958a0e4aa322aaf96994c43cd637496be6)

Co-authored-by: Stan Ulbrych <stan@python.org>
7 days ago[3.13] gh-143394: Skip pyrepl test_no_newline() basic REPL if readline is missing...
Miss Islington (bot) [Fri, 3 Apr 2026 12:35:26 +0000 (14:35 +0200)] 
[3.13] gh-143394: Skip pyrepl test_no_newline() basic REPL if readline is missing (GH-147973) (#148006)

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>
7 days ago[3.13] gh-146907: Clarify ABI compatibility between debug and release builds (GH...
Miss Islington (bot) [Fri, 3 Apr 2026 08:03:09 +0000 (10:03 +0200)] 
[3.13] gh-146907: Clarify ABI compatibility between debug and release builds (GH-146925) (GH-147972)

(cherry picked from commit 03f3b9ade975e78a31bf776ff27ac6ac22fcb65a)

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

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>
8 days ago[3.13] gh-146488: hash-pin all action references (gh-146489) (#147981)
William Woodruff [Thu, 2 Apr 2026 05:49:07 +0000 (01:49 -0400)] 
[3.13] gh-146488: hash-pin all action references (gh-146489) (#147981)

8 days ago[3.13] gh-146615: Fix format specifiers in Objects/ directory (GH-146620) (#147705)
sunmy2019 [Wed, 1 Apr 2026 21:52:14 +0000 (05:52 +0800)] 
[3.13] gh-146615: Fix format specifiers in Objects/ directory (GH-146620)  (#147705)

* Fix format specifiers in vgetargskeywordsfast_impl for improved error messages.
* Fix f-string syntax error message in tok_get_normal_mode.

10 days ago[3.13] gh-143050: Correct PyLong_FromString() to use _PyLong_Negate() (#145901) ...
Victor Stinner [Tue, 31 Mar 2026 15:06:38 +0000 (17:06 +0200)] 
[3.13] gh-143050: Correct PyLong_FromString() to use _PyLong_Negate() (#145901) (#147437)

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().

Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit db5936c5b89aa19e04d63120e0cf5bbc73bf2420)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
10 days ago[3.13] gh-146615: Fix format specifiers in extension modules (GH-146617) (GH-146652...
Serhiy Storchaka [Tue, 31 Mar 2026 10:59:06 +0000 (13:59 +0300)] 
[3.13] gh-146615: Fix format specifiers in extension modules (GH-146617) (GH-146652) (GH-146658)

(cherry picked from commit 1c396e18218daa723b425af0781c5e762d7717c2)
(cherry picked from commit 58c7259133bed4c0bff6a0d3939ddccf95e543f7)

Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
10 days ago[3.13] gh-146615: Fix crash in __get__() for METH_METHOD descriptors with invalid...
Miss Islington (bot) [Tue, 31 Mar 2026 09:22:59 +0000 (11:22 +0200)] 
[3.13] gh-146615: Fix crash in __get__() for METH_METHOD descriptors with invalid type argument (GH-146634) (GH-146648)

(cherry picked from commit 72d29ea363f1515115753653aeca735a1a817a7f)

Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
10 days ago[3.13] gh-146615: Fix format specifiers in Python/ directory (GH-146619) (GH-146654)
Serhiy Storchaka [Tue, 31 Mar 2026 09:16:44 +0000 (12:16 +0300)] 
[3.13] gh-146615: Fix format specifiers in Python/ directory (GH-146619) (GH-146654)

(cherry picked from commit dcb260eff2d276976933f78c24a4ebd0ed7dbc36)

Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
10 days ago[3.13] gh-146615: Fix format specifiers in Objects/ directory (GH-146620) (GH-146655)
Serhiy Storchaka [Tue, 31 Mar 2026 08:44:51 +0000 (11:44 +0300)] 
[3.13] gh-146615: Fix format specifiers in Objects/ directory (GH-146620) (GH-146655)

(cherry picked from commit bbf7fb2c15a1dc9a54d10937c3d0831b0968257d)

Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
10 days ago[3.13] gh-146615: Fix format specifiers in test cextensions (GH-146618) (GH-146653)
Serhiy Storchaka [Tue, 31 Mar 2026 08:38:59 +0000 (11:38 +0300)] 
[3.13] gh-146615: Fix format specifiers in test cextensions (GH-146618) (GH-146653)

(cherry picked from commit b7055533abc2f7f93e04778fb70664096aa3d3b5)

Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
11 days ago[3.13] gh-146250: Fix memory leak in re-initialization of `SyntaxError` (GH-146251...
AN Long [Mon, 30 Mar 2026 16:06:52 +0000 (00:06 +0800)] 
[3.13] gh-146250: Fix memory leak in re-initialization of `SyntaxError` (GH-146251) (#146519)

* [3.13] gh-146250: Fix memory leak in re-initialization of `SyntaxError` (GH-146251)
(cherry picked from commit 0de4e08a5990e4692feb1b1ea01c303e468a2894)

Co-authored-by: Brij Kapadia <97006829+bkap123@users.noreply.github.com>
* Minimize the changes

* Minimize the changes

* Minimize the changes

---------

Co-authored-by: Brij Kapadia <97006829+bkap123@users.noreply.github.com>
11 days ago[3.13] gh-145098: Run Apple Silicon macOS CI on macos-26 (Tahoe) (GH-145099) (GH...
Hugo van Kemenade [Mon, 30 Mar 2026 13:21:40 +0000 (16:21 +0300)] 
[3.13] gh-145098: Run Apple Silicon macOS CI on macos-26 (Tahoe) (GH-145099) (GH-146412) (#146414)

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Co-authored-by: clintonsteiner <47841949+clintonsteiner@users.noreply.github.com>
12 days ago[3.13] gh-146083: Upgrade bundled Expat to 2.7.5 (GH-146085) (#146604)
Miss Islington (bot) [Sun, 29 Mar 2026 17:50:07 +0000 (19:50 +0200)] 
[3.13] gh-146083: Upgrade bundled Expat to 2.7.5 (GH-146085) (#146604)

(cherry picked from commit e39d84a37dfc8bcdc0eb4d6f3ce7d5ee829d7f30)

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

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>
12 days ago[3.13] gh-146080: fix a crash in SNI callbacks when the SSL object is gone (GH-146573...
Bénédikt Tran [Sun, 29 Mar 2026 13:07:15 +0000 (15:07 +0200)] 
[3.13] gh-146080: fix a crash in SNI callbacks when the SSL object is gone (GH-146573) (#146598)

(cherry picked from commit 24db78c5329dd405460bfdf76df380ced6231353)

13 days ago[3.13] gh-146544: Fix `asyncio.Queue` docstring ambiguity (GH-146545) (#146568)
Miss Islington (bot) [Sat, 28 Mar 2026 11:27:59 +0000 (12:27 +0100)] 
[3.13] gh-146544: Fix `asyncio.Queue` docstring ambiguity (GH-146545) (#146568)

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

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

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>
13 days ago[3.13] gh-145616: Detect Android sysconfig ABI correctly on 32-bit ARM Android on...
Malcolm Smith [Sat, 28 Mar 2026 07:25:35 +0000 (07:25 +0000)] 
[3.13] gh-145616: Detect Android sysconfig ABI correctly on 32-bit ARM Android on 64-bit ARM kernel (GH-145617) (#146539)

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>
13 days ago[3.13] Fix possible memory leak in OrderedDict popitem (GH-145247) (#146538)
Sergey Miryanov [Fri, 27 Mar 2026 21:40:23 +0000 (02:40 +0500)] 
[3.13] Fix possible memory leak in OrderedDict popitem (GH-145247) (#146538)

13 days ago[3.13] gh-146310: Fix ensurepip to treat empty WHEEL_PKG_DIR as unset (GH-146357...
Miss Islington (bot) [Fri, 27 Mar 2026 21:10:44 +0000 (22:10 +0100)] 
[3.13] gh-146310: Fix ensurepip to treat empty WHEEL_PKG_DIR as unset (GH-146357) (#146535)

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.13] Mention _Float16 (type from Annex H of the C23) in the struct docs (GH-146243...
Miss Islington (bot) [Fri, 27 Mar 2026 17:44:29 +0000 (18:44 +0100)] 
[3.13] Mention _Float16 (type from Annex H of the C23) in the struct docs (GH-146243) (#146530)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2 weeks ago[3.13] gh-146480: Add tests on _PyErr_SetKeyError() (#146486) (#146512)
Victor Stinner [Fri, 27 Mar 2026 13:09:46 +0000 (14:09 +0100)] 
[3.13] gh-146480: Add tests on _PyErr_SetKeyError() (#146486) (#146512)

gh-146480: Add tests on _PyErr_SetKeyError() (#146486)

(cherry picked from commit d4153a9f76736128306c4af01776729da846d926)

2 weeks ago[3.13] gh-146059: Cleanup pickle fast_save_enter() test (GH-146481) (#146510)
Miss Islington (bot) [Fri, 27 Mar 2026 10:49:57 +0000 (11:49 +0100)] 
[3.13] gh-146059: Cleanup pickle fast_save_enter() test (GH-146481) (#146510)

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.13] gh-146059: Call fast_save_leave() in pickle save_frozenset() (GH-146173) ...
Miss Islington (bot) [Fri, 27 Mar 2026 08:47:53 +0000 (09:47 +0100)] 
[3.13] gh-146059: Call fast_save_leave() in pickle save_frozenset() (GH-146173) (#146474)

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.13] gh-138891: fix star-unpack in get_annotations (GH-138951) (#146491)
Brian Schubert [Thu, 26 Mar 2026 21:39:27 +0000 (17:39 -0400)] 
[3.13] gh-138891: fix star-unpack in get_annotations (GH-138951) (#146491)

(cherry picked from commit c6be6e453730228053783f3444cb62e1425a3feb)

Co-authored-by: Christoph Walcher <christoph-wa@gmx.de>
2 weeks ago[3.13] gh-144837: Improve documentation for more collection methods (GH-144841) ...
Miss Islington (bot) [Thu, 26 Mar 2026 19:52:07 +0000 (20:52 +0100)] 
[3.13] gh-144837: Improve documentation for more collection methods (GH-144841) (GH-146484)

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.13] gh-146318: Document that signal.SIGSTOP is Unix-only (GH-146319) (#146469)
Miss Islington (bot) [Thu, 26 Mar 2026 15:49:46 +0000 (16:49 +0100)] 
[3.13] gh-146318: Document that signal.SIGSTOP is Unix-only (GH-146319) (#146469)

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.13] gh-145633: Fix struct.pack('f') on s390x (#146422) (#146461)
Victor Stinner [Thu, 26 Mar 2026 11:45:10 +0000 (12:45 +0100)] 
[3.13] gh-145633: Fix struct.pack('f') on s390x (#146422) (#146461)

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

Use PyFloat_Pack4() to raise OverflowError.
Add more tests on packing/unpacking floats.

(cherry picked from commit 8de70b31c59b1d572d95f8bb471a09cfe4cd2b13)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2 weeks ago[3.13] gh-146244: Fix initconfig.c SET_ITEM macro leaks dict on expression failure...
Miss Islington (bot) [Wed, 25 Mar 2026 19:32:20 +0000 (20:32 +0100)] 
[3.13] gh-146244: Fix initconfig.c SET_ITEM macro leaks dict on expression failure (GH-146246) (GH-146433)

(cherry picked from commit 9343518c6f413b2231b17c56065e5cf823aa0d2a)

Co-authored-by: Wulian233 <1055917385@qq.com>
2 weeks ago[3.13] Fix unlikely potential reference leak in _locale._getdefaultlocale (GH-145250...
Miss Islington (bot) [Tue, 24 Mar 2026 02:18:19 +0000 (03:18 +0100)] 
[3.13] Fix unlikely potential reference leak in _locale._getdefaultlocale (GH-145250) (GH-145303)

It occurs in a code which perhaps never executed.
(cherry picked from commit 6ea84b2726bb6a1a8a6819d30c368ac34c50eabe)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.13] gh-74955: Document that __all__ must contain strings in normalization form...
Miss Islington (bot) [Tue, 24 Mar 2026 02:01:06 +0000 (03:01 +0100)] 
[3.13] gh-74955: Document that __all__ must contain strings in normalization form NFKC (GH-144504) (GH-144520)

(cherry picked from commit c81e1843d4bc0a51cf4f77d19b5ac4e49f714a0d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.13] gh-145305: Update ocert.org URLs in docs from http to https (GH-145304) (GH...
Miss Islington (bot) [Tue, 24 Mar 2026 01:51:43 +0000 (02:51 +0100)] 
[3.13] gh-145305: Update ocert.org URLs in docs from http to https (GH-145304) (GH-145323)

(cherry picked from commit 11eec7a492670fff67fc083036d595f8498217db)

Co-authored-by: indoor47 <indoor47@gmail.com>
Co-authored-by: Adam (indoor47) <adamai@agentmail.to>
2 weeks ago[3.13] gh-140196: Add constructor behavior changes in ast.rst for python 3.13 (GH...
Łukasz Langa [Tue, 24 Mar 2026 01:49:45 +0000 (02:49 +0100)] 
[3.13] gh-140196: Add constructor behavior changes in ast.rst for python 3.13 (GH-140243) (GH-146354)

(cherry picked from commit fae5761a762a587b48430cbcd6e1886034ae8130)

Co-authored-by: Parman Mohammadalizadeh <prmma23@gmail.com>
2 weeks ago[3.13] Bump pre-commit hooks (GH-144576) (GH-144593)
Hugo van Kemenade [Tue, 24 Mar 2026 01:49:26 +0000 (03:49 +0200)] 
[3.13] Bump pre-commit hooks (GH-144576) (GH-144593)

(cherry picked from commit e682141c495c2e52368c4341ae54eea041070356)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Xianpeng Shen <xianpeng.shen@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-129259: Fix AIX build failures caused by incorrect struct alignment (GH...
Matas Kaminskas [Tue, 24 Mar 2026 01:47:53 +0000 (03:47 +0200)] 
[3.13] gh-129259: Fix AIX build failures caused by incorrect struct alignment (GH-144917)

2 weeks ago[3.13] gh-144475: Fix reference management in partial_repr (GH-145362) (#145882)
Brij Kapadia [Tue, 24 Mar 2026 01:30:45 +0000 (21:30 -0400)] 
[3.13] gh-144475: Fix reference management in partial_repr (GH-145362) (#145882)

(cherry picked from commit 671a953dd65292a5b69ba7393666ddcac93dbc44)

2 weeks ago[3.13] gh-142183: Cache one datachunk per tstate to prevent alloc/dealloc thrashing...
T. Wouters [Tue, 24 Mar 2026 01:27:57 +0000 (02:27 +0100)] 
[3.13] gh-142183: Cache one datachunk per tstate to prevent alloc/dealloc thrashing (GH-145789) (#146123)

* gh-142183: Cache one datachunk per tstate to prevent alloc/dealloc thrashing (GH-145789) (#145828)

Cache one datachunk per tstate to prevent alloc/dealloc thrashing when repeatedly hitting the same call depth at exactly the wrong boundary.

Move new _ts member to the end to not mess up remote debuggers' ideas of the
struct's layout. (The struct is only created by the runtime, and the new
field only used by the runtime, so it should be safe.)

(cherry picked from commit 706fd4ec08acbf1b1def3630017ebe55d224adfa)
(cherry picked from commit 19cbcc0f85f30954293dbd92d718d5b81880b092)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
2 weeks ago[3.13] gh-146202: Create tmp_dir in regrtest worker (GH-146347) (#146350)
Miss Islington (bot) [Tue, 24 Mar 2026 00:10:25 +0000 (01:10 +0100)] 
[3.13] gh-146202: Create tmp_dir in regrtest worker (GH-146347) (#146350)

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>
2 weeks ago[3.13] gh-145264: Do not ignore excess Base64 data after the first padded quad (GH...
Miss Islington (bot) [Mon, 23 Mar 2026 23:52:20 +0000 (00:52 +0100)] 
[3.13] gh-145264: Do not ignore excess Base64 data after the first padded quad (GH-145267) (GH-146326) (GH-146348)

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)
(cherry picked from commit e31c55121620189a0d1a07b689762d8ca9c1b7fa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.13] GH-91636: Clear weakrefs created by finalizers. (GH-136401) (GH-144214)
Sergey Miryanov [Mon, 23 Mar 2026 23:50:41 +0000 (04:50 +0500)] 
[3.13] GH-91636: Clear weakrefs created by finalizers. (GH-136401) (GH-144214)

Weakrefs to unreachable garbage that are created during running of
finalizers need to be cleared.  This avoids exposing objects that
have `tp_clear` called on them to Python-level code.
(cherry picked from commit b6b99bf7f1edab77c485faf4e23da868f3a7b68c)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
2 weeks ago[3.13] gh-143930: Reject leading dashes in webbrowser URLs (GH-146215)
Miss Islington (bot) [Mon, 23 Mar 2026 23:17:50 +0000 (00:17 +0100)] 
[3.13] gh-143930: Reject leading dashes in webbrowser URLs (GH-146215)

(cherry picked from commit 82a24a4442312bdcfc4c799885e8b3e00990f02b)

Co-authored-by: Seth Michael Larson <seth@python.org>
2 weeks ago[3.13] docs: fix f-string in ExceptionGroup example (GH-146108) (GH-146127)
Miss Islington (bot) [Mon, 23 Mar 2026 23:08:07 +0000 (00:08 +0100)] 
[3.13] docs: fix f-string in ExceptionGroup example (GH-146108) (GH-146127)

(cherry picked from commit 2c6afb935ad588f32cb969345d0345e45d3a766e)

Co-authored-by: Bartosz Grabowski <58475557+bartosz-grabowski@users.noreply.github.com>
2 weeks ago[3.13] gh-136672: Docs: Move parts of Enum HOWTO to API Docs (GH-139176) (GH-144803)
Miss Islington (bot) [Mon, 23 Mar 2026 20:26:01 +0000 (21:26 +0100)] 
[3.13] gh-136672: Docs: Move parts of Enum HOWTO to API Docs (GH-139176) (GH-144803)

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>
2 weeks ago[3.13] gh-145144: Add more tests for UserList, UserDict, etc (GH-145145) (GH-146296)
Serhiy Storchaka [Sun, 22 Mar 2026 16:06:01 +0000 (18:06 +0200)] 
[3.13] gh-145144: Add more tests for UserList, UserDict, etc (GH-145145) (GH-146296)

(cherry picked from commit 161329cde2b1ce4e6a6fdd85c0da1d857aebfd2d)

2 weeks ago[3.13] gh-143959: Fix test_datetime if _datetime is unavailable (GH-145248) (GH-146289)
Miss Islington (bot) [Sun, 22 Mar 2026 14:39:08 +0000 (15:39 +0100)] 
[3.13] gh-143959: Fix test_datetime if _datetime is unavailable (GH-145248) (GH-146289)

(cherry picked from commit 97c725cd391ac63a934a6fe6f97602fe4c56f473)

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

(cherry picked from commit c30fae4bea9f9ba07833e97eb542754c26610765)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
2 weeks ago[3.13] gh-146056: Fix repr() for lists containing NULLs (GH-146129) (GH-146155) ...
Serhiy Storchaka [Sun, 22 Mar 2026 08:06:17 +0000 (10:06 +0200)] 
[3.13] gh-146056: Fix repr() for lists containing NULLs (GH-146129) (GH-146155) (GH-146271)

(cherry picked from commit 0f2246b1553f401da5ade47e0fd1c80ad7a8dfa5)
(cherry picked from commit 796513306fdc1184452ea644b485f83511f39528)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.13] Docs: replace all `datetime` imports with `import datetime as dt` (GH-145640...
Miss Islington (bot) [Sat, 21 Mar 2026 18:41:50 +0000 (19:41 +0100)] 
[3.13] Docs: replace all `datetime` imports with `import datetime as dt` (GH-145640) (#146259)

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>
2 weeks ago[3.13] gh-138234: clarify returncode behavior for subprocesses created with `shell...
Miss Islington (bot) [Sat, 21 Mar 2026 12:38:56 +0000 (13:38 +0100)] 
[3.13] gh-138234: clarify returncode behavior for subprocesses created with `shell=True` (GH-138536) (#146255)

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>
2 weeks ago[3.13] GH-100108: Add async generators best practices section (GH-141885) (#146253)
Miss Islington (bot) [Sat, 21 Mar 2026 12:06:05 +0000 (13:06 +0100)] 
[3.13] GH-100108: Add async generators best practices section (GH-141885) (#146253)

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>
2 weeks ago[3.13] gh-129849: Add tests for `Py_tp_bases` (GH-143208) (#146226)
AN Long [Sat, 21 Mar 2026 09:52:45 +0000 (17:52 +0800)] 
[3.13] gh-129849: Add tests for `Py_tp_bases` (GH-143208) (#146226)

(cherry picked from commit 6f8867a6765d3e6effdc09a22691830aa887c3d0)

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

Also fix a related issue in the pyatomic headers:

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

(cherry picked from commit 1eff27f2c0452b3114bcf139062c87c025842c3e)

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

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.13] gh-146092: Handle _PyFrame_GetFrameObject() failures properly (GH-146124)...
Miss Islington (bot) [Wed, 18 Mar 2026 20:23:26 +0000 (21:23 +0100)] 
[3.13] gh-146092: Handle _PyFrame_GetFrameObject() failures properly (GH-146124) (GH-146132) (#146138)

[3.14] gh-146092: Handle _PyFrame_GetFrameObject() failures properly (GH-146124) (GH-146132)

gh-146092: Handle _PyFrame_GetFrameObject() failures properly (GH-146124)

* Fix _PyFrame_GetLocals() and _PyFrame_GetLocals() error handling.
* _PyEval_ExceptionGroupMatch() now fails on _PyFrame_GetLocals()
  error.
(cherry picked from commit 8eeb800faf5562e6ce3805416f656ab09243c9a6)

(cherry picked from commit e1e4852133ea548479bc9b975420a32331df7cee)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 weeks ago[3.13] gh-146093: Fix csv _set_str(): check if PyUnicode_DecodeASCII() failed (GH...
Miss Islington (bot) [Wed, 18 Mar 2026 17:45:47 +0000 (18:45 +0100)] 
[3.13] gh-146093: Fix csv _set_str(): check if PyUnicode_DecodeASCII() failed (GH-146113) (#146131)

gh-146093: Fix csv _set_str(): check if PyUnicode_DecodeASCII() failed (GH-146113)

The function can fail on a memory allocation failure.

Bug reported by devdanzin.
(cherry picked from commit 724c7c8146f44a7c737ec4588a1ee4b9db994f6f)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 weeks ago[3.13] gh-146076: Fix crash when a `ZoneInfo` subclass is missing a `_weak_cache...
Miss Islington (bot) [Wed, 18 Mar 2026 15:20:45 +0000 (16:20 +0100)] 
[3.13] gh-146076: Fix crash when a `ZoneInfo` subclass is missing a `_weak_cache` (GH-146082) (GH-146115)

(cherry picked from commit 3b06d68d8a3cc1f37359af1d7ebb3d09e1222296)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 weeks ago[3.13] gh-146054: Limit the growth of `encodings.search_function` cache (GH-146055...
Miss Islington (bot) [Wed, 18 Mar 2026 12:46:50 +0000 (13:46 +0100)] 
[3.13] gh-146054: Limit the growth of `encodings.search_function` cache (GH-146055) (GH-146068)

(cherry picked from commit 9d7621b75bc4935e14d4f12dffb3cb1d89ea1bc6)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 weeks ago[3.13] gh-141707: Skip TarInfo DIRTYPE normalization during GNU long name handling...
Miss Islington (bot) [Tue, 17 Mar 2026 09:51:43 +0000 (10:51 +0100)] 
[3.13] gh-141707: Skip TarInfo DIRTYPE normalization during GNU long name handling (GH-145818)

(cherry picked from commit 42d754e34c06e57ad6b8e7f92f32af679912d8ab)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Eashwar Ranganathan <eashwar@eashwar.com>
3 weeks ago[3.13] Docs: a brief note in the sets tutorial about order (GH-145984) (#146050)
Miss Islington (bot) [Tue, 17 Mar 2026 09:18:16 +0000 (10:18 +0100)] 
[3.13] Docs: a brief note in the sets tutorial about order (GH-145984) (#146050)

Docs: a brief note in the sets tutorial about order (GH-145984)
(cherry picked from commit 4f5e79805ebcaa0d3ba1677694d4120a9e8f4513)

Docs: a brief note in the sets tut about order

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
3 weeks ago[3.13] Docs: remove unmatched parenthesis for `asyncio.TaskGroup` note (GH-146035...
Miss Islington (bot) [Mon, 16 Mar 2026 20:59:03 +0000 (21:59 +0100)] 
[3.13] Docs: remove unmatched parenthesis for `asyncio.TaskGroup` note (GH-146035) (#146038)

Docs: remove unmatched parenthesis for `asyncio.TaskGroup` note (GH-146035)
(cherry picked from commit 4e96282ee42ab51cf325b52a0173ddddbe66c05c)

Co-authored-by: trag1c <dev@jakubr.me>
3 weeks ago[3.13] gh-135329: Remove flaky test_repl_eio test (gh-145932) (#146029)
Sam Gross [Mon, 16 Mar 2026 16:11:56 +0000 (12:11 -0400)] 
[3.13] gh-135329: Remove flaky test_repl_eio test (gh-145932) (#146029)

The test doesn't actually test any pyrepl code (it runs Python with -S)
and has a race condition that causes intermittent timeouts on CI.

(cherry picked from commit e18abc6a1f1b60434b529d4c1ff4855acde0fd13)

3 weeks ago[3.13] gh-145599, CVE 2026-3644: Reject control characters in `http.cookies.Morsel...
Miss Islington (bot) [Mon, 16 Mar 2026 14:05:13 +0000 (15:05 +0100)] 
[3.13] gh-145599, CVE 2026-3644: Reject control characters in `http.cookies.Morsel.update()` (GH-145600) (#146024)

gh-145599, CVE 2026-3644: Reject control characters in `http.cookies.Morsel.update()` (GH-145600)

Reject control characters in `http.cookies.Morsel.update()` and `http.cookies.BaseCookie.js_output`.
(cherry picked from commit 57e88c1cf95e1481b94ae57abe1010469d47a6b4)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <victor.stinner@gmail.com>
3 weeks ago[3.13] gh-145986: Avoid unbound C recursion in `conv_content_model` in `pyexpat.c...
Miss Islington (bot) [Mon, 16 Mar 2026 09:09:27 +0000 (10:09 +0100)] 
[3.13] gh-145986: Avoid unbound C recursion in `conv_content_model` in `pyexpat.c` (CVE 2026-4224) (GH-145987) (#145996)

* gh-145986: Avoid unbound C recursion in `conv_content_model` in `pyexpat.c` (CVE 2026-4224) (GH-145987)

Fix C stack overflow (CVE-2026-4224) when an Expat parser
with a registered `ElementDeclHandler` parses inline DTD
containing deeply nested content model.

---------
(cherry picked from commit eb0e8be3a7e11b87d198a2c3af1ed0eccf532768)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Remvoe `skip_if_unlimited_stack_size` decorator

* Remove more decorators not on this branch

---------

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
3 weeks ago[3.13] gh-145376: Fix GC tracking in `structseq.__replace__` (GH-145820) (#145924)
Miss Islington (bot) [Mon, 16 Mar 2026 09:08:24 +0000 (10:08 +0100)] 
[3.13] gh-145376: Fix GC tracking in `structseq.__replace__` (GH-145820) (#145924)

gh-145376: Fix GC tracking in `structseq.__replace__` (GH-145820)
(cherry picked from commit 00a25859a94b6bf34e58a5176e2befab7e273d20)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
3 weeks ago[3.13] gh-140814: Fix freeze_support() setting start method as side effect (GH-144608...
Miss Islington (bot) [Mon, 16 Mar 2026 06:13:21 +0000 (07:13 +0100)] 
[3.13] gh-140814: Fix freeze_support() setting start method as side effect (GH-144608) (#146009)

gh-140814: Fix freeze_support() setting start method as side effect (GH-144608)

freeze_support() called get_start_method() without allow_none=True,
which locked in the default start method context. This caused a
subsequent set_start_method() call to raise "context has already been
set". Use allow_none=True and accept None as a matching value, since
spawn.freeze_support() independently detects spawned child processes.

Test that freeze_support() does not lock in the default start method,
which would prevent a subsequent set_start_method() call.
(cherry picked from commit ee5318025b0f9f4d30d9358627df68181e0d223f)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
3 weeks ago[3.13] gh-145990: sort --help-env first section by name (others and xoptions already...
Gregory P. Smith [Sun, 15 Mar 2026 22:35:53 +0000 (15:35 -0700)] 
[3.13] gh-145990: sort --help-env first section by name (others and xoptions already sorted) (GH-146003)

* sort `--help-env` sections by environment variable name
  Only needed in the first section, in 3.13 the second section was already sorted.
* regression test for --help-env & --help-xoptions sort order

Manual backport of GH-145997