]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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)

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

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

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

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

8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
2 months 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)

2 months 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>
2 months 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>
2 months 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>
2 months 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>
2 months 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

2 months ago[3.13] gh-69223: Document that add_argument() returns an Action object (GH-145538...
Miss Islington (bot) [Sun, 15 Mar 2026 14:08:23 +0000 (15:08 +0100)] 
[3.13] gh-69223: Document that add_argument() returns an Action object (GH-145538) (#145596)

Co-authored-by: Andrew Barnes <bortstheboat@gmail.com>
2 months ago[3.13] Bump mypy to 1.19.1 (GH-145956) (#145972)
Miss Islington (bot) [Sun, 15 Mar 2026 10:11:29 +0000 (11:11 +0100)] 
[3.13] Bump mypy to 1.19.1 (GH-145956) (#145972)

Bump mypy to 1.19.1 (GH-145956)
(cherry picked from commit e167e06f8c6b24f7b54e8d6b87c1cac1667dd2cf)

Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
2 months ago[3.13] gh-141004: Document `PyDTrace*` (GH-141856) (GH-145958)
Miss Islington (bot) [Sun, 15 Mar 2026 03:05:38 +0000 (04:05 +0100)] 
[3.13] gh-141004: Document `PyDTrace*` (GH-141856) (GH-145958)

gh-141004: Document `PyDTrace*` (GH-141856)
(cherry picked from commit 1dfe99ae3bed6cac01732b47bf7fa637abadf51b)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 months ago[3.13] gh-143636: fix a crash when calling ``__replace__`` on invalid `SimpleNamespac...
Bénédikt Tran [Sat, 14 Mar 2026 11:00:56 +0000 (12:00 +0100)] 
[3.13] gh-143636: fix a crash when calling ``__replace__`` on invalid `SimpleNamespace` instances (GH-143655) (#145940)

[3.13] gh-143636: fix a crash when calling ``__replace__`` on invalid `SimpleNamespace` instances (GH-143655)

(cherry picked from commit 97968564b61965f2a65a9be8af731cee6913eb7a)

2 months ago[3.13] Docs: fix missing period in `Doc/library/stdtypes.rst` (GH-145935) (#145937)
Miss Islington (bot) [Sat, 14 Mar 2026 09:25:21 +0000 (10:25 +0100)] 
[3.13] Docs: fix missing period in `Doc/library/stdtypes.rst` (GH-145935) (#145937)

Docs: fix missing period in `Doc/library/stdtypes.rst` (GH-145935)
(cherry picked from commit 51e8acf8de1aa1f1751dd5bb84d44b8d42143b9c)

Co-authored-by: Connor Gibson <connor@nextdoortech.net>
2 months ago[3.13] gh-145783: Propagate errors raised in `NEW_TYPE_COMMENT` (GH-145784) (#145927)
Stan Ulbrych [Fri, 13 Mar 2026 18:07:45 +0000 (18:07 +0000)] 
[3.13] gh-145783: Propagate errors raised in `NEW_TYPE_COMMENT`  (GH-145784) (#145927)

2 months ago[3.13] gh-145801: Use gcc -fprofile-update=atomic for PGO builds (#145802) (#145893)
Victor Stinner [Thu, 12 Mar 2026 23:17:00 +0000 (00:17 +0100)] 
[3.13] gh-145801: Use gcc -fprofile-update=atomic for PGO builds (#145802) (#145893)

gh-145801: Use gcc -fprofile-update=atomic for PGO builds (#145802)

When Python build is optimized with GCC using PGO, use
-fprofile-update=atomic option to use atomic operations when updating
profile information. This option reduces the risk of gcov Data Files
(.gcda) corruption which can cause random GCC crashes.

(cherry picked from commit 08a018ebe0d673e9c352f790d2e4604d69604188)

2 months ago[3.13] gh-140131: Fix REPL cursor position on Windows when module completion suggesti...
Łukasz Langa [Thu, 12 Mar 2026 17:15:17 +0000 (18:15 +0100)] 
[3.13] gh-140131: Fix REPL cursor position on Windows when module completion suggestion line hits console width (GH-140333) (GH-145872)

(cherry picked from commit e13f6dccd7a2f8df543a18c4a3ad92610dc087cb)

Co-authored-by: Tan Long <tanloong@foxmail.com>
2 months ago[3.13] gh-140594: Fix an out of bounds read when feeding NUL byte to PyOS_StdioReadli...
Miss Islington (bot) [Thu, 12 Mar 2026 11:21:43 +0000 (12:21 +0100)] 
[3.13] gh-140594: Fix an out of bounds read when feeding NUL byte to PyOS_StdioReadline() (GH-140910) (#145853)

gh-140594: Fix an out of bounds read when feeding NUL byte to PyOS_StdioReadline() (GH-140910)
(cherry picked from commit 86a0756234df7ce42fa4731c91067cb7f2e244d5)

Co-authored-by: Shamil <ashm.tech@proton.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 months ago[3.13] gh-145492: Fix defaultdict __repr__ infinite recursion (GH-145659) (GH-145746)
Miss Islington (bot) [Thu, 12 Mar 2026 09:45:43 +0000 (10:45 +0100)] 
[3.13] gh-145492: Fix defaultdict __repr__ infinite recursion (GH-145659) (GH-145746)

(cherry picked from commit 2d35f9bc1cf61b27639ed992dfbf363ab436fd8b)

Includes test fix-up from GH-145788
(cherry picked from commit aa4240ebea1aacc907b1efa58e7f547d90cff3b1)

Co-authored-by: Thomas Kowalski <thom.kowa@gmail.com>
Co-authored-by: Matt Van Horn <mvanhorn@users.noreply.github.com>
2 months ago[3.13] gh-139933: correctly suggest attributes for classes with a custom `__dir__...
Łukasz Langa [Wed, 11 Mar 2026 21:02:01 +0000 (22:02 +0100)] 
[3.13] gh-139933: correctly suggest attributes for classes with a custom `__dir__` (GH-139950) (GH-145827) (GH-145833)

(cherry picked from commit 4722202a1a81974089801e6173d269836b6a074f)
(cherry picked from commit 0a80015ac26d60bff54f57ce9f73ffc5386249b1)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2 months ago[3.13] gh-99875: Document rounding mode for old-style formatting (GH-126382) (#145812)
Miss Islington (bot) [Wed, 11 Mar 2026 13:31:51 +0000 (14:31 +0100)] 
[3.13] gh-99875: Document rounding mode for old-style formatting (GH-126382) (#145812)

gh-99875: Document rounding mode for old-style formatting (GH-126382)
(cherry picked from commit ce1abaf9b83f8535749c6d3d0a0fabf15d87079f)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2 months ago[3.13] Warn that overriding `__builtins__` for `eval` is not a security mechanism...
Miss Islington (bot) [Wed, 11 Mar 2026 12:43:12 +0000 (13:43 +0100)] 
[3.13] Warn that overriding `__builtins__` for `eval` is not a security mechanism (GH-145773) (GH-145807)

(cherry picked from commit eb9ae65e5b1cdfcf4f60d36c0353c857bc27b92f)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2 months ago[3.13] gh-101100: Fix sphinx reference warnings around I/O (GH-139592) (#145795)
Miss Islington (bot) [Wed, 11 Mar 2026 08:08:51 +0000 (09:08 +0100)] 
[3.13] gh-101100: Fix sphinx reference warnings around I/O (GH-139592) (#145795)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
2 months ago[3.13] gh-145607: Ensure BIG_DATA has two compressed blocks in test_bz2 (GH-145730...
Miss Islington (bot) [Wed, 11 Mar 2026 04:08:06 +0000 (05:08 +0100)] 
[3.13] gh-145607: Ensure BIG_DATA has two compressed blocks in test_bz2 (GH-145730) (#145734)

gh-145607: Ensure BIG_DATA has two compressed blocks in test_bz2 (GH-145730)
(cherry picked from commit 19676e5fc28bdee8325a062a31ddeee60960cf75)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
2 months ago[3.13] gh-142763: Fix race in ZoneInfo cache eviction (gh-144978) (#145782)
Miss Islington (bot) [Tue, 10 Mar 2026 19:12:34 +0000 (20:12 +0100)] 
[3.13] gh-142763: Fix race in ZoneInfo cache eviction (gh-144978) (#145782)

The cache may be cleared between the evaluation of the if statement and the
call to popitem.

(cherry picked from commit 665c1db94f46f8e1a18a8c2f89adb3bc72cb83dc)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2 months ago[3.13] Fix integer overflow for formats "s" and "p" in the struct module (GH-145750...
Stan Ulbrych [Tue, 10 Mar 2026 17:44:10 +0000 (17:44 +0000)] 
[3.13] Fix integer overflow for formats "s" and "p" in the struct module (GH-145750) (GH-145777)

(cherry picked from commit 4d0dce0c8ddc4d0321bd590a1a33990edc2e1b08)

2 months ago[3.13] gh-144173: fix flaky test_complex.test_truediv() (GH-144355) (#145767)
Miss Islington (bot) [Tue, 10 Mar 2026 17:05:07 +0000 (18:05 +0100)] 
[3.13] gh-144173: fix flaky test_complex.test_truediv() (GH-144355) (#145767)

gh-144173: fix flaky test_complex.test_truediv() (GH-144355)

Previously, component-wise relative error bound was tested.  However,
such bound can't exist already for complex multiplication as one can be
used to perform subtraction of floating-point numbers, e.g. x and y for
z0=1+1j and z1=x+yj.

```pycon
>>> x, y = 1e-9+1j, 1+1j
>>> a = x*y*y.conjugate()/2;a
(1.0000000272292198e-09+1j)
>>> b = x*(y*y.conjugate()/2);b
(1e-09+1j)
>>> b == x
True
>>> (a.real-b.real)/math.ulp(b.real)
131672427.0
```
(cherry picked from commit c4333a12708a917d1cfb6418c04be45793ecc392)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2 months ago[3.13] gh-145743: Fix inconsistency after calling Struct.__init__() with invalid...
Miss Islington (bot) [Tue, 10 Mar 2026 16:52:27 +0000 (17:52 +0100)] 
[3.13] gh-145743: Fix inconsistency after calling Struct.__init__() with invalid format (GH-145744) (GH-145764)

Only set the format attribute after successful (re-)initialization.
(cherry picked from commit 3f33bf83e8496737b86333bc9ec55dc3ccb3faca)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 months ago[3.13] gh-145548: Don't use VMADDR_CID_LOCAL from `socket` (GH-145735)
Petr Viktorin [Tue, 10 Mar 2026 15:01:52 +0000 (16:01 +0100)] 
[3.13] gh-145548: Don't use VMADDR_CID_LOCAL from `socket` (GH-145735)

VMADDR_CID_LOCAL was added to `socekt` in 3.14. The test needs a
local constant in setUp(), as in clientSetUp().

2 months ago[3.13] gh-106318: Add examples for str.isspace() docs (GH-145399) (#145753)
Miss Islington (bot) [Tue, 10 Mar 2026 14:26:18 +0000 (15:26 +0100)] 
[3.13] gh-106318: Add examples for str.isspace() docs (GH-145399) (#145753)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2 months ago[3.13] Docs: Update programming FAQ (GH-144573) (#145696)
Miss Islington (bot) [Tue, 10 Mar 2026 14:17:18 +0000 (15:17 +0100)] 
[3.13] Docs: Update programming FAQ (GH-144573) (#145696)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Savannah Ostrowski <savannah@python.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@ulbrych.org>
2 months ago[3.13] gh-145301: Fix double-free in hashlib initialization (GH-145321) (GH-145532)
krylosov-aa [Tue, 10 Mar 2026 13:59:37 +0000 (16:59 +0300)] 
[3.13] gh-145301: Fix double-free in hashlib initialization (GH-145321) (GH-145532)

(cherry picked from commit 6acaf659ef0fdee131bc02f0b58685da039b5855)

2 months ago[3.13] gh-142651: use `NonCallableMock._lock` for thread safety of `call_count` ...
Miss Islington (bot) [Tue, 10 Mar 2026 12:34:37 +0000 (13:34 +0100)] 
[3.13] gh-142651: use `NonCallableMock._lock` for thread safety of `call_count` (GH-142922) (#145740)

gh-142651: use `NonCallableMock._lock` for thread safety of `call_count` (GH-142922)
(cherry picked from commit 728e4a075e3dae7e04edf90ad137a35073deb141)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2 months ago[3.13] gh-140715: Improve class reference links on datetime.rst (GH-123980) (#145389)
Hugo van Kemenade [Tue, 10 Mar 2026 11:38:34 +0000 (13:38 +0200)] 
[3.13] gh-140715: Improve class reference links on datetime.rst (GH-123980) (#145389)

Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 months ago[3.13] Document that PyType_GetModule returns a borrowed ref (GH-145612) (GH-145732)
Miss Islington (bot) [Tue, 10 Mar 2026 09:32:06 +0000 (10:32 +0100)] 
[3.13] Document that PyType_GetModule returns a borrowed ref (GH-145612) (GH-145732)

(cherry picked from commit 44855458a423569eaea3df53fd5a0c0032da932d via 30bcdcd379445b942e1278244bbce805dc32b5a2)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 months ago[3.13] gh-145541: Fix `InvalidStateError` in `BaseSubprocessTransport._call_connectio...
Miss Islington (bot) [Tue, 10 Mar 2026 04:41:21 +0000 (05:41 +0100)] 
[3.13] gh-145541: Fix `InvalidStateError` in `BaseSubprocessTransport._call_connection_lost()` (GH-145554) (#145677)

gh-145541: Fix `InvalidStateError` in `BaseSubprocessTransport._call_connection_lost()` (GH-145554)
(cherry picked from commit 1564e231aae7afad5b9b19a277d1efff2b840ad2)

Co-authored-by: Daan De Meyer <daan.j.demeyer@gmail.com>
2 months ago[3.13] gh-145701: Fix `__classdict__` & `__conditional_annotations__` in class-scope...
Miss Islington (bot) [Mon, 9 Mar 2026 21:44:31 +0000 (22:44 +0100)] 
[3.13] gh-145701: Fix `__classdict__` & `__conditional_annotations__` in class-scope inlined comprehensions (GH-145702) (#145711)

* gh-145701: Fix `__classdict__` & `__conditional_annotations__` in class-scope inlined comprehensions (GH-145702)
(cherry picked from commit 63eaaf95999c530cbd75b3addc3e660499d3adbe)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
* Add `:oss-fuzz:` macro support

Backports part of https://github.com/python/cpython/commit/255e79fa955ac5ffef9eb27087e8b1373e98e3bd.

---------

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 months ago[3.13] Remove the `distutils-sig@python.org` email in 'Installing Python Modules...
Miss Islington (bot) [Mon, 9 Mar 2026 19:49:51 +0000 (20:49 +0100)] 
[3.13] Remove the `distutils-sig@python.org` email in 'Installing Python Modules' (GH-145613) (#145709)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 months ago[3.13] gh-141617: clarify `concurrent.futures.ThreadPoolExecutor` deadlock example...
Miss Islington (bot) [Mon, 9 Mar 2026 16:43:01 +0000 (17:43 +0100)] 
[3.13] gh-141617: clarify `concurrent.futures.ThreadPoolExecutor` deadlock example (GH-141620) (#145687)

gh-141617: clarify `concurrent.futures.ThreadPoolExecutor` deadlock example (GH-141620)

---------
(cherry picked from commit 171133aa84cd2fa8738bdbb0c76435645810e8d3)

Co-authored-by: Yashraj <yashrajpala8@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2 months ago[3.13] gh-145623: Fix crashes on uninitialized struct.Struct objects (gh-145624)...
Ramin Farajpour Cami [Mon, 9 Mar 2026 16:41:45 +0000 (20:11 +0330)] 
[3.13] gh-145623: Fix crashes on uninitialized struct.Struct objects (gh-145624) (GH-145631)

2 months ago[3.13] gh-145642: Docs: Avoid warning for invalid escape sequence in tutorial (GH...
Miss Islington (bot) [Sun, 8 Mar 2026 23:04:57 +0000 (00:04 +0100)] 
[3.13] gh-145642: Docs: Avoid warning for invalid escape sequence in tutorial (GH-145643) (#145646)

gh-145642: Docs: Avoid warning for invalid escape sequence in tutorial (GH-145643)

---------
(cherry picked from commit 5a15a52dd1dee37af4f2b3a6b15a9f5735f75c6e)

Co-authored-by: James <snoopjedi@gmail.com>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2 months ago[3.13] gh-145376: Fix refleak in `queuemodule.c` out-of-memory path (GH-145543) ...
Miss Islington (bot) [Sun, 8 Mar 2026 08:02:39 +0000 (09:02 +0100)] 
[3.13] gh-145376: Fix refleak in `queuemodule.c` out-of-memory path (GH-145543) (#145621)

gh-145376: Fix refleak in `queuemodule.c` out-of-memory path (GH-145543)
(cherry picked from commit 0aeaaafac476119f242fe717ce60d2070172127b)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
2 months ago[3.13] Remove typo in ``functools.lru_cache`` docs (GH-140278) (#145627)
Miss Islington (bot) [Sat, 7 Mar 2026 17:15:16 +0000 (18:15 +0100)] 
[3.13] Remove typo in ``functools.lru_cache`` docs (GH-140278) (#145627)

Co-authored-by: Brandon Hubacher <brandon.hubacher@gmail.com>
2 months ago[3.13] gh-145376: Fix crashes in md5module.c (GH-145422) (#145611)
Pieter Eendebak [Fri, 6 Mar 2026 22:24:20 +0000 (23:24 +0100)] 
[3.13] gh-145376: Fix crashes in md5module.c (GH-145422) (#145611)

* gh-145376: Fix crashes in md5module.c

Fix a possible NULL pointer dereference in `md5module.c`.
This can only occur in error paths taken when the interpreter fails to allocate memory.

(cherry-picked from c1d77683213c400fca144692654845e6f5418981)

* 📜🤖 Added by blurb_it.

* Update Modules/md5module.c

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2 months ago[3.13] gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (GH-145589) (#145594)
Miss Islington (bot) [Fri, 6 Mar 2026 20:34:45 +0000 (21:34 +0100)] 
[3.13] gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (GH-145589) (#145594)

gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (GH-145589)

Prefer VMADDR_CID_LOCAL instead of VMADDR_CID_ANY for bind() in the
server. Skip the test if bind() fails with EADDRNOTAVAIL.

Log vsock CID in test.pythoninfo.
(cherry picked from commit 6c8c72f7feb4207c62ac857443943e61977d6a94)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 months ago[3.13] gh-144370: Disallow usage of control characters in status in wsgiref.handlers...
Miss Islington (bot) [Fri, 6 Mar 2026 12:45:34 +0000 (13:45 +0100)] 
[3.13] gh-144370: Disallow usage of control characters in status in wsgiref.handlers for security (GH-144371) (#145585)

gh-144370: Disallow usage of control characters in status in wsgiref.handlers for security (GH-144371)

Disallow usage of control characters in status in wsgiref.handlers
to prevent HTTP header injections.
(cherry picked from commit d931725bc850cd096f6703bc285e885f1e015f05)

Co-authored-by: Benedikt Johannes <benedikt.johannes.hofer@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 months ago[3.13] Docs: `import datetime as dt` in examples (GH-145315) (#145584)
Hugo van Kemenade [Fri, 6 Mar 2026 11:49:53 +0000 (13:49 +0200)] 
[3.13] Docs: `import datetime as dt` in examples (GH-145315) (#145584)

2 months ago[3.13] gh-122941: Fix test_launcher sporadic failures via py.ini isolation (GH-145090)
Miss Islington (bot) [Fri, 6 Mar 2026 10:22:19 +0000 (11:22 +0100)] 
[3.13] gh-122941: Fix test_launcher sporadic failures via py.ini isolation (GH-145090)

Adds _PYLAUNCHER_INIDIR as a private variable since the launcher is deprecated and not getting new features.
(cherry picked from commit 6cdbd7bc5d4ee63459d03a944477ea8671a05198)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
2 months ago[3.13] doc: Clarify logger creation example in logging HOWTO (GH-145540) (GH-145561)
Miss Islington (bot) [Fri, 6 Mar 2026 08:51:02 +0000 (09:51 +0100)] 
[3.13] doc: Clarify logger creation example in logging HOWTO (GH-145540) (GH-145561)

(cherry picked from commit e0945443a0abdee56a51a5cb82a31edba5f1adab)

Co-authored-by: Yash Kaushik <yash005kaushik@gmail.com>
2 months ago[3.13] Docs: use a Sphinx extension to eliminate excessive links (GH-145130) (#145574)
Miss Islington (bot) [Fri, 6 Mar 2026 06:50:06 +0000 (07:50 +0100)] 
[3.13] Docs: use a Sphinx extension to eliminate excessive links (GH-145130) (#145574)

Docs: use a Sphinx extension to eliminate excessive links (GH-145130)
(cherry picked from commit 15f6479c415cc6cd219cd25c1d94bab17d720cbc)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2 months ago[3.13] gh-145417: Do not preserve SELinux context when copying venv scripts (GH-14545...
Miss Islington (bot) [Thu, 5 Mar 2026 17:44:29 +0000 (18:44 +0100)] 
[3.13] gh-145417: Do not preserve SELinux context when copying venv scripts (GH-145454) (#145550)

gh-145417: Do not preserve SELinux context when copying venv scripts (GH-145454)
(cherry picked from commit dbe0007ab2ff679c85d88e62fb875437b2dc2522)

Co-authored-by: Shrey Naithani <shrey.naithani@shelllite.tech>
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 months ago[3.13] gh-143304: Fix ctypes.CDLL to honor handle parameter on POSIX systems (GH...
Miss Islington (bot) [Thu, 5 Mar 2026 14:34:49 +0000 (15:34 +0100)] 
[3.13] gh-143304: Fix ctypes.CDLL to honor handle parameter on POSIX systems (GH-143318) (GH-145173)

The handle parameter was being ignored in the POSIX implementation
of CDLL._load_library(), causing it to always call _dlopen() even
when a valid handle was provided. This was a regression introduced
in recent refactoring.
(cherry picked from commit 27ded243485670fa836c9bb421e37a6ef16eca8e)

Co-authored-by: Arjit Singh Grover <143692910+Koolvansh07@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 months ago[3.13] gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoader uses io.open_c...
Miss Islington (bot) [Wed, 4 Mar 2026 20:17:04 +0000 (21:17 +0100)] 
[3.13] gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoader uses io.open_code (GH-145507)

(cherry picked from commit a51b1b512de1d56b3714b65628a2eae2b07e535e)

Co-authored-by: Steve Dower <steve.dower@python.org>
2 months ago[3.13] GH-144739: Skip test_pyexpat.MemoryProtectionTest based on expat compile-time...
Miss Islington (bot) [Wed, 4 Mar 2026 19:47:34 +0000 (20:47 +0100)] 
[3.13] GH-144739: Skip test_pyexpat.MemoryProtectionTest based on expat compile-time version, not runtime (GH-144740) (GH-145494) (#145510)

[3.14] GH-144739: Skip test_pyexpat.MemoryProtectionTest based on expat compile-time version, not runtime (GH-144740) (GH-145494)

GH-144739: Skip test_pyexpat.MemoryProtectionTest based on expat compile-time version, not runtime (GH-144740)

(cherry picked from commit 45e9343d7eed1d9e784e731cc9af853fa8649e59)
(cherry picked from commit bcc2dd8d30eb20995186c756bdcd10a56a1bad1c)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
2 months ago[3.13] gh-145455: Show output of blurb & sphinx-build version commands (GH-145457...
Miss Islington (bot) [Tue, 3 Mar 2026 13:25:13 +0000 (14:25 +0100)] 
[3.13] gh-145455: Show output of blurb & sphinx-build version commands (GH-145457) (GH-145462)

In gh-145455, an outdated dependency caused an import error that was not
printed out (`2>&1`); the message instead said that the tools are missing.

Don't redirect stderr, to show warnings and failures.

Also, switch `blurb` to output a version on a single line (`--version` rather
than `help`), and, and don't redirect stdout either.
This results in two version info lines being printed out. These get drowned
in typical Sphinx output, and can be helpful when debugging.
(cherry picked from commit f1de65b3669226d563802a32b78a2294e971151a)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 months ago[3.13] GH-145450: Document missing `wave.Wave_write` getter methods (GH-145451) ...
Miss Islington (bot) [Tue, 3 Mar 2026 12:51:20 +0000 (13:51 +0100)] 
[3.13] GH-145450: Document missing `wave.Wave_write` getter methods (GH-145451) (GH-145467)

(cherry picked from commit db41717cd50af6db7d496b0aa282b1f3370327c6)

Co-authored-by: Michiel W. Beijen <mb@x14.nl>
2 months ago[3.13] gh-106318: Fix incorrectly rendered code block in `str.isalnum()` docs (GH...
Miss Islington (bot) [Tue, 3 Mar 2026 12:13:02 +0000 (13:13 +0100)] 
[3.13] gh-106318: Fix incorrectly rendered code block in `str.isalnum()` docs (GH-144718) (GH-144729)

(cherry picked from commit f912c835b94d75ae4823153c160f0cc674a243bb)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2 months ago[3.13] gh-142781: Fix type confusion in zoneinfo weak cache (GH-142925) (GH-145418)
Miss Islington (bot) [Tue, 3 Mar 2026 11:47:57 +0000 (12:47 +0100)] 
[3.13] gh-142781: Fix type confusion in zoneinfo weak cache (GH-142925) (GH-145418)

(cherry picked from commit b611db491d16ebbb4c833e9a184bb987e41f9fbe)

Co-authored-by: zhong <60600792+superboy-zjc@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 months ago[3.13] gh-144872: fix heap buffer overflow `_PyTokenizer_ensure_utf8` (GH-144807...
Stan Ulbrych [Mon, 2 Mar 2026 23:00:59 +0000 (23:00 +0000)] 
[3.13] gh-144872: fix heap buffer overflow `_PyTokenizer_ensure_utf8` (GH-144807) (#145441)

(cherry picked from commit 3fc945df22a169e039c3f21b44c0d08390a00c0c)

Co-authored-by: AdamKorcz <44787359+AdamKorcz@users.noreply.github.com>
2 months ago[3.13] gh-143880: Fix data race in `functools.partial` in free threading build (GH...
Miss Islington (bot) [Mon, 2 Mar 2026 21:31:46 +0000 (22:31 +0100)] 
[3.13] gh-143880: Fix data race in `functools.partial` in free threading build (GH-143882) (#145435)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2 months ago[3.13] Hide "object" prefix on dunders in contextlib docs & selectivly link some...
Miss Islington (bot) [Mon, 2 Mar 2026 21:19:05 +0000 (22:19 +0100)] 
[3.13] Hide "object" prefix on dunders in contextlib docs & selectivly link some more (GH-145436) (#145444)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 months ago[3.13] gh-145008: Maintain stack consistency in CALL_BOUND_METHOD_EXACT_ARGS (GH...
Ken Jin [Mon, 2 Mar 2026 20:09:02 +0000 (04:09 +0800)] 
[3.13] gh-145008: Maintain stack consistency in CALL_BOUND_METHOD_EXACT_ARGS (GH-145015)

2 months ago[3.13] gh-130327: Always traverse managed dictionaries, even when inline values are...
Sam Gross [Mon, 2 Mar 2026 20:03:08 +0000 (15:03 -0500)] 
[3.13] gh-130327: Always traverse managed dictionaries, even when inline values are available (GH-130469) (#145440)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 months ago[3.13] gh-130555: Fix use-after-free in dict.clear() with embedded values (gh-145268...
Sam Gross [Mon, 2 Mar 2026 18:59:52 +0000 (13:59 -0500)] 
[3.13] gh-130555: Fix use-after-free in dict.clear() with embedded values (gh-145268) (#145430)

2 months ago[3.13] gh-145335: Fix crash when passing -1 as fd in os.pathconf (GH-145390) (#145432)
Miss Islington (bot) [Mon, 2 Mar 2026 18:32:29 +0000 (19:32 +0100)] 
[3.13] gh-145335: Fix crash when passing -1 as fd in os.pathconf (GH-145390) (#145432)

gh-145335: Fix crash when passing -1 as fd in os.pathconf (GH-145390)
(cherry picked from commit 5c3a47b94a39f87c36b1f36704d80775802ad034)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2 months ago[3.13] gh-145349: Do not install ccache (#145350) (#145424)
Thomas Kowalski [Mon, 2 Mar 2026 18:16:33 +0000 (19:16 +0100)] 
[3.13] gh-145349: Do not install ccache (#145350) (#145424)