]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Sun, 22 Feb 2026 08:28:24 +0000 (09:28 +0100)]
[3.13] gh-145092: Fix compiler warning for memchr() and wcschr() returning const pointer (GH-145093) (GH-145101)
(cherry picked from commit
faea32b729e132172d39d54517822e772ad0017a )
Co-authored-by: Rudi Heitbaum <rudi@heitbaum.com>
Bénédikt Tran [Sat, 21 Feb 2026 15:05:57 +0000 (16:05 +0100)]
[3.13] gh-143698: correctly check `scheduler` and `setpgroup` values for `os.posix_spawn[p]` (GH-143699) (#145074)
* [3.13] gh-143698: correctly check `scheduler` and `setpgroup` values for `os.posix_spawn[p]` (GH-143699)
Fix an issue where passing invalid arguments to `os.posix_spawn[p]` functions
raised a SystemError instead of a TypeError, and allow to explicitly use `None`
for `scheduler` and `setpgroup` as specified in the docs.
(cherry picked from commit
347fc438cf903c1d7fa5063464ae2e93c11b2232 )
Stan Ulbrych [Sat, 21 Feb 2026 12:24:53 +0000 (12:24 +0000)]
[3.13] `compute-changes.py`: Fix & test `process_changed_files()` (GH-144674) (#145014)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
Miss Islington (bot) [Sat, 21 Feb 2026 05:42:39 +0000 (06:42 +0100)]
[3.13] gh-144694: Fix re.Match.group() doc claiming [1..99] range limit (GH-144696) (#145066)
gh-144694: Fix re.Match.group() doc claiming [1..99] range limit (GH-144696)
The documentation incorrectly stated that numeric group arguments
must be in the range [1..99]. This limit was removed in Python 3.5
(bpo-22437). Replace with "a positive integer" since the next
sentence already documents the IndexError for out-of-range values.
(cherry picked from commit
85021bc2477f3ab394172b6dda3110e59f4777dd )
Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>
Miss Islington (bot) [Sat, 21 Feb 2026 00:46:53 +0000 (01:46 +0100)]
[3.13] gh-144748: Document 3.12 and 3.14 changes to `PyErr_CheckSignals` (GH-144982) (GH-145063)
* gh-144748: Document 3.12 and 3.14 changes to `PyErr_CheckSignals` (GH-144982)
(cherry picked from commit
06292614ff7cef0ba28da6dfded58fb0e731b2e3 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Thu, 19 Feb 2026 23:11:16 +0000 (00:11 +0100)]
[3.13] Correct MAX_N in Lib/zipfile ZipExtFile (GH-144973) (GH-145023)
"<<" has lower precedence than "-".
(cherry picked from commit
4141f0a1ee6a6e9d5b4ba24f15a9d17df6933321 )
Co-authored-by: J Berg <j.berg2349@gmail.com>
Stan Ulbrych [Thu, 19 Feb 2026 12:13:53 +0000 (12:13 +0000)]
[3.13] Remove unused :platform: in module's docs (GH-144988) (GH-144998)
It has not been outputted since Sphinx 1.1.
(cherry picked from commit
20caf1c08440684b618d2166022ae82b2db3b696 )
Serhiy Storchaka [Wed, 18 Feb 2026 14:18:39 +0000 (16:18 +0200)]
[3.13] gh-140652: Fix a crash in _interpchannels.list_all() after clo…sing a channel (GH-143743) (GH-144953)
(cherry picked from commit
3f50432e31c8e0d2e3ea8cbc2e472f7ee80e327a )
Miss Islington (bot) [Wed, 18 Feb 2026 11:22:24 +0000 (12:22 +0100)]
[3.13] gh-144386: Update equivalent code for "with", "async with" and "async for" (GH-144472) (GH-144946)
They use special method lookup for special methods.
(cherry picked from commit
9e8fa2d4d1ec263bdc6945237b0e0517f07a3474 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Stan Ulbrych [Tue, 17 Feb 2026 12:56:29 +0000 (12:56 +0000)]
[3.13] Fix typos and grammar errors across documentation (GH-144709) (#144804)
(cherry picked from commit
3718f4be60ebb0725b35f597a9de3f7a93ba9f72 )
Co-authored-by: Ronald Eddy Jr <ronald_eddy@yahoo.com>
Miss Islington (bot) [Tue, 17 Feb 2026 10:12:25 +0000 (11:12 +0100)]
[3.13] gh-143637: Fix test_socket.test_sendmsg_reentrant_ancillary_mutation() on Solaris (GH-144890) (#144902)
gh-143637: Fix test_socket.test_sendmsg_reentrant_ancillary_mutation() on Solaris (GH-144890)
Use socket.SCM_RIGHTS operation.
(cherry picked from commit
63531a3867cf4f8b5a7088fb7667d33534c43ff7 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 17 Feb 2026 05:57:46 +0000 (06:57 +0100)]
[3.13] gh-144551: Update macOS installer to use OpenSSL 3.0.19 (GH-144897) (#144898)
(cherry picked from commit
8f7e9c239f4ed5260df5726dfc0b8c7d68800eb9 )
Co-authored-by: Ned Deily <nad@python.org>
Peter Bierma [Mon, 16 Feb 2026 16:05:55 +0000 (11:05 -0500)]
[3.13] gh-144601: Avoid sharing exception objects raised in a `PyInit` function across multiple interpreters (GH-144602) (GH-144880)
(cherry picked from commit
fd6b639a49dd1143c6fd8729fc49f17b3114a965 )
Miss Islington (bot) [Mon, 16 Feb 2026 15:11:17 +0000 (16:11 +0100)]
[3.13] gh-144601: Use `_testmultiphase` instead of `_testsinglephase` in `test_importlib` (GH-144769) (GH-144877)
[3.14] gh-144601: Use `_testmultiphase` instead of `_testsinglephase` in `test_importlib` (GH-144769)
(cherry picked from commit
d1486623263adea6a5138453bacad36a50c14e95 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Mon, 16 Feb 2026 15:02:01 +0000 (16:02 +0100)]
[3.13] gh-80667: Fix lookup for Tangut ideographs in unicodedata (GH-144789) (GH-144871) (GH-144875)
(cherry picked from commit
8b7b5a994602824a5e41cf2516691212fcdfa25e )
(cherry picked from commit
bcabbd02f6fb98ee143fc9f3e47e71ded3b7747f )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Pierre Le Marre <dev@wismill.eu>
Zachary Ware [Mon, 16 Feb 2026 05:27:39 +0000 (23:27 -0600)]
[3.13] gh-144551: Update Android builds to use OpenSSL 3.0.19 (GH-144868)
(cherry picked from commit
87c7f193b8ea7be36f3ba5a66b5c223efde4c674 )
Miss Islington (bot) [Mon, 16 Feb 2026 03:09:58 +0000 (04:09 +0100)]
[3.13] gh-144833: Fix use-after-free in SSL module when SSL_new() fails (GH-144843) (#144859)
gh-144833: Fix use-after-free in SSL module when SSL_new() fails (GH-144843)
In newPySSLSocket(), when SSL_new() returns NULL, Py_DECREF(self)
was called before _setSSLError(get_state_ctx(self), ...), causing
a use-after-free. Additionally, get_state_ctx() was called with
self (PySSLSocket*) instead of sslctx (PySSLContext*), which is
a type confusion bug.
Fix by calling _setSSLError() before Py_DECREF() and using
sslctx instead of self for get_state_ctx().
(cherry picked from commit
c91638ca0671b8038831f963ed44e66cdda006a2 )
Co-authored-by: Ramin Farajpour Cami <ramin.blackhat@gmail.com>
Miss Islington (bot) [Sun, 15 Feb 2026 03:06:50 +0000 (04:06 +0100)]
[3.13] gh-101100: Resolve reference warnings in reference/ (GH-138418) (#138681)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@ulbrych.org>
Pablo Galindo Salgado [Sat, 14 Feb 2026 17:52:42 +0000 (17:52 +0000)]
[3.13] gh-144766: Fix a crash in fork child process when perf support is enabled. (GH-144795) (#144818)
(cherry picked from commit
5922149a5033ec1151320864e605adf88f53f280 )
Co-authored-by: Yilei <hi@mangoumbrella.com>
Zachary Ware [Fri, 13 Feb 2026 21:41:42 +0000 (15:41 -0600)]
[3.13] gh-144551: Update CI to use latest OpenSSL versions (GH-144800)
(cherry picked from commit
b933ef92619db2a103a26c70e69b6d31978eb566 )
Miss Islington (bot) [Fri, 13 Feb 2026 20:28:14 +0000 (21:28 +0100)]
[3.13] gh-144787: [tests] Allow TLS v1.2 to be minimum version (GH-144790) (#144792)
gh-144787: [tests] Allow TLS v1.2 to be minimum version (GH-144790)
Allow TLS v1.2 to be minimum version
Updates test_min_max_version to allow TLS v1.2 to be minimum version if
TLS 1.0 and 1.1 are disabled in OpenSSL.
(cherry picked from commit
d625f7da33bf8eb57fb7e1a05deae3f68bf4d00f )
Co-authored-by: Colin McAllister <colinmca242@gmail.com>
Zachary Ware [Fri, 13 Feb 2026 19:37:02 +0000 (13:37 -0600)]
[3.13] gh-144551: Update Windows builds to use OpenSSL 3.0.19 (GH-144798)
(cherry picked from commit
928602c0ac385eca81b90956ba8d36d04e7dd6de )
Miss Islington (bot) [Fri, 13 Feb 2026 15:58:59 +0000 (16:58 +0100)]
[3.13] gh-143637: Fix re-entrant mutation of ancillary data in socket.sendmsg() (GH-143892) (#144785)
gh-143637: Fix re-entrant mutation of ancillary data in socket.sendmsg() (GH-143892)
(cherry picked from commit
82b92e3cd180723a354cdeb0f0f1d593f1b5eb0d )
Co-authored-by: Priyanshu Singh <priyanshu2282@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Thu, 12 Feb 2026 23:21:26 +0000 (00:21 +0100)]
[3.13] gh-144706: Warn against using synchronization primitives within signal handlers (GH-144736) (GH-144768)
gh-144706: Warn against using synchronization primitives within signal handlers (GH-144736)
(cherry picked from commit
945bf8ce1bf7ee3881752c2ecc129e35ab818477 )
Co-authored-by: Robsdedude <dev@rouvenbauer.de>
Serhiy Storchaka [Thu, 12 Feb 2026 17:18:48 +0000 (19:18 +0200)]
[3.13] gh-80667: Fix case-sensitivity of some Unicode literal escapes (GH-107281) (GH-144754)
Lookup for CJK ideograms and Hangul syllables is now case-insensitive,
as is the case for other character names.
(cherry picked from commit
e66f4a5a9c7ce744030d6352bf5575639b1096cc )
Co-authored-by: James <snoopjedi@gmail.com>
Miss Islington (bot) [Thu, 12 Feb 2026 10:44:42 +0000 (11:44 +0100)]
[3.13] gh-57095: Add note about input splitting in `datetime.*.strptime` (GH-131049) (GH-144734)
(cherry picked from commit
2e3e76e5cde34786780f5b3723f495fdbdf37c84 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Serhiy Storchaka [Thu, 12 Feb 2026 08:35:09 +0000 (10:35 +0200)]
[3.13] gh-84424: Use numeric_changed for UCD.numeric (GH-19457) (GH-144732)
This was causing ucd_3_2_0.numeric() to pick up only decimal
changes between Unicode 3.2.0 and the current version.
(cherry picked from commit
3e0322ff16f47caa3e273d453f007d3918b8ac80 )
Co-authored-by: William Meehan <wmeehan@fb.com>
Stan Ulbrych [Thu, 12 Feb 2026 06:24:00 +0000 (06:24 +0000)]
[3.13] Itertools recipes: Replace the tabulate() example with running_mean() (gh-144483) (gh-144722)
Lysandros Nikolaou [Wed, 11 Feb 2026 17:08:49 +0000 (18:08 +0100)]
[3.13] gh-142518: Define lock-free and per-object lock (GH-144548) (#144707)
(cherry picked from commit
12dbae4c02dac197330d5bfa650b495e962aba6d )
Miss Islington (bot) [Wed, 11 Feb 2026 08:48:28 +0000 (09:48 +0100)]
[3.13] gh-106318: Improve str.rstrip() method doc (GH-143893) (#144698)
gh-106318: Improve str.rstrip() method doc (GH-143893)
(cherry picked from commit
936d60dbe1679f05d7ceb0a6d1f65bc741390ac6 )
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Gregory P. Smith [Wed, 11 Feb 2026 06:37:25 +0000 (22:37 -0800)]
[3.13] gh-143650: Fix importlib race condition on import failure (GH-143651) (#144697)
gh-143650: Fix importlib race condition on import failure (GH-143651)
Fix a race condition where a thread could receive a partially-initialized
module when another thread's import fails. The race occurs when:
1. Thread 1 starts importing, adds module to sys.modules
2. Thread 2 sees the module in sys.modules via the fast path
3. Thread 1's import fails, removes module from sys.modules
4. Thread 2 returns a stale module reference not in sys.modules
The fix adds verification after the "skip lock" optimization in both Python
and C code paths to check if the module is still in sys.modules. If the
module was removed (due to import failure), we retry the import so the
caller receives the actual exception from the import failure rather than
a stale module reference.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
cherry picked from
ac8b5b6890006ee7254ea878866cb486ff835ecb
Miss Islington (bot) [Tue, 10 Feb 2026 14:54:27 +0000 (15:54 +0100)]
[3.13] gh-138744: Skip test_dtrace on Windows (GH-144657) (#144668)
[3.14] gh-138744: Skip test_dtrace on Windows (GH-144657)
(cherry picked from commit
8b4210c30e218b3533d5d5494dfcaf9f081fb384 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Ken Jin <kenjin@python.org>
Miss Islington (bot) [Tue, 10 Feb 2026 13:16:12 +0000 (14:16 +0100)]
[3.13] Clarify the docs for `args` in asyncio callbacks (GH-143873) (#144664)
Clarify the docs for `args` in asyncio callbacks (GH-143873)
(cherry picked from commit
40a82abe9335e78e34ca564243499490e50b8888 )
Co-authored-by: Aarni Koskela <akx@iki.fi>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Tue, 10 Feb 2026 13:01:23 +0000 (14:01 +0100)]
[3.13] gh-143543: Fix re-entrant use-after-free in itertools.groupby (GH-143738) (GH-144627)
(cherry picked from commit
a91b5c3fb5aeaeda6a8e016378beb0e4a8b329e6 )
Co-authored-by: VanshAgarwal24036 <148854295+VanshAgarwal24036@users.noreply.github.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Tue, 10 Feb 2026 12:59:12 +0000 (13:59 +0100)]
[3.13] gh-144363: Update bundled libexpat to 2.7.4 (GH-144365) (GH-144500)
(cherry picked from commit
d5cb9f6a9b6f48cc08c4422259498d4fd023357a )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Petr Viktorin [Tue, 10 Feb 2026 09:49:00 +0000 (10:49 +0100)]
[3.13] gh-131261: generate_sbom.py: Exclude the refresh script from SBOM (GH-131359) (GH-144625)
- generate_sbom.py: Exclude the refresh script from SBOM
- Modules/expat/refresh.sh: Expand the list of manual steps
(cherry picked from commit
51d309988b3041cae20cca89172b4fd825c9a1cc )
Miss Islington (bot) [Tue, 10 Feb 2026 03:22:12 +0000 (04:22 +0100)]
[3.13] Disable pip version check when upgrading certifi (GH-144632) (#144640)
(cherry picked from commit
80ba4e10f5070e6d2e35618e08057be44f913965 )
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 9 Feb 2026 18:16:33 +0000 (19:16 +0100)]
[3.13] gh-144492: Fix `process_changed_files` outputs for `reusable-{macos, wasi}.yml` (GH-144518) (#144634)
gh-144492: Fix `process_changed_files` outputs for `reusable-{macos, wasi}.yml` (GH-144518)
Fix `process_changed_files` double-processing reusable-{macos, wasi] ending up with incorrect outputs
(cherry picked from commit
fd190d1fa1a34bb8d533d05263ea744a051b7529 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Sun, 8 Feb 2026 22:16:49 +0000 (23:16 +0100)]
[3.13] gh-106318: Add examples for str.partition() method (GH-142823) (#144612)
gh-106318: Add examples for str.partition() method (GH-142823)
(cherry picked from commit
432ddd99e2b06a75a4f47bd99c0fd0c911bdb19c )
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Miss Islington (bot) [Sun, 8 Feb 2026 22:15:45 +0000 (23:15 +0100)]
[3.13] gh-106318: Add example for str.isalnum() (GH-137550) (#144610)
gh-106318: Add example for str.isalnum() (GH-137550)
(cherry picked from commit
3dd7a3c65ad4ac330ad44a519efa017484530e1a )
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Miss Islington (bot) [Sun, 8 Feb 2026 07:43:22 +0000 (08:43 +0100)]
[3.13] For `enum.bin`, update versionadded directive from 3.10 to 3.11 (GH-144574) (#144589)
For `enum.bin`, update versionadded directive from 3.10 to 3.11 (GH-144574)
(cherry picked from commit
d73634935cb9ce00a57dcacbd2e56371e4c18451 )
Co-authored-by: Guo Ci <zguoci@gmail.com>
Miss Islington (bot) [Sat, 7 Feb 2026 22:44:03 +0000 (23:44 +0100)]
[3.13] gh-143700: document `secrets.DEFAULT_ENTROPY` as an opaque value (GH-144568) (#144580)
gh-143700: document `secrets.DEFAULT_ENTROPY` as an opaque value (GH-144568)
(cherry picked from commit
934997218e55714003276a70090a710cb3beeb61 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Sat, 7 Feb 2026 12:31:35 +0000 (13:31 +0100)]
[3.13] gh-142044: Add note to prefer `asyncio.timeout[_at]` over `asyncio.Timeout` (GH-144449) (#144566)
gh-142044: Add note to prefer `asyncio.timeout[_at]` over `asyncio.Timeout` (GH-144449)
(cherry picked from commit
0e7c06a85880ba790fac4239b0ff1052399a36ae )
Co-authored-by: kovan <xaum.io@gmail.com>
Miss Islington (bot) [Sat, 7 Feb 2026 12:22:54 +0000 (13:22 +0100)]
[3.13] gh-144538: Upgrade bundled pip to 26.0.1 (gh-144556) (#144561)
gh-144538: Upgrade bundled pip to 26.0.1 (gh-144556)
Upgrade bundled pip to 26.0.1
(cherry picked from commit
f4364a51c1a8ce682fe9e4e96c6aba9f1b590422 )
Co-authored-by: Damian Shaw <damian.peter.shaw@gmail.com>
Miss Islington (bot) [Fri, 6 Feb 2026 09:48:55 +0000 (10:48 +0100)]
[3.13] gh-144330: Initialize classmethod and staticmethod in new (GH-144498) (#144537)
[3.14] gh-144330: Initialize classmethod and staticmethod in new (GH-144498)
gh-144330: Initialize classmethod and staticmethod in new
Initialize cm_callable and sm_callable to None in classmethod and
staticmethod constructor.
(cherry picked from commit
160810de89477836f2fde7139f7ab0670399efff )
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Aniket Singh Yadav <singhyadavaniket43@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Thu, 5 Feb 2026 16:22:07 +0000 (17:22 +0100)]
[3.13] gh-144484: Warn users not to use wsgiref in production (#144512)
gh-144484: Warn users not to use wsgiref in production
(cherry picked from commit
7e777c587f01434ac5eea3d63d096f191278dad2 )
Co-authored-by: Seth Michael Larson <seth@python.org>
Miss Islington (bot) [Thu, 5 Feb 2026 15:47:52 +0000 (16:47 +0100)]
[3.13] gh-144148: Update the urllib.parse documentation (GH-144497) (GH-144507) (GH-144509)
(cherry picked from commit
2fb9cde118b1c5c96d9c9ce24f886d683e8c3ebb )
Document urlsplit() as the main parsing function and urlparse() as
an obsolete variant.
(cherry picked from commit
67ddba9aa9c0405c68e691643c4aa75fdbcefe1d )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 4 Feb 2026 17:24:35 +0000 (18:24 +0100)]
[3.13] gh-106318: Add examples for `str.startswith()` method (GH-144369) (#144480)
gh-106318: Add examples for `str.startswith()` method (GH-144369)
(cherry picked from commit
1b6d737ee0205521333cf5fe6ca6df2d3a6d4ec2 )
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Wed, 4 Feb 2026 16:49:59 +0000 (17:49 +0100)]
[3.13] gh-141004: Document remaining `pyport.h` utility macros (GH-144279) (GH-144478)
gh-141004: Document remaining `pyport.h` utility macros (GH-144279)
(cherry picked from commit
914fbec21458a0344468734489f29254033fafc5 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 4 Feb 2026 11:36:32 +0000 (12:36 +0100)]
[3.13] gh-141444: Replace dead URL in urllib.robotparser example (GH-144443) (#144465)
Co-authored-by: kovan <217326+kovan@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Thomas Wouters [Tue, 3 Feb 2026 21:47:48 +0000 (22:47 +0100)]
Post 3.13.12
Thomas Wouters [Tue, 3 Feb 2026 17:53:04 +0000 (18:53 +0100)]
Python 3.13.12
Miss Islington (bot) [Tue, 3 Feb 2026 14:55:25 +0000 (15:55 +0100)]
[3.13] gh-127313: Use getLogger() without argument to get root logger in logging cookbook (GH-143683) (GH-144432)
gh-127313: Use getLogger() without argument to get root logger in logging cookbook (GH-143683)
Use getLogger() to get root logger in logging cookbook
(cherry picked from commit
53fecbe6e116a4426058b7d0f6c451719c72cb5b )
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Miss Islington (bot) [Tue, 3 Feb 2026 14:16:28 +0000 (15:16 +0100)]
[3.13] gh-74453: Add stronger security warning to os.path.commonprefix
gh-74453: Add stronger security warning to os.path.commonprefix (GH-144401)
(cherry picked from commit
4e15b8d95da9a0f58ad58283979c37e43ff61229 )
Co-authored-by: Seth Michael Larson <seth@python.org>
Miss Islington (bot) [Tue, 3 Feb 2026 13:36:32 +0000 (14:36 +0100)]
[3.13] gh-106318: Add examples for str.rindex() method (GH-143887) (#144422)
gh-106318: Add examples for str.rindex() method (GH-143887)
(cherry picked from commit
45d00a0791a53f07c0050b985c936281ed825d9b )
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 3 Feb 2026 10:40:48 +0000 (11:40 +0100)]
[3.13] gh-75572: Speed up test_xpickle (GH-144393) (GH-144404)
Run a long living subprocess which handles multiple requests instead of
running a new subprocess for each request.
(cherry picked from commit
29acc08c8dad664cd5713cb392e5beba65724c10 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 3 Feb 2026 09:28:43 +0000 (10:28 +0100)]
[3.13] gh-144415: Android testbed fixes (GH-142912) (#144417)
Modifies handling of `.gz` files in Android app payloads, and ensures that
when the Android testbed streams logs, stream flushes aren't treated as
newlines. This improves the output of test suites that use "one dot per test"
progress indicators.
(cherry picked from commit
cb1dc91dcb1eb6637d1c79b34a0bab728939f717 )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Guo Ci [Mon, 2 Feb 2026 21:57:53 +0000 (16:57 -0500)]
[3.13] gh-140806: add docs for `enum.bin` function (#140807) (#143740)
(cherry picked from commit
7f50a5febd7af7259237a78dc533e9f9f274d51c )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Miss Islington (bot) [Mon, 2 Feb 2026 20:06:59 +0000 (21:06 +0100)]
[3.13] gh-142555: Fix null pointer dereference in array.__setitem__ via re-entrant __index__ (GH-142713) (#144397)
gh-142555: Fix null pointer dereference in array.__setitem__ via re-entrant __index__ (GH-142713)
(cherry picked from commit
39f16a93ef7b39c3fc5a1a5b706512168baee499 )
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Miss Islington (bot) [Mon, 2 Feb 2026 19:11:03 +0000 (20:11 +0100)]
[3.13] gh-129401: Test repr rlock failing randomly (GH-129959) (#144405)
Fix and simplify a test of `test_repr_rlock` about multiprocessing.RLock primitive.
(cherry picked from commit
a98a6bd1128663fbe58c0c73d468710245a57ad6 )
Co-authored-by: Duprat <yduprat@gmail.com>
Stan Ulbrych [Mon, 2 Feb 2026 16:51:05 +0000 (16:51 +0000)]
[3.13] gh-144376: Only run 'address' fuzzer for python3-libraries (GH-144398) (#144400)
(cherry picked from commit
5f91577cdd09bc604001ccfc164042ddbe486a81 )
Co-authored-by: Seth Michael Larson <seth@python.org>
Miss Islington (bot) [Mon, 2 Feb 2026 10:29:16 +0000 (11:29 +0100)]
[3.13] gh-144380: Fix incorrect type check in `buffered_iternext()` (GH-144381) (#144390)
gh-144380: Fix incorrect type check in `buffered_iternext()` (GH-144381)
(cherry picked from commit
40d07cad38bf3ce60f4ca03f1836e8650fe40df5 )
Co-authored-by: Ruiyang Ke <me@ry.ke>
Peter Bierma [Thu, 29 Jan 2026 19:18:39 +0000 (11:18 -0800)]
[3.13] gh-144307: Fix a reference leak during module teardown (GH-144308) (GH-144328)
(cherry picked from commit
219b7ac9d562701bbde21d7e17845c4942b83338 )
Signed-off-by: Yongtao Huang <yongtaoh2022@gamil.com>
Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Miss Islington (bot) [Thu, 29 Jan 2026 00:42:13 +0000 (01:42 +0100)]
[3.13] gh-142387: Reduce Android testbed API level to 33 (GH-144315) (#144318)
The emulator images for API level 34 and 35 have significant issues with image size and
internet connectivity. Reverts the default API level used for testbed testing to 33.
(cherry picked from commit
6543720b63a62363de540deb5a6701f1ae431bce )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Victor Stinner [Wed, 28 Jan 2026 14:15:39 +0000 (15:15 +0100)]
[3.13] gh-144194: Fix mmap failure check in perf_jit_trampoline.c (#143713) (#144304)
gh-144194: Fix mmap failure check in perf_jit_trampoline.c (#143713)
mmap() returns MAP_FAILED ((void*)-1) on error, not NULL. The current
check never detects mmap failures, so jitdump initialization proceeds
even when the memory mapping fails.
(cherry picked from commit
8fe8a94a7c050bc16cac9ec300f89c0f389f9a44 )
Co-authored-by: stratakis <cstratak@redhat.com>
Jelle Zijlstra [Wed, 28 Jan 2026 04:37:35 +0000 (20:37 -0800)]
[3.13] gh-144169: Fix three crashes in AST objects with non-str kwargs (GH-144178) (#144260)
(cherry picked from commit
639c1ad4f1ef5c2409a62fa8ed16e6aa3a6f9ab8 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Nathan Goldbaum [Tue, 27 Jan 2026 18:30:48 +0000 (11:30 -0700)]
[3.13] gh-144257: document return values of PyModule_SetDocString (GH-144258) (GH-144286)
(cherry picked from commit
3e9a5b022f01fa95b4485fcf2c0c87bfb9fff837 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Victor Stinner [Tue, 27 Jan 2026 11:59:55 +0000 (12:59 +0100)]
[3.13] gh-144100: Fix crash for POINTER(str) used in ctypes argtypes (#144108) (#144245)
gh-144100: Fix crash for POINTER(str) used in ctypes argtypes (#144108)
(cherry picked from commit
8f459255eba2b6639f1912e5c5e318a7cdafada1 )
Co-authored-by: VanshAgarwal24036 <148854295+VanshAgarwal24036@users.noreply.github.com>
Miss Islington (bot) [Tue, 27 Jan 2026 10:39:20 +0000 (11:39 +0100)]
[3.13] gh-142119: Clarify that one `contextvars.Token` can only reset once in a lifetime (GH-143693) (GH-144267)
(cherry picked from commit
487bd2dea538e36cb620dd9e0f298d731b9ede8a )
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Miss Islington (bot) [Tue, 27 Jan 2026 10:28:09 +0000 (11:28 +0100)]
[3.13] gh-126014: test_makefile_test_folders: Ignore basically-empty directories (GH-140466) (#144268)
gh-126014: test_makefile_test_folders: Ignore basically-empty directories (GH-140466)
The code in test_makefile was attempting to ignore any
non-interesting files, but missed some corners:
1. There is never a *file* called `__pycache__`.
2. A directory containing only a `__pycache__` subdirectory should be
ignored.
3. A directory containing only hidden files should be ignored.
Simplify this all into a couple of filters that let us check for empty
lists.
(cherry picked from commit
17d447e993a0ff9b7d44786ceb2a8f9510638bfa )
Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
Miss Islington (bot) [Mon, 26 Jan 2026 16:22:31 +0000 (17:22 +0100)]
[3.13] gh-101888: Add function.__builtins__ to ref documentation (GH-144174) (#144253)
gh-101888: Add function.__builtins__ to ref documentation (GH-144174)
(cherry picked from commit
933540e33217474abee3e1b53dec28ad927b6311 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Petr Viktorin [Mon, 26 Jan 2026 15:31:52 +0000 (16:31 +0100)]
[3.13] gh-127773: Disable attribute cache on incompatible MRO entries (GH-127924) (GH-143729)
Miss Islington (bot) [Mon, 26 Jan 2026 13:45:22 +0000 (14:45 +0100)]
[3.13] gh-143928: Remove outdated comparison between pickle and marshal regarding recursion (GH-144025) (#144247)
gh-143928: Remove outdated comparison between pickle and marshal regarding recursion (GH-144025)
(cherry picked from commit
923d9d2ac23b583a7fb66e2867d8dcc07fec9a40 )
Co-authored-by: Yashraj <yashrajpala8@gmail.com>
Miss Islington (bot) [Mon, 26 Jan 2026 08:16:06 +0000 (09:16 +0100)]
[3.13] gh-144233: Fix typo in os.eventfd documentation (GH-144234) (#144237)
gh-144233: Fix typo in os.eventfd documentation (GH-144234)
(cherry picked from commit
99821474336187eaf657740c4eb618044d83b9c7 )
Co-authored-by: Solomon Ritzow <11698787+ritzow@users.noreply.github.com>
Miss Islington (bot) [Sun, 25 Jan 2026 17:09:53 +0000 (18:09 +0100)]
[3.13] gh-143935: Email preserve parens when folding comments (GH-143936) (#144035)
gh-143935: Email preserve parens when folding comments (GH-143936)
Fix a bug in the folding of comments when flattening an email message
using a modern email policy. Comments consisting of a very long sequence of
non-foldable characters could trigger a forced line wrap that omitted the
required leading space on the continuation line, causing the remainder of
the comment to be interpreted as a new header field. This enabled header
injection with carefully crafted inputs.
(cherry picked from commit
17d1490aa97bd6b98a42b1a9b324ead84e7fd8a2 )
Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Denis Ledoux <dle@odoo.com>
Miss Islington (bot) [Sun, 25 Jan 2026 17:09:40 +0000 (18:09 +0100)]
[3.13] gh-143237: Fix support of named pipes in the rotating logging handlers (GH-143259) (#143298)
gh-143237: Fix support of named pipes in the rotating logging handlers (GH-143259)
This fixes regression introduced in GH-105887.
(cherry picked from commit
aa8a43d179bad5cd9fbfce63b630e2ee0bd617e4 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 25 Jan 2026 17:09:26 +0000 (18:09 +0100)]
[3.13] gh-144125: email: verify headers are sound in BytesGenerator (#144181)
gh-144125: email: verify headers are sound in BytesGenerator
(cherry picked from commit
052e55e7d44718fe46cbba0ca995cb8fcc359413 )
Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Denis Ledoux <dle@odoo.com>
Co-authored-by: Denis Ledoux <5822488+beledouxdenis@users.noreply.github.com>
Co-authored-by: Petr Viktorin <302922+encukou@users.noreply.github.com>
Co-authored-by: Bas Bloemsaat <1586868+basbloemsaat@users.noreply.github.com>
Miss Islington (bot) [Sun, 25 Jan 2026 17:09:22 +0000 (18:09 +0100)]
[3.13] gh-143919: Reject control characters in http cookies (#144090)
gh-143919: Reject control characters in http cookies
(cherry picked from commit
95746b3a13a985787ef53b977129041971ed7f70 )
Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Sun, 25 Jan 2026 17:09:04 +0000 (18:09 +0100)]
[3.13] Programming FAQ: fix some punctuaction typos (GH-144058) (#144186)
Programming FAQ: fix some punctuaction typos (GH-144058)
(cherry picked from commit
03e651d601c7d54ffe93ef1bbd4f66fafb89eded )
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Seth Michael Larson [Sun, 25 Jan 2026 17:06:01 +0000 (11:06 -0600)]
[3.13] gh-143925: Reject control characters in data: URL mediatypes (#144111)
(cherry picked from commit
f25509e78e8be6ea73c811ac2b8c928c28841b9f )
Stan Ulbrych [Sat, 24 Jan 2026 15:13:13 +0000 (15:13 +0000)]
[3.13] gh-142461: Move misplaced NEWS entries to an appropriate section (GH-143392) (GH-144153)
(cherry picked from commit
72bacb0cd0882bce6bd7e9e2e4e9c112d70213e7 )
Co-authored-by: Aniket <148300120+Aniketsy@users.noreply.github.com>
Terry Jan Reedy [Sat, 24 Jan 2026 03:16:21 +0000 (22:16 -0500)]
[3.13] gh-135142: Initial 3.15 News3.txt entries (GH-144200) (#144202)
(cherry picked from commit
29f1e778faaa31479e4ef84e2fb37a7a53984550 )
Miss Islington (bot) [Fri, 23 Jan 2026 19:19:22 +0000 (20:19 +0100)]
[3.13] gh-144027: Fix documentation for ignorechars in base64.a85decode() (GH-144028) (GH-144193)
It does not support an ASCII string.
Also add more tests.
(cherry picked from commit
25a10b60b04ab2fa802409dc6f211cf2ca028a0a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 23 Jan 2026 10:35:27 +0000 (11:35 +0100)]
[3.13] Doc: fix incorrect reference in `isasyncgenfunction` docs (GH-144099) (GH-144171)
(cherry picked from commit
f3dd0cae6cea38b15b42b20d39c7142a4a0f716e )
Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com>
Miss Islington (bot) [Thu, 22 Jan 2026 17:29:57 +0000 (18:29 +0100)]
[3.13] gh-142779: Initialize reserved field for proper padding (GH-142780) (#144160)
gh-142779: Initialize reserved field for proper padding (GH-142780)
The jitdump specification specifies a reserved field for padding.
Initialize it so no garbage data is embedded in the jitdump files.
(cherry picked from commit
77bf4ba732a8736910bd6b7ec5a58b8ee833c95f )
Co-authored-by: stratakis <cstratak@redhat.com>
Stan Ulbrych [Thu, 22 Jan 2026 15:52:49 +0000 (15:52 +0000)]
[3.13] gh-144023: Prevent `follow_symlinks` from being allowed with an fd of 0 (GH-144022) (#144152)
[3.13] gh-144023: Prevent follow_symlinks from being allowed with an fd of 0 (GH-144022)
The check was (fd > 0), should be (fd >= 0).
(cherry picked from commit
fa44efa0ef1972ac1e2f66996303154be11f605e )
Co-authored-by: AZero13 <gfunni234@gmail.com>
Miss Islington (bot) [Thu, 22 Jan 2026 12:30:31 +0000 (13:30 +0100)]
[3.13] gh-141004: Mark up constants for `PyOS_double_to_string` (GH-143867) (GH-144147)
gh-141004: Mark up constants for `PyOS_double_to_string` (GH-143867)
This ensures they show up as C macros in search and the Sphinx inventory.
(cherry picked from commit
fb690c38cafb15e4ccddc52aba37f9470ce201a0 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Thu, 22 Jan 2026 11:26:48 +0000 (12:26 +0100)]
[3.13] gh-77188: Add pickle tests for objects with slots (GH-144116) (GH-144120)
(cherry picked from commit
cf71e34940e2314ee7ca00961d86a7172286eeea )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 22 Jan 2026 11:15:00 +0000 (12:15 +0100)]
[3.13] gh-143959: Make _datetime optional for test_sys (GH-144003) (#144144)
gh-143959: Make _datetime optional for test_sys (GH-144003)
(cherry picked from commit
c447d1bc146bcf7707a619779bdcc03651adb5e3 )
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
Miss Islington (bot) [Thu, 22 Jan 2026 10:52:12 +0000 (11:52 +0100)]
[3.13] gh-141004: Mark up docs of old PyMem macros (GH-143783) (GH-143865)
gh-141004: Mark up docs of old PyMem macros (GH-143783)
These had a docs-only deprecation notice since the first version of the docs in this repo. Nowadays we call things “soft deprecated” if there's just a note in the docs.
The deprecated directive needs a version, I went with the first one that had the notice (2.0; it's not in 1.6):
- https://docs.python.org/release/2.0/api/memoryInterface.html
- https://docs.python.org/release/1.6/api/memoryInterface.html
Since PEP 445, they are now direct aliases; there are no (additional) binary compatibility concerns over the preferred names.
(cherry picked from commit
a009e78b79ec340d9ff0e1a8ad20f8178fd3257f )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Yongtao Huang [Thu, 22 Jan 2026 09:20:32 +0000 (17:20 +0800)]
[3.13] gh-144085: Add `{gi,cr}_suspended` to `inspect` comments and `generator/coroutine` tests (GH-144086) (#144134)
(cherry picked from commit
4ef30a5871db2043712945e64f33af81938d68dc )
Bera [Tue, 20 Jan 2026 18:34:43 +0000 (21:34 +0300)]
[3.13] gh-143866: Verify return value of `pathlib.write_{bytes,text}` methods in tests (GH-143870) (#144078)
(cherry picked from commit
cb6a662bb0f7a9da9d4ba9dda820053f8d54a9f8 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Tue, 20 Jan 2026 12:44:46 +0000 (13:44 +0100)]
[3.13] gh-144050: Fix stat.filemode pure Python file type detection (GH-144059) (GH-144074)
(cherry picked from commit
fe629262c0db7aa18bad8bf3ac524acd8695739b )
Co-authored-by: VanshAgarwal24036 <148854295+VanshAgarwal24036@users.noreply.github.com>
Miss Islington (bot) [Tue, 20 Jan 2026 12:32:45 +0000 (13:32 +0100)]
[3.13] Update struct.__doc__: _Bool available unconditionally (GH-143716) (#144071)
Update struct.__doc__: _Bool available unconditionally (GH-143716)
This amends commit
a9296e7f3be4d6c22271b25c86467ff867c63bbb .
(cherry picked from commit
31c81ab0a2fb7009a76426617991a9b539ab0180 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Tue, 20 Jan 2026 10:59:24 +0000 (11:59 +0100)]
[3.13] gh-143999: Fix: handle suspended state on types.coroutine wrappers (GH-144000) (GH-144065)
(cherry picked from commit
76b484b9d16d6a3b1749dc89d99773b5b4a5c4a5 )
Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com>
Miss Islington (bot) [Tue, 20 Jan 2026 09:32:55 +0000 (10:32 +0100)]
[3.13] gh-143774 - Improve IDLE Format Paragraph doc (GH-143775) (#144063)
gh-143774 - Improve IDLE Format Paragraph doc (GH-143775)
Add a reminder to not rewrap code line to the Menu => Format => Reformat Paragraph entry.
In Editing and Nagivagion, add a new 'Format block' subsection that defines 'paragraph'
to better match what is dependably handled as more or less expected.
In particular, specify equal indents and that the resulting indent equals original indent.
Also mention that selections are expanded to complete lines and how to modify max length.
(Also fix a couple case errors in cross references.)
(cherry picked from commit
fa3abf5a51d42b2d62e1bc89e9465b398a567e94 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) [Mon, 19 Jan 2026 21:49:20 +0000 (22:49 +0100)]
[3.13] Notify Sviat of GHA changes through codeowners (GH-143945) (#144052)
(cherry picked from commit
78b1370de96bab5eee82b022a9e26e633a040e0b )
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 19 Jan 2026 17:59:44 +0000 (18:59 +0100)]
[3.13] gh-102809: No longer mention `Misc/gdbinit` in the code (GH-143980) (#144045)
gh-102809: No longer mention `Misc/gdbinit` in the code (GH-143980)
Fix misleading comment on `PyObject_Dump`.
(cherry picked from commit
f84ea1107170988742fbd350123678a5c503c1ad )
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Miss Islington (bot) [Mon, 19 Jan 2026 14:22:24 +0000 (15:22 +0100)]
[3.13] gh-106318: Add examples for str.rpartition() method (GH-143891) (#144041)
gh-106318: Add examples for str.rpartition() method (GH-143891)
(cherry picked from commit
3c9c3d33cbdef257526871cbc12e93635026f5d6 )
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Miss Islington (bot) [Mon, 19 Jan 2026 12:26:26 +0000 (13:26 +0100)]
[3.13] gh-143754: Modernize Tkinter docs (GH-143841) (GH-144033)
Use more relevant terminology instead of "master"/"slave" widgets where possible.
(cherry picked from commit
813fc7a291c98654c27f2b5d8f9afa8e53b066a6 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>