]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 months ago[3.14] gh-106318: Add examples for str.isspace() docs (GH-145399) (#145752)
Miss Islington (bot) [Tue, 10 Mar 2026 14:25:46 +0000 (15:25 +0100)] 
[3.14] gh-106318: Add examples for str.isspace() docs (GH-145399) (#145752)

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

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.14] gh-145685: Stop the world when updating MRO of existing types (gh-145707)...
Sam Gross [Tue, 10 Mar 2026 13:31:52 +0000 (09:31 -0400)] 
[3.14] gh-145685: Stop the world when updating MRO of existing types (gh-145707) (#145715)

We already have a stop-the-world pause elsewhere in this code path
(type_set_bases) and this makes will make it easier to avoid contention
on the TYPE_LOCK when looking up names in the MRO hierarchy.

Also use deferred reference counting for non-immortal MROs.
(cherry picked from commit 0b65c88c2af6e09530a9aa21800771aa687371db)

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

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.14] gh-140715: Improve class reference links on datetime.rst (GH-123980) (#145388)
Hugo van Kemenade [Tue, 10 Mar 2026 11:38:20 +0000 (13:38 +0200)] 
[3.14] gh-140715: Improve class reference links on datetime.rst (GH-123980) (#145388)

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.14] gh-140681: Freeze pre-commit hooks and update zizmor links (GH-140682) (#145536)
Hugo van Kemenade [Tue, 10 Mar 2026 11:37:46 +0000 (13:37 +0200)] 
[3.14] gh-140681: Freeze pre-commit hooks and update zizmor links (GH-140682) (#145536)

Co-authored-by: Xianpeng Shen <xianpeng.shen@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 months ago[3.14] Document that PyType_GetModule returns a borrowed ref (GH-145612) (GH-145682)
Petr Viktorin [Tue, 10 Mar 2026 09:06:08 +0000 (10:06 +0100)] 
[3.14] Document that PyType_GetModule returns a borrowed ref (GH-145612) (GH-145682)

(cherry picked from commit 44855458a423569eaea3df53fd5a0c0032da932d)

2 months ago[3.14] gh-145541: Fix `InvalidStateError` in `BaseSubprocessTransport._call_connectio...
Miss Islington (bot) [Tue, 10 Mar 2026 04:41:31 +0000 (05:41 +0100)] 
[3.14] gh-145541: Fix `InvalidStateError` in `BaseSubprocessTransport._call_connection_lost()` (GH-145554) (#145676)

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.14] Remove the `distutils-sig@python.org` email in 'Installing Python Modules...
Miss Islington (bot) [Mon, 9 Mar 2026 22:16:23 +0000 (23:16 +0100)] 
[3.14] Remove the `distutils-sig@python.org` email in 'Installing Python Modules' (GH-145613) (#145708)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 months ago[3.14] gh-145701: Fix `__classdict__` & `__conditional_annotations__` in class-scope...
Miss Islington (bot) [Mon, 9 Mar 2026 20:26:52 +0000 (21:26 +0100)] 
[3.14] gh-145701: Fix `__classdict__` & `__conditional_annotations__` in class-scope inlined comprehensions (GH-145702) (#145710)

(cherry picked from commit 63eaaf95999c530cbd75b3addc3e660499d3adbe)

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

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.14] gh-145615: Fix mimalloc page leak in the free-threaded build (gh-145626) ...
Miss Islington (bot) [Mon, 9 Mar 2026 18:17:57 +0000 (19:17 +0100)] 
[3.14] gh-145615: Fix mimalloc page leak in the free-threaded build (gh-145626) (#145691)

Fix three issues that caused mimalloc pages to be leaked until the
owning thread exited:

1. In _PyMem_mi_page_maybe_free(), move pages out of the full queue
   when relying on QSBR to defer freeing the page. Pages in the full
   queue are never searched by mi_page_queue_find_free_ex(), so a page
   left there is unusable for allocations.

2. Move _PyMem_mi_page_clear_qsbr() from _mi_page_free_collect() to
   _mi_page_thread_free_collect() where it only fires when all blocks
   on the page are free (used == 0). The previous placement was too
   broad: it cleared QSBR state whenever local_free was non-NULL, but
   _mi_page_free_collect() is called from non-allocation paths (e.g.,
   page visiting in mi_heap_visit_blocks) where the page is not being
   reused.

3. In _PyMem_mi_page_maybe_free(), use the page's heap tld to find the
   correct thread state for QSBR list insertion instead of
   PyThreadState_GET(). During stop-the-world pauses, the function may
   process pages belonging to other threads, so the current thread
   state is not necessarily the owner of the page.

(cherry picked from commit d76df75f51e662fd15ebe00e107058841de94860)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2 months ago[3.14] gh-145623: Fix crashes on uninitialized struct.Struct objects (gh-145624)...
Ramin Farajpour Cami [Mon, 9 Mar 2026 16:41:39 +0000 (20:11 +0330)] 
[3.14] gh-145623: Fix crashes on uninitialized struct.Struct objects (gh-145624) (GH-145630)

2 months ago[3.14] gh-141617: clarify `concurrent.futures.ThreadPoolExecutor` deadlock example...
Miss Islington (bot) [Mon, 9 Mar 2026 16:36:00 +0000 (17:36 +0100)] 
[3.14] gh-141617: clarify `concurrent.futures.ThreadPoolExecutor` deadlock example (GH-141620) (#145686)

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.14] gh-78773: Improve ctypes dynamic library loading docs (GH-145313) (GH-145674)
Miss Islington (bot) [Mon, 9 Mar 2026 14:52:16 +0000 (15:52 +0100)] 
[3.14] gh-78773: Improve ctypes dynamic library loading docs  (GH-145313) (GH-145674)

(cherry picked from commit d64f83d07bf587dfd6e4ff9ad9d44541064d5f1c)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 months ago[3.14] gh-145219: Add Emscripten cross-build and clean configurability (GH-145581...
Miss Islington (bot) [Mon, 9 Mar 2026 02:52:56 +0000 (03:52 +0100)] 
[3.14] gh-145219: Add Emscripten cross-build and clean configurability (GH-145581) (#145654)

Modifies the Emscripten build script to allow for custom cross-build directory
names, and to only clean Emscripten-specific paths (optionally including the
build python).
(cherry picked from commit 015613384fea7a00bb2077760e325e5baab6814b)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2 months ago[3.14] gh-145642: Docs: Avoid warning for invalid escape sequence in tutorial (GH...
Miss Islington (bot) [Sun, 8 Mar 2026 23:05:09 +0000 (00:05 +0100)] 
[3.14] gh-145642: Docs: Avoid warning for invalid escape sequence in tutorial (GH-145643) (#145647)

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.14] gh-145177: Support multiple Emscripten versions for Emscripten buildbot (GH...
Miss Islington (bot) [Sun, 8 Mar 2026 22:14:15 +0000 (23:14 +0100)] 
[3.14] gh-145177: Support multiple Emscripten versions for Emscripten buildbot (GH-145180) (#145582)

Adds an `--emsdk-cache` argument to the Emscripten build script and an
emscripten_version.txt file. If the `--emsdk-cache` argument is passed, the build script
will look in `emscripten_version.txt` to get the expected emsdk version is installed in
a folder called e.g., 4.0.12 in the directory indicated by the `--emsdk-cache` argument,
and run the build with that Emscripten tooling activated.
(cherry picked from commit c3fb0d9d96902774c08b199dda0479a8d31398a5)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2 months ago[3.14] gh-145376: Fix refleak in `queuemodule.c` out-of-memory path (GH-145543) ...
Miss Islington (bot) [Sun, 8 Mar 2026 08:02:51 +0000 (09:02 +0100)] 
[3.14] gh-145376: Fix refleak in `queuemodule.c` out-of-memory path (GH-145543) (#145622)

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.14] Remove typo in ``functools.lru_cache`` docs (GH-140278) (#145628)
Miss Islington (bot) [Sat, 7 Mar 2026 17:14:45 +0000 (18:14 +0100)] 
[3.14] Remove typo in ``functools.lru_cache`` docs (GH-140278) (#145628)

Co-authored-by: Brandon Hubacher <brandon.hubacher@gmail.com>
2 months ago[3.14] gh-145376: Fix crashes in `md5module.c` and `hmacmodule.c` (GH-145422) (#145610)
Miss Islington (bot) [Fri, 6 Mar 2026 21:06:32 +0000 (22:06 +0100)] 
[3.14] gh-145376: Fix crashes in `md5module.c` and `hmacmodule.c` (GH-145422) (#145610)

gh-145376: Fix crashes in `md5module.c` and `hmacmodule.c` (GH-145422)

Fix a possible NULL pointer dereference in `md5module.c` and a double-free in `hmacmodule.c`.
Those crashes only occur in error paths taken when the interpreter fails to allocate memory.
(cherry picked from commit c1d77683213c400fca144692654845e6f5418981)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
2 months ago[3.14] gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (GH-145589) (#145593)
Miss Islington (bot) [Fri, 6 Mar 2026 20:34:09 +0000 (21:34 +0100)] 
[3.14] gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (GH-145589) (#145593)

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.14] gh-145566: Skip stop-the-world when reassigning `__class__` on newly created...
Sam Gross [Fri, 6 Mar 2026 19:35:00 +0000 (14:35 -0500)] 
[3.14] gh-145566: Skip stop-the-world when reassigning `__class__` on newly created objects (gh-145567) (#145605)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2 months ago[3.14] gh-144513: Skip critical section locking during stop-the-world (gh-144524...
Sam Gross [Fri, 6 Mar 2026 17:00:17 +0000 (12:00 -0500)] 
[3.14] gh-144513: Skip critical section locking during stop-the-world (gh-144524) (#145570)

2 months ago[3.14] gh-144370: Disallow usage of control characters in status in wsgiref.handlers...
Miss Islington (bot) [Fri, 6 Mar 2026 12:48:44 +0000 (13:48 +0100)] 
[3.14] gh-144370: Disallow usage of control characters in status in wsgiref.handlers for security (GH-144371) (#145586)

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.14] Docs: `import datetime as dt` in examples (GH-145315) (#145583)
Miss Islington (bot) [Fri, 6 Mar 2026 11:49:40 +0000 (12:49 +0100)] 
[3.14] Docs: `import datetime as dt` in examples (GH-145315) (#145583)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2 months ago[3.14] gh-122941: Fix test_launcher sporadic failures via py.ini isolation (GH-145090)
Miss Islington (bot) [Fri, 6 Mar 2026 10:22:29 +0000 (11:22 +0100)] 
[3.14] 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.14] Docs: use a Sphinx extension to eliminate excessive links (GH-145130) (#145575)
Miss Islington (bot) [Fri, 6 Mar 2026 06:49:30 +0000 (07:49 +0100)] 
[3.14] Docs: use a Sphinx extension to eliminate excessive links (GH-145130) (#145575)

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.14] gh-145557: Check ctypes is available in test_external_inspection (GH-145558...
Miss Islington (bot) [Thu, 5 Mar 2026 19:31:06 +0000 (20:31 +0100)] 
[3.14] gh-145557: Check ctypes is available in test_external_inspection (GH-145558) (#145565)

gh-145557: Check ctypes is available in test_external_inspection (GH-145558)

Currently TestGetStackTrace.test_self_trace_after_ctypes_import() will fail if
the _ctypes extension is not built.  Make it match test_ctypes by skipping
the test in that case.
(cherry picked from commit 7232883adfc28f94a62d2e79c897db59711702d7)

Co-authored-by: Alex Malyshev <lex.malyshev@gmail.com>
2 months ago[3.14] doc: Clarify logger creation example in logging HOWTO (GH-145540) (GH-145562)
Miss Islington (bot) [Thu, 5 Mar 2026 18:02:56 +0000 (19:02 +0100)] 
[3.14] doc: Clarify logger creation example in logging HOWTO (GH-145540) (GH-145562)

doc: Clarify logger creation example in logging HOWTO (GH-145540)
(cherry picked from commit e0945443a0abdee56a51a5cb82a31edba5f1adab)

Co-authored-by: Yash Kaushik <yash005kaushik@gmail.com>
2 months ago[3.14] gh-145417: Do not preserve SELinux context when copying venv scripts (GH-14545...
Miss Islington (bot) [Thu, 5 Mar 2026 14:59:05 +0000 (15:59 +0100)] 
[3.14] gh-145417: Do not preserve SELinux context when copying venv scripts (GH-145454) (#145549)

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.14] gh-143304: Fix ctypes.CDLL to honor handle parameter on POSIX systems (GH...
Miss Islington (bot) [Thu, 5 Mar 2026 14:34:32 +0000 (15:34 +0100)] 
[3.14] gh-143304: Fix ctypes.CDLL to honor handle parameter on POSIX systems (GH-143318) (GH-145172)

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: Petr Viktorin <encukou@gmail.com>
2 months ago[3.14] gh-144981: Make PyUnstable_Code_SetExtra/GetExtra thread-safe (GH-144980)...
Miss Islington (bot) [Thu, 5 Mar 2026 13:26:09 +0000 (14:26 +0100)] 
[3.14] gh-144981: Make PyUnstable_Code_SetExtra/GetExtra thread-safe (GH-144980) (#145052)

Co-authored-by: Alper <alperyoney@fb.com>
2 months ago[3.14] gh-145301: Fix double-free in hashlib and hmac module initialization (GH-14532...
Miss Islington (bot) [Thu, 5 Mar 2026 04:13:02 +0000 (05:13 +0100)] 
[3.14] gh-145301: Fix double-free in hashlib and hmac module initialization (GH-145321) (#145523)

gh-145301: Fix double-free in hashlib and hmac module initialization (GH-145321)
(cherry picked from commit 6acaf659ef0fdee131bc02f0b58685da039b5855)

gh-145301: Fix double-free in hashlib and hmac initialization

Co-authored-by: krylosov-aa <krylosov.andrew@gmail.com>
2 months ago[3.14] gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoader uses io.open_c...
Miss Islington (bot) [Wed, 4 Mar 2026 20:21:29 +0000 (21:21 +0100)] 
[3.14] 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.14] GH-144739: Skip test_pyexpat.MemoryProtectionTest based on expat compile-time...
Victor Stinner [Wed, 4 Mar 2026 19:23:56 +0000 (20:23 +0100)] 
[3.14] GH-144739: Skip test_pyexpat.MemoryProtectionTest based on expat compile-time version, not runtime (#144740) (#145494)

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

(cherry picked from commit 45e9343d7eed1d9e784e731cc9af853fa8649e59)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
2 months ago[3.14] Fix incorrect statement about argparse.ArgumentParser.add_argument() (GH-14547...
Miss Islington (bot) [Tue, 3 Mar 2026 21:47:39 +0000 (22:47 +0100)] 
[3.14] Fix incorrect statement about argparse.ArgumentParser.add_argument() (GH-145479) (#145485)

Fix incorrect statement about argparse.ArgumentParser.add_argument() (GH-145479)
(cherry picked from commit dc12d1999b88e84d5a6b8e491be468b73379e54b)

Co-authored-by: Justin Kunimune <justinkunimune@gmail.com>
Co-authored-by: Savannah Ostrowski <savannah@python.org>
2 months ago[3.14] gh-144475: Fix reference management in partial_repr (GH-145362) (GH-145470)
Miss Islington (bot) [Tue, 3 Mar 2026 15:40:23 +0000 (16:40 +0100)] 
[3.14] gh-144475: Fix reference management in partial_repr (GH-145362) (GH-145470)

(cherry picked from commit 671a953dd65292a5b69ba7393666ddcac93dbc44)

Co-authored-by: bkap123 <97006829+bkap123@users.noreply.github.com>
2 months ago[3.14] gh-145455: Show output of blurb & sphinx-build version commands (GH-145457...
Miss Islington (bot) [Tue, 3 Mar 2026 14:16:05 +0000 (15:16 +0100)] 
[3.14] gh-145455: Show output of blurb & sphinx-build version commands (GH-145457) (#145461)

gh-145455: Show output of blurb & sphinx-build version commands (GH-145457)

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.14] GH-145450: Document missing `wave.Wave_write` getter methods (GH-145451) ...
Miss Islington (bot) [Tue, 3 Mar 2026 12:50:45 +0000 (13:50 +0100)] 
[3.14] GH-145450: Document missing `wave.Wave_write` getter methods (GH-145451) (GH-145466)

(cherry picked from commit db41717cd50af6db7d496b0aa282b1f3370327c6)

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

(cherry picked from commit f912c835b94d75ae4823153c160f0cc674a243bb)

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

(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.14] Hide "object" prefix on dunders in contextlib docs & selectivly link some...
Miss Islington (bot) [Mon, 2 Mar 2026 21:18:12 +0000 (22:18 +0100)] 
[3.14] Hide "object" prefix on dunders in contextlib docs & selectivly link some more (GH-145436) (#145443)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 months ago[3.14] gh-130327: Always traverse managed dictionaries, even when inline values are...
Miss Islington (bot) [Mon, 2 Mar 2026 19:57:10 +0000 (20:57 +0100)] 
[3.14] gh-130327: Always traverse managed dictionaries, even when inline values are available (GH-130469) (#145438)

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

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

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.14] gh-145349: Do not install ccache (#145350) (#145425)
Thomas Kowalski [Mon, 2 Mar 2026 18:16:56 +0000 (19:16 +0100)] 
[3.14] gh-145349: Do not install ccache (#145350) (#145425)

2 months agogh-145307: Defer loading psapi.dll until ctypes.util.dllist() is called. (GH-145308)
Miss Islington (bot) [Mon, 2 Mar 2026 16:36:34 +0000 (17:36 +0100)] 
gh-145307: Defer loading psapi.dll until ctypes.util.dllist() is called. (GH-145308)

(cherry picked from commit 1cf5abedeb97ff6ed222afd28e650b9ecc384094)

Co-authored-by: Steve Dower <steve.dower@python.org>
2 months ago[3.14] gh-144835: Added missing explanations for some parameters in glob and iglob...
Miss Islington (bot) [Mon, 2 Mar 2026 13:32:03 +0000 (14:32 +0100)] 
[3.14] gh-144835: Added missing explanations for some parameters in glob and iglob. (GH-144836) (#145415)

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

2 months ago[3.14] gh-100538: Add workflow to verify bundled libexpat (GH-145359) (#145401)
Miss Islington (bot) [Sun, 1 Mar 2026 20:15:09 +0000 (21:15 +0100)] 
[3.14] gh-100538: Add workflow to verify bundled libexpat (GH-145359) (#145401)

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>
2 months ago[3.14] gh-145269: simplify bisect.bisect doc example (GH-145270) (#145367)
Miss Islington (bot) [Sat, 28 Feb 2026 19:28:14 +0000 (20:28 +0100)] 
[3.14] gh-145269: simplify bisect.bisect doc example (GH-145270) (#145367)

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>
2 months ago[3.14] gh-142352: Fix `asyncio` `start_tls()` to transfer buffered data from StreamRe...
Miss Islington (bot) [Sat, 28 Feb 2026 18:43:43 +0000 (19:43 +0100)] 
[3.14] gh-142352: Fix `asyncio` `start_tls()` to transfer buffered data from StreamReader (GH-142354) (#145363)

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

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Maksym Kasimov <39828623+kasimov-maxim@users.noreply.github.com>
2 months ago[3.14] gh-145142: Make str.maketrans safe under free-threading (gh-145157) (#145320)
Miss Islington (bot) [Fri, 27 Feb 2026 16:33:46 +0000 (17:33 +0100)] 
[3.14] gh-145142: Make str.maketrans safe under free-threading (gh-145157) (#145320)

Co-authored-by: VanshAgarwal24036 <148854295+VanshAgarwal24036@users.noreply.github.com>
2 months ago[3.14] gh-144693: Clarify that `PyFrame_GetBack` does not raise exceptions (GH-144824...
Miss Islington (bot) [Fri, 27 Feb 2026 15:31:19 +0000 (16:31 +0100)] 
[3.14] gh-144693: Clarify that `PyFrame_GetBack` does not raise exceptions (GH-144824) (GH-145318)

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>
2 months ago[3.14] gh-141004: Document missing type flags (GH-145127) (GH-145316)
Miss Islington (bot) [Fri, 27 Feb 2026 15:17:35 +0000 (16:17 +0100)] 
[3.14] gh-141004: Document missing type flags (GH-145127) (GH-145316)

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.14] gh-145234: Normalize decoded CR in string tokenizer (GH-145281) (#145310)
Miss Islington (bot) [Fri, 27 Feb 2026 13:11:40 +0000 (14:11 +0100)] 
[3.14] gh-145234: Normalize decoded CR in string tokenizer (GH-145281) (#145310)

gh-145234: Normalize decoded CR in string tokenizer (GH-145281)
(cherry picked from commit 98b1e519273dd28ce73cc21a636e2f3a937e1f8c)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2 months ago[3.14] Fix unlikely potential reference leak in _locale._getdefaultlocale (GH-145250...
Miss Islington (bot) [Fri, 27 Feb 2026 08:31:11 +0000 (09:31 +0100)] 
[3.14] Fix unlikely potential reference leak in _locale._getdefaultlocale (GH-145250) (GH-145302)

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 months ago[3.14] gh-145037: Fix Emscripten trampoline with emcc >= 4.0.19 (GH-145038) (#145283)
Miss Islington (bot) [Fri, 27 Feb 2026 00:55:59 +0000 (01:55 +0100)] 
[3.14] gh-145037: Fix Emscripten trampoline with emcc >= 4.0.19 (GH-145038) (#145283)

This undoes a change made as a part of PR 137470, for compatibility with EMSDK
4.0.19. It adds `emscripten_trampoline` field in `pycore_runtime_structs.h`
and initializes it from JS initialization code with the wasm-gc based trampoline
if possible. Otherwise we fall back to the JS trampoline.
(cherry picked from commit 43fdb7037e76c18d9545ac11b2f1e3e398152ada)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2 months ago[3.14] gh-142787: Handle empty sqlite3 blob slices (GH-142824) (#145297)
Miss Islington (bot) [Fri, 27 Feb 2026 00:12:51 +0000 (01:12 +0100)] 
[3.14] gh-142787: Handle empty sqlite3 blob slices (GH-142824) (#145297)

(cherry picked from commit 06b0920f1292690a22ab2b271dfefe2c63cacf07)

Co-authored-by: A.Ibrahim <abdulrasheedibrahim47@gmail.com>
2 months ago[3.14] gh-144872: fix heap buffer overflow `_PyTokenizer_ensure_utf8` (GH-144807...
Miss Islington (bot) [Thu, 26 Feb 2026 23:01:12 +0000 (00:01 +0100)] 
[3.14] gh-144872: fix heap buffer overflow `_PyTokenizer_ensure_utf8` (GH-144807) (#145287)

Co-authored-by: AdamKorcz <44787359+AdamKorcz@users.noreply.github.com>
2 months ago[3.14] gh-144316: Fix missing exception in _remote_debugging with debug=False (GH...
Pablo Galindo Salgado [Thu, 26 Feb 2026 22:39:48 +0000 (22:39 +0000)] 
[3.14] gh-144316: Fix missing exception in _remote_debugging with debug=False (GH-144442) (#145280)

2 months ago[3.14] gh-144190: Clarify get_type_hints() instance behavior in docs (GH-144831)...
Miss Islington (bot) [Thu, 26 Feb 2026 13:53:16 +0000 (14:53 +0100)] 
[3.14] gh-144190: Clarify get_type_hints() instance behavior in docs (GH-144831) (#145258)

Co-authored-by: Rajhans Jadhao <rajhans.jadhao@gmail.com>
2 months ago[3.14] gh-106318: Add examples for str.rjust() method (GH-143890) (#145257)
Miss Islington (bot) [Thu, 26 Feb 2026 13:48:04 +0000 (14:48 +0100)] 
[3.14] gh-106318: Add examples for str.rjust() method (GH-143890) (#145257)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2 months ago[3.14] GH-145000: Add a tool to record/check removed HTML IDs (GH-145001) (GH-145212)
Miss Islington (bot) [Thu, 26 Feb 2026 12:16:50 +0000 (13:16 +0100)] 
[3.14] GH-145000: Add a tool to record/check removed HTML IDs (GH-145001) (GH-145212)

(cherry picked from commit 9b22261a86b54f198225426e86390ef8dd85e091)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 months ago[3.14] gh-144156: move news entry to Library (GH-145205) (#145207)
Robsdedude [Wed, 25 Feb 2026 21:55:54 +0000 (22:55 +0100)] 
[3.14] gh-144156: move news entry to Library (GH-145205) (#145207)

[3.14] gh-144156: move news entry to Library

2 months ago[3.14] gh-142518: Move thread safety sections into a new page (GH-144716) (#145223)
Miss Islington (bot) [Wed, 25 Feb 2026 15:57:32 +0000 (16:57 +0100)] 
[3.14] gh-142518: Move thread safety sections into a new page (GH-144716) (#145223)

- Create a new page for thread safety notes for built-in types
- Move thread safety notes for `list` into the new page
- Move thread safety notes for `dict` into the new page
---------
(cherry picked from commit 017ccd3bf420b79333f79f44a470c9c30a09aadc)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 months ago[3.14] gh-88091: Fix unicodedata.decomposition() for Hangul Syllables (GH-144993...
Stan Ulbrych [Tue, 24 Feb 2026 22:27:09 +0000 (22:27 +0000)] 
[3.14] gh-88091: Fix unicodedata.decomposition() for Hangul Syllables (GH-144993) (GH-145189)

(cherry picked from commit 56c4f10d6e474604a162521228b5f3b5ff79236c)

2 months ago[3.14] gh-145187: Fix crash on invalid type parameter bound expression in conditional...
Miss Islington (bot) [Tue, 24 Feb 2026 21:13:08 +0000 (22:13 +0100)] 
[3.14] gh-145187: Fix crash on invalid type parameter bound expression in conditional block (GH-145188) (#145196)

gh-145187: Fix crash on invalid type parameter bound expression in conditional block (GH-145188)

Fix parsing crash found by oss-fuzz
(cherry picked from commit 5e61a16c1058e5de66b71dfdc9720d40e9f515d9)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 months ago[3.14] gh-137335: Fix unlikely name conflicts for named pipes in multiprocessing...
Miss Islington (bot) [Tue, 24 Feb 2026 17:21:48 +0000 (18:21 +0100)] 
[3.14] gh-137335: Fix unlikely name conflicts for named pipes in multiprocessing and asyncio on Windows (GH-137389) (GH-145170)

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.14] Update Python install manager docs (GH-145160)
Miss Islington (bot) [Tue, 24 Feb 2026 15:32:35 +0000 (16:32 +0100)] 
[3.14] Update Python install manager docs (GH-145160)

These updates align with v26.0 that was just released.
(cherry picked from commit da39c68c2fb0027365651598eff5704affff5131)

Co-authored-by: Steve Dower <steve.dower@python.org>
2 months ago[3.14] Fix `inspect.Parameter` docstring on the `kind` attribute (GH-143541) (GH...
Miss Islington (bot) [Tue, 24 Feb 2026 14:16:21 +0000 (15:16 +0100)] 
[3.14] Fix `inspect.Parameter` docstring on the `kind` attribute (GH-143541) (GH-145174)

(cherry picked from commit 4c95ad8e495646eae4130957e0a4c1cc5ef19120)

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

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.14] gh-145028: Fix blake2 tests in test_hashlib when it is missing due to configur...
Rafael Santos [Tue, 24 Feb 2026 02:52:57 +0000 (20:52 -0600)] 
[3.14] gh-145028: Fix blake2 tests in test_hashlib when it is missing due to configure --without-builtin-hashlib-hashes (GH-145029) (#145164)

[3.14] gh-145028: Fix blake2 tests in test_hashlib when it is missing due to build config (GH-145029)

specifically configure --without-builtin-hashlib-hashes means the otherwise guaranteed available blake2 family will not exist.  this allows the test suite to still pass.
(cherry picked from commit 273d5062ca17ac47354486f3fc6e672a04cf22e0)

2 months ago[3.14] `_struct.c`: Fix UB from integer overflow in `prepare_s` (GH-145158) (#145162)
Miss Islington (bot) [Tue, 24 Feb 2026 01:18:32 +0000 (02:18 +0100)] 
[3.14] `_struct.c`: Fix UB from integer overflow in `prepare_s` (GH-145158) (#145162)

`_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.14] Add Savannah as `jit.yml` CODEOWNER (GH-145152) (#145155)
Savannah Ostrowski [Mon, 23 Feb 2026 18:13:47 +0000 (10:13 -0800)] 
[3.14] Add Savannah as `jit.yml` CODEOWNER (GH-145152) (#145155)

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

(cherry picked from commit 6180e79ed2175f7b095807b78a5ea58b4da3de0b)

2 months ago[3.14] Update argparse `suggest_on_error` code snippet in docs (GH-144985) (#145151)
Savannah Ostrowski [Mon, 23 Feb 2026 17:35:04 +0000 (09:35 -0800)] 
[3.14] Update argparse `suggest_on_error` code snippet in docs (GH-144985) (#145151)

Update argparse `suggest_on_error` code snippet in docs (#144985)

(cherry picked from commit 6194a552f2b010e1dcdd006996f613c956520124)

2 months ago[3.14] Refactor jit.yml (GH-144577) (#145126)
Savannah Ostrowski [Mon, 23 Feb 2026 17:01:49 +0000 (09:01 -0800)] 
[3.14] Refactor jit.yml (GH-144577) (#145126)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2 months ago[3.14] gh-141811: Split up `init.rst` into multiple pages (GH-144844) (GH-145061)
Peter Bierma [Mon, 23 Feb 2026 15:38:43 +0000 (10:38 -0500)] 
[3.14] gh-141811: Split up `init.rst` into multiple pages (GH-144844) (GH-145061)

(cherry picked from commit 60f3c396fe5dc56bc3a56341e2d31fd6061bb068)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Benedikt Johannes <benedikt.johannes.hofer@gmail.com>
2 months ago[3.14] gh-144777: Fix data races in IncrementalNewlineDecoder (gh-144971) (#145143)
Sam Gross [Mon, 23 Feb 2026 15:25:03 +0000 (10:25 -0500)] 
[3.14] gh-144777: Fix data races in IncrementalNewlineDecoder (gh-144971) (#145143)

2 months ago[3.14] gh-141004: Document `PyModuleDef_Type` (GH-145043) (GH-145146)
Peter Bierma [Mon, 23 Feb 2026 15:24:29 +0000 (10:24 -0500)] 
[3.14] gh-141004: Document `PyModuleDef_Type` (GH-145043) (GH-145146)

(cherry picked from commit 24cc998c164f137603f1c6d95b929d640211d237)

2 months ago[3.14] gh-145092: Fix compiler warning for memchr() and wcschr() returning const...
Miss Islington (bot) [Sun, 22 Feb 2026 08:28:17 +0000 (09:28 +0100)] 
[3.14] gh-145092: Fix compiler warning for memchr() and wcschr() returning const pointer (GH-145093) (GH-145102)

(cherry picked from commit faea32b729e132172d39d54517822e772ad0017a)

Co-authored-by: Rudi Heitbaum <rudi@heitbaum.com>
2 months ago[3.14] gh-142516: fix reference leaks in `ssl.SSLContext` objects (GH-143685) (#145075)
Bénédikt Tran [Sat, 21 Feb 2026 21:31:23 +0000 (22:31 +0100)] 
[3.14] gh-142516: fix reference leaks in `ssl.SSLContext` objects (GH-143685) (#145075)

* [3.14] gh-142516: fix reference leaks in `ssl.SSLContext` objects (GH-143685)
(cherry picked from commit 3a2a686cc45de2fb685ff332b7b914f27f660680)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* fix backport

2 months ago[3.14] gh-143698: correctly check `scheduler` and `setpgroup` values for `os.posix_sp...
Bénédikt Tran [Sat, 21 Feb 2026 15:04:31 +0000 (16:04 +0100)] 
[3.14] gh-143698: correctly check `scheduler` and `setpgroup` values for `os.posix_spawn[p]` (GH-143699) (#145073)

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.14] `compute-changes.py`: Fix & test `process_changed_files()` (GH-144674) (#145013)
Stan Ulbrych [Sat, 21 Feb 2026 12:24:35 +0000 (12:24 +0000)] 
[3.14] `compute-changes.py`: Fix & test `process_changed_files()` (GH-144674) (#145013)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
2 months ago[3.14] gh-143916: Allow HTAB in wsgiref header values (#144761)
Miss Islington (bot) [Sat, 21 Feb 2026 12:14:51 +0000 (13:14 +0100)] 
[3.14] gh-143916: Allow HTAB in wsgiref header values (#144761)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 months ago[3.14] gh-144694: Fix re.Match.group() doc claiming [1..99] range limit (GH-144696...
Miss Islington (bot) [Sat, 21 Feb 2026 05:42:08 +0000 (06:42 +0100)] 
[3.14] gh-144694: Fix re.Match.group() doc claiming [1..99] range limit (GH-144696) (#145065)

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.14] gh-144748: Document 3.12 and 3.14 changes to `PyErr_CheckSignals` (GH-144982...
Miss Islington (bot) [Sat, 21 Feb 2026 00:31:51 +0000 (01:31 +0100)] 
[3.14] gh-144748: Document 3.12 and 3.14 changes to `PyErr_CheckSignals` (GH-144982) (GH-145062)

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.14] gh-144809: Make deque copy atomic in free-threaded build (gh-144966) (#145053)
Miss Islington (bot) [Fri, 20 Feb 2026 20:47:46 +0000 (21:47 +0100)] 
[3.14] gh-144809: Make deque copy atomic in free-threaded build (gh-144966) (#145053)

(cherry picked from commit 70da972f97ec799dc7d7ab069fe195455f2f81b2)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2 months ago[3.14] Simplify summary tables in the itertools docs (gh-145050) (gh-145051)
Miss Islington (bot) [Fri, 20 Feb 2026 18:52:26 +0000 (19:52 +0100)] 
[3.14] Simplify summary tables in the itertools docs (gh-145050) (gh-145051)

2 months ago[3.14] Correct MAX_N in Lib/zipfile ZipExtFile (GH-144973) (GH-145022)
Miss Islington (bot) [Thu, 19 Feb 2026 23:13:43 +0000 (00:13 +0100)] 
[3.14] Correct MAX_N in Lib/zipfile ZipExtFile (GH-144973) (GH-145022)

"<<" has lower precedence than "-".
(cherry picked from commit 4141f0a1ee6a6e9d5b4ba24f15a9d17df6933321)

Co-authored-by: J Berg <j.berg2349@gmail.com>
2 months ago[3.14] gh-144156: Fix email header folding concatenating encoded words (GH-144692...
Miss Islington (bot) [Thu, 19 Feb 2026 19:53:05 +0000 (20:53 +0100)] 
[3.14] gh-144156: Fix email header folding concatenating encoded words (GH-144692) (#145009)

gh-144156: Fix email header folding concatenating encoded words (GH-144692)

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>
Co-authored-by: R. David Murray <rdmurray@bitdance.com>
2 months ago[3.14] Remove unused :platform: in module's docs (GH-144988) (GH-144994)
Miss Islington (bot) [Thu, 19 Feb 2026 11:51:18 +0000 (12:51 +0100)] 
[3.14] Remove unused :platform: in module's docs (GH-144988) (GH-144994)

Remove unused :platform: in module's docs (GH-144988)

It has not been outputted since Sphinx 1.1.
(cherry picked from commit 20caf1c08440684b618d2166022ae82b2db3b696)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 months ago[3.14] gh-144763: Fix race conditions in tracemalloc (#144779) (#144965)
Victor Stinner [Wed, 18 Feb 2026 19:55:38 +0000 (20:55 +0100)] 
[3.14] gh-144763: Fix race conditions in tracemalloc (#144779) (#144965)

gh-144763: Fix race conditions in tracemalloc (#144779)

Avoid PyUnstable_InterpreterFrame_GetLine() since it uses a critical
section which can lead to a deadlock.

_PyTraceMalloc_Stop() now also calls PyRefTracer_SetTracer() without
holding TABLES_LOCK() to prevent another deadlock.

(cherry picked from commit 83f4fffe3d78ba368c0d4864c42c7c9c9223f7d1)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2 months ago[3.14] gh-141984: Reword and reorganize the first part of Atoms docs (GH-144117)...
Miss Islington (bot) [Wed, 18 Feb 2026 16:59:17 +0000 (17:59 +0100)] 
[3.14] gh-141984: Reword and reorganize the first part of Atoms docs (GH-144117) (GH-144959)

(cherry picked from commit 112d8ac9724a53c5459a4f957941f5a3c97abf5d)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 months ago[3.14] Datetime: Tidy up docs (GH-144720) (GH-144956)
Stan Ulbrych [Wed, 18 Feb 2026 14:14:44 +0000 (14:14 +0000)] 
[3.14] Datetime: Tidy up docs (GH-144720) (GH-144956)

(cherry picked from commit c6a142f9472f2d3e2c360b72a19450f9dd087657)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2 months ago[3.14] gh-140652: Fix a crash in _interpchannels.list_all() after closing a channel...
Serhiy Storchaka [Wed, 18 Feb 2026 13:29:34 +0000 (15:29 +0200)] 
[3.14] gh-140652: Fix a crash in _interpchannels.list_all() after closing a channel (GH-143743) (GH-144954)

(cherry picked from commit 3f50432e31c8e0d2e3ea8cbc2e472f7ee80e327a)

2 months ago[3.14] gh-144386: Update equivalent code for "with", "async with" and "async for...
Miss Islington (bot) [Wed, 18 Feb 2026 11:19:02 +0000 (12:19 +0100)] 
[3.14] gh-144386: Update equivalent code for "with", "async with" and "async for" (GH-144472) (GH-144945)

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.14] Docs: an "improve this page" feature (GH-144939) (#144943)
Ned Batchelder [Wed, 18 Feb 2026 10:27:09 +0000 (05:27 -0500)] 
[3.14] Docs: an "improve this page" feature (GH-144939) (#144943)

---------
(cherry picked from commit 7a7521bcfad4a8346d460476de2e3fa11e412477)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 months ago[3.14] Fix typos and grammar errors across documentation (GH-144709) (#144801)
Stan Ulbrych [Tue, 17 Feb 2026 12:53:42 +0000 (12:53 +0000)] 
[3.14] Fix typos and grammar errors across documentation (GH-144709) (#144801)

(cherry picked from commit 3718f4be60ebb0725b35f597a9de3f7a93ba9f72)

Co-authored-by: Ronald Eddy Jr <ronald_eddy@yahoo.com>
2 months ago[3.14] gh-143637: Fix test_socket.test_sendmsg_reentrant_ancillary_mutation() on...
Miss Islington (bot) [Tue, 17 Feb 2026 10:16:21 +0000 (11:16 +0100)] 
[3.14] gh-143637: Fix test_socket.test_sendmsg_reentrant_ancillary_mutation() on Solaris (GH-144890) (#144901)

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>