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

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

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

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

8 weeks ago[3.13] gh-144835: Added missing explanations for some parameters in glob and iglob...
Miss Islington (bot) [Mon, 2 Mar 2026 13:32:13 +0000 (14:32 +0100)] 
[3.13] gh-144835: Added missing explanations for some parameters in glob and iglob. (GH-144836) (#145416)

Co-authored-by: Facundo Batista <facundo@taniquetil.com.ar>
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
8 weeks ago[3.13] gh-145351: use `--no-install-recommends` (GH-145352) (#145402)
Thomas Kowalski [Sun, 1 Mar 2026 20:41:41 +0000 (21:41 +0100)] 
[3.13] gh-145351: use `--no-install-recommends` (GH-145352) (#145402)

8 weeks ago[3.13] gh-100538: Add workflow to verify bundled libexpat (GH-145359) (#145400)
Miss Islington (bot) [Sun, 1 Mar 2026 20:11:38 +0000 (21:11 +0100)] 
[3.13] gh-100538: Add workflow to verify bundled libexpat (GH-145359) (#145400)

gh-100538: Add workflow to verify bundled libexpat (GH-145359)

Add workflow to verify bundled libexpat.
(cherry picked from commit c9a5d9aae48a9faa553a5e8137ff1b5e261f6bf6)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
8 weeks ago[3.13] gh-145269: simplify bisect.bisect doc example (GH-145270) (#145368)
Miss Islington (bot) [Sat, 28 Feb 2026 23:20:20 +0000 (00:20 +0100)] 
[3.13] gh-145269: simplify bisect.bisect doc example (GH-145270) (#145368)

gh-145269: simplify bisect.bisect doc example (GH-145270)

---------
(cherry picked from commit fdb4b3527f356a84bc00ca32516181016400e567)

Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
8 weeks ago[3.13] Move news entry (#145366)
Stan Ulbrych [Sat, 28 Feb 2026 19:05:52 +0000 (19:05 +0000)] 
[3.13] Move news entry (#145366)

Move news entry

8 weeks ago[3.13] gh-142352: Fix asyncio start_tls() to transfer buffered data from StreamReader...
Kumar Aditya [Sat, 28 Feb 2026 18:53:27 +0000 (00:23 +0530)] 
[3.13] gh-142352: Fix asyncio start_tls() to transfer buffered data from StreamReader (GH-142354) (#145364)

[3.13] gh-142352: Fix `asyncio` `start_tls()` to transfer buffered data from StreamReader (GH-142354)
(cherry picked from commit 0598f4a8999b96409e0a2bf9c480afc76a876860)

Co-authored-by: Maksym Kasimov <39828623+kasimov-maxim@users.noreply.github.com>
8 weeks ago[3.13] Move NEWS entries out of directories with spaces (GH-145357)
Stan Ulbrych [Sat, 28 Feb 2026 18:48:12 +0000 (18:48 +0000)] 
[3.13] Move NEWS entries out of directories with spaces (GH-145357)

Re-do on updated branch

8 weeks ago[3.13] gh-144759: Fix undefined behavior from NULL pointer arithmetic in lexer (GH...
Stan Ulbrych [Sat, 28 Feb 2026 13:49:37 +0000 (13:49 +0000)] 
[3.13] gh-144759: Fix undefined behavior from NULL pointer arithmetic in lexer (GH-144788) (#145355)

8 weeks ago[3.13] gh-145234: Normalize decoded CR in string tokenizer (GH-145281) (#145312)
Pablo Galindo Salgado [Sat, 28 Feb 2026 01:38:36 +0000 (01:38 +0000)] 
[3.13] gh-145234: Normalize decoded CR in string tokenizer (GH-145281) (#145312)

8 weeks ago[3.13] gh-144693: Clarify that `PyFrame_GetBack` does not raise exceptions (GH-144824...
Miss Islington (bot) [Fri, 27 Feb 2026 15:31:49 +0000 (16:31 +0100)] 
[3.13] gh-144693: Clarify that `PyFrame_GetBack` does not raise exceptions (GH-144824) (GH-145319)

gh-144693: Clarify that `PyFrame_GetBack` does not raise exceptions (GH-144824)
(cherry picked from commit 8775f900179aa21e6e9ec318dbb5c7cfd3561b66)

Co-authored-by: Taegyun Kim <k.taegyun@gmail.com>
Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
8 weeks ago[3.13] gh-141004: Document missing type flags (GH-145127) (GH-145317)
Miss Islington (bot) [Fri, 27 Feb 2026 15:17:22 +0000 (16:17 +0100)] 
[3.13] gh-141004: Document missing type flags (GH-145127) (GH-145317)

gh-141004: Document missing type flags (GH-145127)
(cherry picked from commit dc1b56aa03a1764e7c6bbcbf190b1c293eb5c462)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 months ago[3.13] gh-142787: Handle empty sqlite3 blob slices (GH-142824) (#145298)
Miss Islington (bot) [Fri, 27 Feb 2026 00:13:08 +0000 (01:13 +0100)] 
[3.13] gh-142787: Handle empty sqlite3 blob slices (GH-142824) (#145298)

(cherry picked from commit 06b0920f1292690a22ab2b271dfefe2c63cacf07)

Co-authored-by: A.Ibrahim <abdulrasheedibrahim47@gmail.com>
2 months ago[3.13] gh-106318: Add examples for str.rjust() method (GH-143890) (#145256)
Miss Islington (bot) [Thu, 26 Feb 2026 13:48:01 +0000 (14:48 +0100)] 
[3.13] gh-106318: Add examples for str.rjust() method (GH-143890) (#145256)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2 months ago[3.13] gh-88091: Fix `unicodedata.decomposition()` for Hangul Syllables (GH-144993...
Stan Ulbrych [Tue, 24 Feb 2026 22:27:40 +0000 (22:27 +0000)] 
[3.13] gh-88091: Fix `unicodedata.decomposition()` for Hangul Syllables (GH-144993) (GH-145190)

(cherry picked from commit 56c4f10d6e474604a162521228b5f3b5ff79236c)

2 months ago[3.13] gh-144156: Fix email header folding concatenating encoded words (GH-144692...
R. David Murray [Tue, 24 Feb 2026 20:55:54 +0000 (15:55 -0500)] 
[3.13] gh-144156: Fix email header folding concatenating encoded words (GH-144692) (#145195)

The fix for gh-92081 (gh-92281) was unfortunately flawed, and broke whitespace handling for encoded word patterns that had previously been working correctly but had no corresponding tests, unfortunately in a way that made the resulting headers not RFC compliant, in such a way that Yahoo started rejecting the resulting emails.  This fix was released in 3.14 alpha 1, 3.13 beta 2 and 3.12.5.   This PR fixes the original problem in a way that does not break anything, and in fact fixes a small pre-existing bug (a spurious whitespace after the ':' of the header label if the header value is immediately wrapped on to the next line).  (RDM)
(cherry picked from commit 0f7cd5544a4dd1d7cf892c93c661510d619caaa7)

Co-authored-by: Robsdedude <dev@rouvenbauer.de>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2 months ago[3.13] gh-137335: Fix unlikely name conflicts for named pipes in multiprocessing...
Miss Islington (bot) [Tue, 24 Feb 2026 17:20:53 +0000 (18:20 +0100)] 
[3.13] gh-137335: Fix unlikely name conflicts for named pipes in multiprocessing and asyncio on Windows (GH-137389) (GH-145171)

Since os.stat() raises an OSError for existing named pipe "\\.\pipe\...",
os.path.exists() always returns False for it, and tempfile.mktemp() can
return a name that matches an existing named pipe.

So, tempfile.mktemp() cannot be used to generate unique names for named
pipes. Instead, CreateNamedPipe() should be called in a loop with
different names until it completes successfully.
(cherry picked from commit d6a71f4690c702892644b1fbae90ae9ef733a8ab)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 months ago[3.13] Fix `inspect.Parameter` docstring on the `kind` attribute (GH-143541) (GH...
Miss Islington (bot) [Tue, 24 Feb 2026 13:18:48 +0000 (14:18 +0100)] 
[3.13] Fix `inspect.Parameter` docstring on the `kind` attribute (GH-143541) (GH-145175)

(cherry picked from commit 4c95ad8e495646eae4130957e0a4c1cc5ef19120)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
2 months ago[3.13] gh-66305: Fix a hang on Windows in the tempfile module (GH-144672) (GH-145169)
Miss Islington (bot) [Tue, 24 Feb 2026 11:37:52 +0000 (12:37 +0100)] 
[3.13] gh-66305: Fix a hang on Windows in the tempfile module (GH-144672) (GH-145169)

It occurred when trying to create a temporary file or subdirectory in
a non-writable directory.
(cherry picked from commit ca66d3c40cd9ac1fb94dd7cd79ccb8fecf019527)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 months ago[3.13] `_struct.c`: Fix UB from integer overflow in `prepare_s` (GH-145158) (#145163)
Miss Islington (bot) [Tue, 24 Feb 2026 01:16:45 +0000 (02:16 +0100)] 
[3.13] `_struct.c`: Fix UB from integer overflow in `prepare_s` (GH-145158) (#145163)

`_struct.c`: Fix UB from integer overflow in `prepare_s` (GH-145158)

Avoid possible undefined behaviour from signed overflow in `struct` module

As discovered via oss-fuzz.
(cherry picked from commit fd0400585eb957c7d10812d87a8cb9e1f3c72519)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 months ago[3.13] Add Savannah as `jit.yml` CODEOWNER (GH-145152) (#145156)
Savannah Ostrowski [Mon, 23 Feb 2026 18:16:00 +0000 (10:16 -0800)] 
[3.13] Add Savannah as `jit.yml` CODEOWNER (GH-145152) (#145156)

* Add Savannah as `jit.yml` CODEOWNER (#145152)

(cherry picked from commit 6180e79ed2175f7b095807b78a5ea58b4da3de0b)

2 months ago[3.13] gh-141004: Document `PyModuleDef_Type` (GH-145043) (GH-145147)
Peter Bierma [Mon, 23 Feb 2026 15:11:21 +0000 (10:11 -0500)] 
[3.13] gh-141004: Document `PyModuleDef_Type` (GH-145043) (GH-145147)

(cherry picked from commit 24cc998c164f137603f1c6d95b929d640211d237)

2 months ago[3.13] gh-143916: Allow HTAB in wsgiref header values (GH-144762)
Miss Islington (bot) [Mon, 23 Feb 2026 13:38:04 +0000 (14:38 +0100)] 
[3.13] gh-143916: Allow HTAB in wsgiref header values (GH-144762)

(cherry picked from commit 66da7bf6fe7b81e3ecc9c0a25bd47d4616c8d1a6)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 months ago[3.13] gh-145092: Fix compiler warning for memchr() and wcschr() returning const...
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>
2 months ago[3.13] gh-143698: correctly check `scheduler` and `setpgroup` values for `os.posix_sp...
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)

2 months ago[3.13] `compute-changes.py`: Fix & test `process_changed_files()` (GH-144674) (#145014)
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>
2 months ago[3.13] gh-144694: Fix re.Match.group() doc claiming [1..99] range limit (GH-144696...
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>
2 months ago[3.13] gh-144748: Document 3.12 and 3.14 changes to `PyErr_CheckSignals` (GH-144982...
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>
2 months ago[3.13] Correct MAX_N in Lib/zipfile ZipExtFile (GH-144973) (GH-145023)
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>
2 months ago[3.13] Remove unused :platform: in module's docs (GH-144988) (GH-144998)
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)

2 months ago[3.13] gh-140652: Fix a crash in _interpchannels.list_all() after clo…sing a channel...
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)

2 months ago[3.13] gh-144386: Update equivalent code for "with", "async with" and "async for...
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>
2 months ago[3.13] Fix typos and grammar errors across documentation (GH-144709) (#144804)
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>
2 months ago[3.13] gh-143637: Fix test_socket.test_sendmsg_reentrant_ancillary_mutation() on...
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>
2 months ago[3.13] gh-144551: Update macOS installer to use OpenSSL 3.0.19 (GH-144897) (#144898)
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>
2 months ago[3.13] gh-144601: Avoid sharing exception objects raised in a `PyInit` function acros...
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)

2 months ago[3.13] gh-144601: Use `_testmultiphase` instead of `_testsinglephase` in `test_import...
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>
2 months ago[3.13] gh-80667: Fix lookup for Tangut ideographs in unicodedata (GH-144789) (GH...
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>
2 months ago[3.13] gh-144551: Update Android builds to use OpenSSL 3.0.19 (GH-144868)
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)

2 months ago[3.13] gh-144833: Fix use-after-free in SSL module when SSL_new() fails (GH-144843...
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>
2 months ago[3.13] gh-101100: Resolve reference warnings in reference/ (GH-138418) (#138681)
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>
2 months ago[3.13] gh-144766: Fix a crash in fork child process when perf support is enabled...
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>
2 months ago[3.13] gh-144551: Update CI to use latest OpenSSL versions (GH-144800)
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)

2 months ago[3.13] gh-144787: [tests] Allow TLS v1.2 to be minimum version (GH-144790) (#144792)
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>
2 months ago[3.13] gh-144551: Update Windows builds to use OpenSSL 3.0.19 (GH-144798)
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)

2 months ago[3.13] gh-143637: Fix re-entrant mutation of ancillary data in socket.sendmsg() ...
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>
2 months ago[3.13] gh-144706: Warn against using synchronization primitives within signal handler...
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>
2 months ago[3.13] gh-80667: Fix case-sensitivity of some Unicode literal escapes (GH-107281...
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>
2 months ago[3.13] gh-57095: Add note about input splitting in `datetime.*.strptime` (GH-131049...
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>
2 months ago[3.13] gh-84424: Use numeric_changed for UCD.numeric (GH-19457) (GH-144732)
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>
2 months ago[3.13] Itertools recipes: Replace the tabulate() example with running_mean() (gh...
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)

2 months ago[3.13] gh-142518: Define lock-free and per-object lock (GH-144548) (#144707)
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)

2 months ago[3.13] gh-106318: Improve str.rstrip() method doc (GH-143893) (#144698)
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>
2 months ago[3.13] gh-143650: Fix importlib race condition on import failure (GH-143651) (#144697)
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

2 months ago[3.13] gh-138744: Skip test_dtrace on Windows (GH-144657) (#144668)
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>
2 months ago[3.13] Clarify the docs for `args` in asyncio callbacks (GH-143873) (#144664)
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>
2 months ago[3.13] gh-143543: Fix re-entrant use-after-free in itertools.groupby (GH-143738)...
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>
2 months ago[3.13] gh-144363: Update bundled libexpat to 2.7.4 (GH-144365) (GH-144500)
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>
2 months ago[3.13] gh-131261: generate_sbom.py: Exclude the refresh script from SBOM (GH-131359...
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)

2 months ago[3.13] Disable pip version check when upgrading certifi (GH-144632) (#144640)
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>
2 months ago[3.13] gh-144492: Fix `process_changed_files` outputs for `reusable-{macos, wasi...
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>
2 months ago[3.13] gh-106318: Add examples for str.partition() method (GH-142823) (#144612)
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>
2 months ago[3.13] gh-106318: Add example for str.isalnum() (GH-137550) (#144610)
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>
2 months ago[3.13] For `enum.bin`, update versionadded directive from 3.10 to 3.11 (GH-144574...
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>
2 months ago[3.13] gh-143700: document `secrets.DEFAULT_ENTROPY` as an opaque value (GH-144568...
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>
2 months ago[3.13] gh-142044: Add note to prefer `asyncio.timeout[_at]` over `asyncio.Timeout...
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>
2 months ago[3.13] gh-144538: Upgrade bundled pip to 26.0.1 (gh-144556) (#144561)
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>
2 months ago[3.13] gh-144330: Initialize classmethod and staticmethod in new (GH-144498) (#144537)
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>
2 months ago[3.13] gh-144484: Warn users not to use wsgiref in production (#144512)
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>
2 months ago[3.13] gh-144148: Update the urllib.parse documentation (GH-144497) (GH-144507) ...
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>
2 months ago[3.13] gh-106318: Add examples for `str.startswith()` method (GH-144369) (#144480)
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>
2 months ago[3.13] gh-141004: Document remaining `pyport.h` utility macros (GH-144279) (GH-144478)
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>
2 months ago[3.13] gh-141444: Replace dead URL in urllib.robotparser example (GH-144443) (#144465)
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>
2 months agoPost 3.13.12
Thomas Wouters [Tue, 3 Feb 2026 21:47:48 +0000 (22:47 +0100)] 
Post 3.13.12

2 months agoPython 3.13.12 v3.13.12
Thomas Wouters [Tue, 3 Feb 2026 17:53:04 +0000 (18:53 +0100)] 
Python 3.13.12

2 months ago[3.13] gh-127313: Use getLogger() without argument to get root logger in logging...
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>
2 months ago[3.13] gh-74453: Add stronger security warning to os.path.commonprefix
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>
2 months ago[3.13] gh-106318: Add examples for str.rindex() method (GH-143887) (#144422)
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>
2 months ago[3.13] gh-75572: Speed up test_xpickle (GH-144393) (GH-144404)
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>