]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 weeks ago[3.13] gh-79986: Add parsing for References/In-Reply-To email headers (GH-137201...
Miss Islington (bot) [Sun, 21 Dec 2025 19:36:23 +0000 (20:36 +0100)] 
[3.13] gh-79986: Add parsing for References/In-Reply-To email headers (GH-137201) (#142574)

gh-79986: Add parsing for References/In-Reply-To email headers (GH-137201)

This is a followup to 46d88a113142b26c01c95c93846a89318ba87ffc (GH-13397),
which added parsing for Message-ID. Similar handling is needed for the
other two identification headers.
(cherry picked from commit 79aa43a9797de64a3c42794f34329eab638dd67a)

Co-authored-by: elenril <anton@khirnov.net>
5 weeks ago[3.13] gh-70647: Better promote how to safely parse yearless dates in datetime. ...
Gregory P. Smith [Sun, 21 Dec 2025 07:03:24 +0000 (23:03 -0800)] 
[3.13] gh-70647: Better promote how to safely parse yearless dates in datetime. (GH-116179) (#143038)

* gh-70647: Better promote how to safely parse yearless dates in datetime. (GH-116179)

* gh-70647: Better promote how to safely parse yearless dates in datetime.

Every four years people encounter this because it just isn't obvious.
This moves the footnote up to a note with a code example.

We'd love to change the default year value for datetime but doing
that could have other consequences for existing code.  This documented
workaround *always* works.

* doctest code within note is bad, dedent.

* Update to match the error message.

* remove no longer referenced footnote

* ignore the warning in the doctest

* use Petr's suggestion for the docs to hide the warning processing

* cover date.strptime (3.14) as well

* remove date.strptime mentions from 3.14

5 weeks ago[3.13] gh-142145: relax the no-longer-quadratic test timing (GH-143030) (#143032)
Gregory P. Smith [Sun, 21 Dec 2025 00:22:07 +0000 (16:22 -0800)] 
[3.13] gh-142145: relax the no-longer-quadratic test timing (GH-143030) (#143032)

gh-142145: relax the no-longer-quadratic test timing (#143030)

* gh-142145: relax the no-longer-quadratic test timing

* require cpu resource

(cherry picked from commit 8d2d7bb)

5 weeks ago[3.13] gh-142754: Ensure that Element & Attr instances have the ownerDocument attribu...
Miss Islington (bot) [Sat, 20 Dec 2025 23:56:59 +0000 (00:56 +0100)] 
[3.13] gh-142754: Ensure that Element & Attr instances have the ownerDocument attribute (GH-142794) (#142819)

gh-142754: Ensure that Element & Attr instances have the ownerDocument attribute (GH-142794)
(cherry picked from commit 1cc7551b3f9f71efbc88d96dce90f82de98b2454)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
5 weeks ago[3.13] gh-140373: Correctly emit PY_UNWIND event when generator is closed (GH-140767...
Mikhail Efimov [Sat, 20 Dec 2025 14:21:11 +0000 (17:21 +0300)] 
[3.13] gh-140373: Correctly emit PY_UNWIND event when generator is closed (GH-140767) (#140821)

5 weeks ago[3.13] gh-141808: Don't remove the JIT stencils when building with PGO (GH-141809...
Miro Hrončok [Sat, 20 Dec 2025 11:58:01 +0000 (12:58 +0100)] 
[3.13] gh-141808: Don't remove the JIT stencils when building with PGO (GH-141809) (GH-142657) (#142955)

See: https://discuss.python.org/t/building-the-jit-with-pre-built-stencils/91838/12
(cherry picked from commit 8914148151c957aebfaab1f3c890144d1b33968d)
(cherry picked from commit 73c80f69ba37eebb5279dcdea7f0fa8ef856c143)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
5 weeks ago[3.13] gh-143012: use `Py_ssize_t` cast for `PyBytes_FromStringAndSize` (GH-143013...
Miss Islington (bot) [Sat, 20 Dec 2025 07:59:55 +0000 (08:59 +0100)] 
[3.13] gh-143012: use `Py_ssize_t` cast for `PyBytes_FromStringAndSize` (GH-143013) (#143015)

gh-143012: use `Py_ssize_t` cast for `PyBytes_FromStringAndSize` (GH-143013)
(cherry picked from commit 5989095dfd08735525f2b615066bc3c231b09388)

Co-authored-by: AZero13 <gfunni234@gmail.com>
5 weeks ago[3.13] gh-142776: Ensure fp file descriptor is closed on all code paths in import...
stratakis [Sat, 20 Dec 2025 07:18:42 +0000 (08:18 +0100)] 
[3.13] gh-142776: Ensure fp file descriptor is closed on all code paths in import.c (GH-142777) (#142989)

gh-142776: Ensure fp file descriptor is closed on all code paths in import.c (GH-142777)

(cherry picked from commit 6a4f10325d58deb1906b39d68dc8e84f4c2bf5a4)

6 weeks ago[3.13] gh-142681: Move NormalizationTest-3.2.0.txt to more safe place. (GH-142935...
Miss Islington (bot) [Fri, 19 Dec 2025 12:34:18 +0000 (13:34 +0100)] 
[3.13] gh-142681: Move NormalizationTest-3.2.0.txt to more safe place. (GH-142935) (GH-142945)

(cherry picked from commit 4a8ecbad809dedd9268973d533f24117dfc2e5ba)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 weeks ago[3.13] gh-142527: Docs: Clarify that random.seed() discards the sign of an integer...
Miss Islington (bot) [Fri, 19 Dec 2025 08:35:34 +0000 (09:35 +0100)] 
[3.13] gh-142527: Docs: Clarify that random.seed() discards the sign of an integer input (GH-142483) (#142971)

gh-142527: Docs: Clarify that random.seed() discards the sign of an integer input (GH-142483)

If *a* is an integer, the sign of *a* is discarded in the C source code. Clarify this behavior to prevent foot guns, where a common use case might naively assume that flipping the sign will produce different sequences (e.g. for a train/test split of a synthetic data generator in machine learning).
(cherry picked from commit 610aabfef2f90dc1a274703779615aa5b7fbbb3a)

Co-authored-by: Andrej <andrej.karpathy@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
6 weeks ago[3.13] gh-118342: [Enum] update docs (GH-137290) (GH-142954)
Miss Islington (bot) [Thu, 18 Dec 2025 19:19:00 +0000 (20:19 +0100)] 
[3.13] gh-118342: [Enum] update docs (GH-137290) (GH-142954)

gh-118342: [Enum] update docs (GH-137290)

(cherry picked from commit e79c39101a9f55882f54df0bb3ecfa23238692de)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
6 weeks ago[3.13] gh-142784: make the asyncio REPL call `loop.close()` at exit (GH-142785) ...
Miss Islington (bot) [Thu, 18 Dec 2025 17:04:03 +0000 (18:04 +0100)] 
[3.13] gh-142784: make the asyncio REPL call `loop.close()` at exit (GH-142785) (#142932)

gh-142784: make the asyncio REPL call `loop.close()` at exit (GH-142785)
(cherry picked from commit ddfc155d3ade5f4867c6789136df73f61d4efb03)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
6 weeks ago[3.13] GH-100964: Fix reference cycle in exhausted generator frames (G… (#142904)
Savannah Ostrowski [Wed, 17 Dec 2025 20:04:53 +0000 (12:04 -0800)] 
[3.13] GH-100964: Fix reference cycle in exhausted generator frames (G… (#142904)

* [3.13] GH-100964: Fix reference cycle in exhausted generator frames (GH-141112)
(cherry picked from commit 92243dc62ce10715ab0d9074b23dea5a1bfa9dcc)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
6 weeks ago[3.13] gh-142766: Clear frame when `generator.close()` is called (gh-142838) (#142900)
Sam Gross [Wed, 17 Dec 2025 18:46:23 +0000 (13:46 -0500)] 
[3.13] gh-142766: Clear frame when `generator.close()` is called (gh-142838) (#142900)

(cherry picked from commit 25397f9541be89264d35d41a67defcfeaa950844)

6 weeks ago[3.13] gh-112127: Fix possible use-after-free in atexit.unregister() (GH-114092)...
Serhiy Storchaka [Wed, 17 Dec 2025 17:15:21 +0000 (19:15 +0200)] 
[3.13] gh-112127: Fix possible use-after-free in atexit.unregister() (GH-114092) (GH-142880)

(cherry picked from commit 2b466c47c333106dc9522ab77898e6972e25a2c6)

Co-authored-by: Benjamin Johnson <ben332004@gmail.com>
6 weeks ago[3.13] gh-142873: Do not check for `PyContextVar_CheckExact` twice in `PyContextVar_S...
Miss Islington (bot) [Wed, 17 Dec 2025 17:04:39 +0000 (18:04 +0100)] 
[3.13] gh-142873: Do not check for `PyContextVar_CheckExact` twice in `PyContextVar_Set` (GH-142874) (#142894)

gh-142873: Do not check for `PyContextVar_CheckExact` twice in `PyContextVar_Set` (GH-142874)
(cherry picked from commit e61a447d0e0753621e8fc347e99dfc87884d68ab)

Co-authored-by: sobolevn <mail@sobolevn.me>
6 weeks ago[3.13] gh-142876: remove reference to thread in documentation of `asyncio.Queue.shutd...
Miss Islington (bot) [Wed, 17 Dec 2025 16:53:14 +0000 (17:53 +0100)] 
[3.13] gh-142876: remove reference to thread in documentation of `asyncio.Queue.shutdown` (GH-142888) (#142892)

gh-142876: remove reference to thread in documentation of `asyncio.Queue.shutdown` (GH-142888)
(cherry picked from commit 77c8e6a2b8e206ea8151ab1b431e32f1cad51ddd)

Co-authored-by: Damian Birchler <damian@damianbirchler.net>
6 weeks ago[3.13] decimal docs: specification link and examples (GH-128698) (#142805)
Miss Islington (bot) [Wed, 17 Dec 2025 16:12:35 +0000 (17:12 +0100)] 
[3.13] decimal docs: specification link and examples (GH-128698) (#142805)

decimal docs: specification link and examples (GH-128698)
(cherry picked from commit 2450be607cfbdb1ab9e4ed7c0fe01d715e406d18)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
6 weeks ago[3.13] Fix os.posix_spawn() error handling (GH-142532) (#142581)
Miss Islington (bot) [Wed, 17 Dec 2025 15:43:51 +0000 (16:43 +0100)] 
[3.13] Fix os.posix_spawn() error handling (GH-142532) (#142581)

Fix os.posix_spawn() error handling (GH-142532)

Consistently use `goto exit;` in `py_posix_spawn()`.
(cherry picked from commit 8cfa351560487d472df4c7d841814801fbf57397)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
6 weeks ago[3.13] gh-142836: Avoid /proc fd pipes on Solaris (GH-142853) (#142855)
Miss Islington (bot) [Wed, 17 Dec 2025 13:20:28 +0000 (14:20 +0100)] 
[3.13] gh-142836: Avoid /proc fd pipes on Solaris (GH-142853) (#142855)

gh-142836: Avoid /proc fd pipes on Solaris (GH-142853)
(cherry picked from commit c35b812e773493f88631cd1e8be65d3a7c3b47ae)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
6 weeks ago[3.13] gh-142859: Add `Tools/check-c-api-docs` to mypy check (GH-142860) (#142870)
Miss Islington (bot) [Wed, 17 Dec 2025 11:47:36 +0000 (12:47 +0100)] 
[3.13] gh-142859: Add `Tools/check-c-api-docs` to mypy check (GH-142860) (#142870)

gh-142859: Add `Tools/check-c-api-docs` to mypy check (GH-142860)
(cherry picked from commit 248eb3efb3cad7799ef9b4a2dd77a66d1ae65c11)

Co-authored-by: sobolevn <mail@sobolevn.me>
6 weeks ago[3.13] gh-140374: Add glossary entries related to multithreading (GH-140375) (#142869)
Lysandros Nikolaou [Wed, 17 Dec 2025 11:22:33 +0000 (12:22 +0100)] 
[3.13] gh-140374: Add glossary entries related to multithreading (GH-140375) (#142869)

---------
(cherry picked from commit 1e9a0ee6823023a9bdaa60e6fcc71327c604a0fb)

Co-authored-by: Daniele Parmeggiani <8658291+dpdani@users.noreply.github.com>
6 weeks ago[3.13] gh-139320: Cover exception chaining in the docs of `contextmanager.__exit__...
Miss Islington (bot) [Wed, 17 Dec 2025 10:28:37 +0000 (11:28 +0100)] 
[3.13] gh-139320: Cover exception chaining in the docs of `contextmanager.__exit__` (GH-140169) (GH-142793)

(cherry picked from commit a44509ea87021f78a9f769aff2bb3fc212bc8afc)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
6 weeks ago[3.13] gh-142783: Fix possible use after free in zoneinfo module (GH-142790) (GH...
Miss Islington (bot) [Wed, 17 Dec 2025 09:21:20 +0000 (10:21 +0100)] 
[3.13] gh-142783: Fix possible use after free in zoneinfo module (GH-142790) (GH-142861)

(cherry picked from commit 8307a14d0edc14ae2f775995720e4b6d6dc865b3)

Co-authored-by: wangxiaolei <fatelei@gmail.com>
6 weeks ago[3.13] gh-142495: Make `defaultdict` keep existed value when racing with `__missing__...
Serhiy Storchaka [Wed, 17 Dec 2025 08:40:47 +0000 (10:40 +0200)] 
[3.13] gh-142495: Make `defaultdict` keep existed value when racing with `__missing__` (GH-142668) (GH-142858)

(cherry picked from commit a0434075108efe6acdfba34f42545f4d80ac9a5e)

Co-authored-by: Edward Xu <xuxiangad@gmail.com>
6 weeks ago[3.13] gh-142752: add more thread safety tests for mock (GH-142791) (#142857)
Miss Islington (bot) [Wed, 17 Dec 2025 08:09:59 +0000 (09:09 +0100)] 
[3.13] gh-142752: add more thread safety tests for mock (GH-142791) (#142857)

gh-142752: add more thread safety tests for mock (GH-142791)
(cherry picked from commit 4fd006e71247601e9a84e0fa04f96bed5129f09e)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
6 weeks ago[3.13] gh-142315: Don't pass the "real path" of Pdb script target to system functions...
Miss Islington (bot) [Tue, 16 Dec 2025 15:53:09 +0000 (16:53 +0100)] 
[3.13] gh-142315: Don't pass the "real path" of Pdb script target to system functions (GH-142371) (#142498)

gh-142315: Don't pass the "real path" of Pdb script target to system functions (GH-142371

---------
(cherry picked from commit d716e3b2dd33de27aaa31e8204723195c5ba706c)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
6 weeks ago[3.13] gh-130536: Add details to `os.path` documentation (GH-130557) (#142801)
Miss Islington (bot) [Tue, 16 Dec 2025 14:50:58 +0000 (15:50 +0100)] 
[3.13] gh-130536: Add details to `os.path` documentation (GH-130557) (#142801)

Co-authored-by: Arthur Wigo <arthur.l.wigo@gmail.com>
6 weeks ago[3.13] gh-83926: BlockingIOError characters_written is byte count (GH-141215) (#142815)
Miss Islington (bot) [Tue, 16 Dec 2025 12:04:13 +0000 (13:04 +0100)] 
[3.13] gh-83926: BlockingIOError characters_written is byte count (GH-141215) (#142815)

gh-83926: BlockingIOError characters_written is byte count (GH-141215)
(cherry picked from commit e12c744b0a9322186146a90a5d2283d9a1049d31)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
6 weeks ago[3.13] gh-142019: Add description about the exponent of result formatted with present...
Miss Islington (bot) [Tue, 16 Dec 2025 12:02:07 +0000 (13:02 +0100)] 
[3.13] gh-142019: Add description about the exponent of result formatted with presentation type 'e' (GH-142084) (#142814)

Co-authored-by: 1nftf <QfxZ11@proton.me>
6 weeks ago[3.13] gh-141218: Fix inaccurate object comparison documentation (GH-141221) (#142811)
Miss Islington (bot) [Tue, 16 Dec 2025 11:52:38 +0000 (12:52 +0100)] 
[3.13] gh-141218: Fix inaccurate object comparison documentation (GH-141221) (#142811)

Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
6 weeks ago[3.13] Remove duplicate content in `Mapping types - dict` documentation (GH-141036...
Miss Islington (bot) [Tue, 16 Dec 2025 11:52:07 +0000 (12:52 +0100)] 
[3.13] Remove duplicate content in `Mapping types - dict` documentation (GH-141036) (#142809)

Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
6 weeks ago[3.13] Correct Glossary key function example to use str.casefold instead of str.lower...
Miss Islington (bot) [Tue, 16 Dec 2025 11:50:02 +0000 (12:50 +0100)] 
[3.13] Correct Glossary key function example to use str.casefold instead of str.lower (GH-140316) (#142806)

Co-authored-by: Cameron Beck <94604154+cbkinase@users.noreply.github.com>
6 weeks ago[3.13] gh-106318: Add examples for str.ljust() method (GH-142719) (#142803)
Miss Islington (bot) [Tue, 16 Dec 2025 11:45:31 +0000 (12:45 +0100)] 
[3.13] gh-106318: Add examples for str.ljust() method  (GH-142719) (#142803)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
6 weeks ago[3.13] gh-85204: Improve `locale.setlocale` example (GH-132683) (#142799)
Miss Islington (bot) [Tue, 16 Dec 2025 11:32:19 +0000 (12:32 +0100)] 
[3.13] gh-85204: Improve `locale.setlocale` example (GH-132683) (#142799)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
6 weeks ago[3.13] gh-124864: Extends smtplib documentation on ESMTP options format (GH-132547...
Miss Islington (bot) [Tue, 16 Dec 2025 11:27:42 +0000 (12:27 +0100)] 
[3.13] gh-124864: Extends smtplib documentation on ESMTP options format (GH-132547) (#142797)

Co-authored-by: Patrick R <codeZeilen@users.noreply.github.com>
6 weeks ago[3.13] gh-142595: Amend be5e0dcdedb (fix NULL pointer dereference) (GH-142775) (GH...
Miss Islington (bot) [Tue, 16 Dec 2025 11:00:40 +0000 (12:00 +0100)] 
[3.13] gh-142595: Amend be5e0dcdedb (fix NULL pointer dereference) (GH-142775) (GH-142789)

(cherry picked from commit 15a9762500b3d9a13206aa54d8695513efaf3b55)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
6 weeks ago[3.13] gh-142020: ctypes docs: Note that find_library relies on the programs it runs...
Miss Islington (bot) [Tue, 16 Dec 2025 09:56:32 +0000 (10:56 +0100)] 
[3.13] gh-142020: ctypes docs: Note that find_library relies on the programs it runs (GH-142134) (GH-142749)

gh-142020: ctypes docs: Note that find_library relies on the programs it runs (GH-142134)
(cherry picked from commit e4d32a3ef9eab34225fd9320632edbce834f4033)

6 weeks ago[3.13] gh-142594: fix by property calls io.TextIOWrapper.detach (GH-142706) (GH-142757)
Cody Maloney [Tue, 16 Dec 2025 09:55:35 +0000 (01:55 -0800)] 
[3.13] gh-142594: fix by property calls io.TextIOWrapper.detach (GH-142706) (GH-142757)

(cherry picked from commit 1d3854a19a376c1fc7f71e96c620f6bc2de8cd74)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: yihong <zouzou0208@gmail.com>
6 weeks ago[3.13] gh-142737: Handle lost `io.open` in `_Py_FindSourceFile` (GH-142747) (GH-142774)
Bartosz Sławecki [Mon, 15 Dec 2025 23:27:15 +0000 (00:27 +0100)] 
[3.13] gh-142737: Handle lost `io.open` in `_Py_FindSourceFile` (GH-142747) (GH-142774)

(cherry picked from commit f277781bba684322dffffe45cd878f4652ccf7e4)

6 weeks ago[3.13] gh-85222: Document the global start method side effect in multiprocessing...
Miss Islington (bot) [Mon, 15 Dec 2025 22:18:57 +0000 (23:18 +0100)] 
[3.13] gh-85222: Document the global start method side effect in multiprocessing (GH-136426) (#142771)

gh-85222: Document the global start method side effect in multiprocessing (GH-136426)

* Document the ctx parameter in some types in multiprocessing.
* Reduce duplication while still linking to the central explanation from API points with the side effect.
(cherry picked from commit 0978b9a7d5eedab19d7d39bd703ed5b55fd7aa5f)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: R Chintan Meher <meherrihaan@gmail.com>
6 weeks ago[3.13] gh-142595: add type check for namedtuple call during decimal initialization...
Miss Islington (bot) [Mon, 15 Dec 2025 14:04:11 +0000 (15:04 +0100)] 
[3.13] gh-142595: add type check for namedtuple call during decimal initialization (GH-142608) (GH-142622)

(cherry picked from commit be5e0dcdedb63185aaa3e2f711d14dc828cb3640)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
6 weeks ago[3.13] gh-142651: make `Mock.call_count` thread-safe (GH-142656) (#142744)
Miss Islington (bot) [Mon, 15 Dec 2025 12:52:11 +0000 (13:52 +0100)] 
[3.13] gh-142651: make `Mock.call_count` thread-safe (GH-142656) (#142744)

gh-142651: make `Mock.call_count` thread-safe (GH-142656)
(cherry picked from commit 850f95f6f64a55920cbb91b022b70b736bd20ed8)

Co-authored-by: chaope <pengchaoandy@gmail.com>
6 weeks ago[3.13] gh-90871: fix connection backlog offset in asyncio (gh-134392) (#142739)
Miss Islington (bot) [Mon, 15 Dec 2025 06:12:12 +0000 (07:12 +0100)] 
[3.13] gh-90871: fix connection backlog offset in asyncio (gh-134392) (#142739)

gh-90871: fix connection backlog offset in asyncio (gh-134392)
(cherry picked from commit 109f7597d29f0b504e9b42cb398b44177157abaa)

Co-authored-by: Christian Harries <68507104+ChristianHrs@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
6 weeks ago[3.13] gh-127529: Correct asyncio's `accept_connection` behaviour for handling `Conne...
Miss Islington (bot) [Mon, 15 Dec 2025 05:44:52 +0000 (06:44 +0100)] 
[3.13] gh-127529: Correct asyncio's `accept_connection` behaviour for handling `ConnectionAbortedError` (GH-127532) (#142738)

gh-127529: Correct asyncio's `accept_connection` behaviour for handling `ConnectionAbortedError` (GH-127532)
(cherry picked from commit 830e10651b1f45cd0af36ff611397b9f53171220)

Co-authored-by: jb2170 <email@jb2170.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
6 weeks ago[3.13] gh-141004: Add a CI job ensuring that new C APIs include documentation (GH...
Peter Bierma [Mon, 15 Dec 2025 03:19:48 +0000 (22:19 -0500)] 
[3.13] gh-141004: Add a CI job ensuring that new C APIs include documentation (GH-142102) (GH-142248)

* gh-141004: Add a CI job ensuring that new C APIs include documentation (GH-142102)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
(cherry picked from commit 1a7824a927f0706300af7bfc182884a43e2f587a)

* [3.13] gh-141004: Add a CI job ensuring that new C APIs include documentation (GH-142102)
(cherry picked from commit 1a7824a927f0706300af7bfc182884a43e2f587a)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* Update Tools/check-c-api-docs/ignored_c_api.txt

---------

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
6 weeks ago[3.13] gh-142724: fix error path in `_PyPegen_raise_tokenizer_init_error` (GH-142725...
Miss Islington (bot) [Sun, 14 Dec 2025 22:35:54 +0000 (23:35 +0100)] 
[3.13] gh-142724: fix error path in `_PyPegen_raise_tokenizer_init_error` (GH-142725) (#142727)

Co-authored-by: AZero13 <gfunni234@gmail.com>
6 weeks ago[3.13] gh-106318: Add examples for str.isnumeric() (GH-142680) (#142716)
Miss Islington (bot) [Sun, 14 Dec 2025 18:57:38 +0000 (19:57 +0100)] 
[3.13] gh-106318: Add examples for str.isnumeric() (GH-142680) (#142716)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
6 weeks ago[3.13] gh-142411: Change documentation to reflect the new docstring adjustments in...
decorator-factory [Sun, 14 Dec 2025 12:22:33 +0000 (15:22 +0300)] 
[3.13] gh-142411: Change documentation to reflect the new docstring adjustments in 3.13 (GH-142413) (#142690)

6 weeks ago[3.13] gh-142681: Improve unicodedata tests (GH-142682) (GH-142708) (GH-142710)
Serhiy Storchaka [Sun, 14 Dec 2025 12:22:24 +0000 (14:22 +0200)] 
[3.13] gh-142681: Improve unicodedata tests (GH-142682) (GH-142708) (GH-142710)

(cherry picked from commit f6ed94e70edf3250ea7481210d8f536b1448b5c8)
(cherry picked from commit af7cca3c39d59d21073765cbaca3f97e05e6aeec)

6 weeks ago[3.13] gh-142461: Move misplaced NEWS entries to an appropriate section (GH-142464...
Serhiy Storchaka [Sun, 14 Dec 2025 10:55:15 +0000 (12:55 +0200)] 
[3.13] gh-142461: Move misplaced NEWS entries to an appropriate section (GH-142464) (GH-142688) (#142702)

6 weeks ago[3.13] gh-141938: document treatment of `OSError` raised by `HTTPConnection.getrespon...
Miss Islington (bot) [Sun, 14 Dec 2025 10:18:08 +0000 (11:18 +0100)] 
[3.13] gh-141938: document treatment of `OSError` raised by `HTTPConnection.getresponse` (GH-142339) (#142705)

gh-141938: document treatment of `OSError` raised by `HTTPConnection.getresponse` (GH-142339)
(cherry picked from commit 11aef219f5186fcb9b8121651e5bdbd7e84c3a4e)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
6 weeks ago[3.13] gh-142451: correctly copy HMAC attributes in `HMAC.copy()` (GH-142510) (#142701)
Bénédikt Tran [Sun, 14 Dec 2025 09:36:26 +0000 (10:36 +0100)] 
[3.13] gh-142451: correctly copy HMAC attributes in `HMAC.copy()` (GH-142510) (#142701)

Partially cherry-picked from d3ef5ba34d3068b8178d6ff0f39462db6bbc4ad5
which ensures that the `block_size` attribute exists on the copy.

6 weeks ago[3.13] gh-142554: avoid `divmod` crashes due to bad `_pylong.int_divmod` (GH-142673...
Bénédikt Tran [Sun, 14 Dec 2025 09:03:14 +0000 (10:03 +0100)] 
[3.13] gh-142554: avoid `divmod` crashes due to bad `_pylong.int_divmod` (GH-142673) (#142697)

gh-142554: avoid `divmod` crashes due to bad `_pylong.int_divmod` (#142673)

(cherry picked from commit 4e4163676add8caab2dec6cdb93e1b317cf02a2e)

6 weeks ago[3.13] Add 'Show translation source' to docs sidebar (GH-130355) (#142687)
Miss Islington (bot) [Sat, 13 Dec 2025 23:09:13 +0000 (00:09 +0100)] 
[3.13] Add 'Show translation source' to docs sidebar (GH-130355) (#142687)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
6 weeks ago[3.13] Add missing comma to tuple in `except*` docs (GH-142395) (#142684)
Miss Islington (bot) [Sat, 13 Dec 2025 22:57:22 +0000 (23:57 +0100)] 
[3.13] Add missing comma to tuple in `except*` docs (GH-142395) (#142684)

Co-authored-by: dr-carlos <77367421+dr-carlos@users.noreply.github.com>
6 weeks ago[3.13] gh-142568: Fix eval() docs to use 'source' parameter name (GH-142644) (#142670)
Miss Islington (bot) [Sat, 13 Dec 2025 16:15:21 +0000 (17:15 +0100)] 
[3.13] gh-142568: Fix eval() docs to use 'source' parameter name (GH-142644) (#142670)

gh-142568: Fix eval() docs to use 'source' parameter name (GH-142644)
(cherry picked from commit c865ab3781e92ccc56b1729b2b751ac2769f50a0)

Co-authored-by: Joshua Ward <joshie@flewognetworks.wales>
6 weeks ago[3.13] gh-142353: Isolate tests from personal GNU Readline init files (GH-142370...
Miss Islington (bot) [Sat, 13 Dec 2025 10:58:43 +0000 (11:58 +0100)] 
[3.13] gh-142353: Isolate tests from personal GNU Readline init files (GH-142370) (#142635)

gh-142353: Isolate tests from personal GNU Readline init files (GH-142370)

Isolate tests from personal Readline init files using `INPUTRC=/dev/null` trick.
(cherry picked from commit f564654bae79c69e3de40dadbec2399f1423ffcf)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
7 weeks ago[3.13] gh-142457: Support using 3.14 and 3.15 for generation scripts (GH-142499)
Peter Bierma [Fri, 12 Dec 2025 18:09:42 +0000 (13:09 -0500)] 
[3.13] gh-142457: Support using 3.14 and 3.15 for generation scripts (GH-142499)

7 weeks ago[3.13] gh-142571: Check for errors before calling each syscall in `PyUnstable_CopyPer...
Stan Ulbrych [Thu, 11 Dec 2025 22:08:08 +0000 (22:08 +0000)] 
[3.13] gh-142571: Check for errors before calling each syscall in `PyUnstable_CopyPerfMapFile()` (GH-142460) (#142602)

Co-authored-by: AZero13 <gfunni234@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
7 weeks ago[3.13] Use subcommand over sub-command in argparse docs (GH-142488) (#142588)
Miss Islington (bot) [Thu, 11 Dec 2025 17:48:30 +0000 (18:48 +0100)] 
[3.13] Use subcommand over sub-command in argparse docs (GH-142488) (#142588)

Use subcommand over sub-command in argparse docs (GH-142488)
(cherry picked from commit 387f88cac1e911672f6321f4fbb0a3af9710626d)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
7 weeks ago[3.13] gh-142278: Add granular change detection for platforms in CI (GH-142350) ...
Stan Ulbrych [Thu, 11 Dec 2025 16:44:05 +0000 (16:44 +0000)] 
[3.13] gh-142278: Add granular change detection for platforms in CI (GH-142350) (#142578)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
7 weeks ago[3.13] gh-142048: Fix lost gc allocations count on thread cleanup (GH… (#142506)
Kumar Aditya [Thu, 11 Dec 2025 09:37:38 +0000 (15:07 +0530)] 
[3.13] gh-142048: Fix lost gc allocations count on thread cleanup (GH… (#142506)

[3.13] gh-142048: Fix lost gc allocations count on thread cleanup (GH-142233)
(cherry picked from commit 49b1fb43f65290dadeb83ed6f7c0c74995fda7a1)

Co-authored-by: Kevin Wang <kevmo314@gmail.com>
7 weeks ago[3.13] GH-139436: Remove PDF and CHM from IDLE HelpSource (GH-140418) (#142551)
Miss Islington (bot) [Thu, 11 Dec 2025 02:15:14 +0000 (03:15 +0100)] 
[3.13] GH-139436: Remove PDF and CHM from IDLE HelpSource (GH-140418) (#142551)

GH-139436: Remove PDF and CHM from IDLE HelpSource (GH-140418)
(cherry picked from commit c5825ff4c9e26e17224c466db6b3bd49d44c26e0)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
7 weeks ago[3.13] [Docs] Fix typo in bdb: `is_skipped_line` to `is_skipped_module` (GH-141771...
Miss Islington (bot) [Wed, 10 Dec 2025 22:46:50 +0000 (23:46 +0100)] 
[3.13] [Docs] Fix typo in bdb: `is_skipped_line` to `is_skipped_module` (GH-141771) (#142548)

[Docs] Fix typo in bdb: `is_skipped_line` to `is_skipped_module` (GH-141771)
(cherry picked from commit e5adaafc52060ece7232ee074a7133b78fe01f9e)

Co-authored-by: Guo Ci <zguoci@gmail.com>
7 weeks ago[3.13] gh-142489: Increase ssl_handshake_timeout in asyncio tests (GH-142523) (#142546)
Miss Islington (bot) [Wed, 10 Dec 2025 22:43:56 +0000 (23:43 +0100)] 
[3.13] gh-142489: Increase ssl_handshake_timeout in asyncio tests (GH-142523) (#142546)

gh-142489: Increase ssl_handshake_timeout in asyncio tests (GH-142523)

Replace SHORT_TIMEOUT with LONG_TIMEOUT for very slow CIs.
And add the HANDSHAKE_TIMEOUT constant.
(cherry picked from commit dc3ece2bc06d56c21ef81f86424b4598880ba1c8)

Co-authored-by: Victor Stinner <vstinner@python.org>
7 weeks ago[3.13] gh-139927: Fix test_embed on OpenIndiana (GH-142514) (#142521)
Miss Islington (bot) [Wed, 10 Dec 2025 15:54:13 +0000 (16:54 +0100)] 
[3.13] gh-139927: Fix test_embed on OpenIndiana (GH-142514) (#142521)

gh-139927: Fix test_embed on OpenIndiana (GH-142514)

Avoid swprintf() function in Programs/_testembed.c since it doesn't
work as expected on OpenIndiana.
(cherry picked from commit c76cfe8d89c5f44b6a012d24c0e14b45eab16b90)

Co-authored-by: Victor Stinner <vstinner@python.org>
7 weeks ago[3.13] gh-142454: Make the JIT digest more deterministic by sorting the files in...
Miss Islington (bot) [Tue, 9 Dec 2025 18:50:32 +0000 (19:50 +0100)] 
[3.13] gh-142454: Make the JIT digest more deterministic by sorting the files in Tools/jit (GH-142455) (#142484)

gh-142454: Make the JIT digest more deterministic by sorting the files in Tools/jit (GH-142455)
(cherry picked from commit bcf90de8ba2ea087540a5f632656ef880ee46b5c)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
7 weeks ago[3.13] gh-138061: Exclude __pycache__ directory from the computed digest in the...
Miss Islington (bot) [Tue, 9 Dec 2025 18:16:19 +0000 (19:16 +0100)] 
[3.13] gh-138061: Exclude __pycache__ directory  from the computed digest in the JIT stencils (GH-138131) (#142481)

Co-authored-by: alm <alonme@users.noreply.github.com>
7 weeks ago[3.13] gh-112527: Fix help text for required options in argparse (GH-112528) (GH...
Serhiy Storchaka [Tue, 9 Dec 2025 17:36:24 +0000 (19:36 +0200)] 
[3.13] gh-112527: Fix help text for required options in argparse (GH-112528) (GH-142477)

For optional arguments with required=True, the ArgumentDefaultsHelpFormatter
would always add a " (default: None)" to the end of the help text.
Since that's a bit misleading, it is removed with this commit.
(cherry picked from commit 1adb17b1a26e1547d14ca15f915e605cfdda3edd)

Co-authored-by: Fabian Henze <32638720+henzef@users.noreply.github.com>
7 weeks ago[3.13] gh-142282 Fix winreg.QueryValueEx() under race condition (GH-142283) (GH-142456)
Serhiy Storchaka [Tue, 9 Dec 2025 14:46:24 +0000 (16:46 +0200)] 
[3.13] gh-142282 Fix winreg.QueryValueEx() under race condition (GH-142283) (GH-142456)

(cherry picked from commit 3ec941b364778bce4fac6c6100730e120b426849)

Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
7 weeks ago[3.13] gh-105836: Fix `asyncio.run_coroutine_threadsafe` leaving underlying cancelled...
Miss Islington (bot) [Tue, 9 Dec 2025 14:45:50 +0000 (15:45 +0100)] 
[3.13] gh-105836: Fix `asyncio.run_coroutine_threadsafe` leaving underlying cancelled asyncio task running (GH-141696) (#142359)

gh-105836: Fix `asyncio.run_coroutine_threadsafe` leaving underlying cancelled asyncio task running (GH-141696)
(cherry picked from commit 14715e3a64a674629c781d4a3dd11143ba010990)

Co-authored-by: Kaisheng Xu <iaalmsimon@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
7 weeks ago[3.13] gh-142342: Fix m68k assembler operand constraints for `%fpcr` access (gh-14234...
Sam Gross [Tue, 9 Dec 2025 14:13:35 +0000 (09:13 -0500)] 
[3.13] gh-142342: Fix m68k assembler operand constraints for `%fpcr` access (gh-142343) (#142459)

On m68k, an fmove instruction accessing %fpcr may only move from
or to a data register or a memory operand. The constraint "g" also
permits the use of address registers, which is invalid. The correct
constraint is "dm". Beginning with GCC 15, the register allocator
picks an address register in the code which causes SIGILL during
runtime.
(cherry picked from commit 02c085d48b59c00fb7f4454fb13933e1c2c0b01a)

Co-authored-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Co-authored-by: Michael Karcher <github@mkarcher.dialup.fu-berlin.de>
7 weeks ago[3.13] gh-68552: fix defects policy (GH-138579) (#142367)
Miss Islington (bot) [Tue, 9 Dec 2025 07:39:03 +0000 (08:39 +0100)] 
[3.13] gh-68552: fix defects policy  (GH-138579) (#142367)

Co-authored-by: Ivo Bellin Salarin <nilleb@users.noreply.github.com>
Co-authored-by: Martin Panter <vadmium@users.noreply.github.com>
Co-authored-by: Ivo Bellin Salarin <ivo@nilleb.com>
7 weeks ago[3.13] Fix typo in `Tools/wasm/README.md` (GH-142426) (GH-142430)
Miss Islington (bot) [Mon, 8 Dec 2025 20:54:12 +0000 (21:54 +0100)] 
[3.13] Fix typo in `Tools/wasm/README.md` (GH-142426) (GH-142430)

Fix typo in `Tools/wasm/README.md` (GH-142426)
(cherry picked from commit 719d7960e2b55ab8310df3d9d69b7c9df3283fbf)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
7 weeks ago[3.13] gh-141732: Fix ExceptionGroup repr changing when original exception sequence...
dr-carlos [Mon, 8 Dec 2025 18:46:55 +0000 (05:16 +1030)] 
[3.13] gh-141732: Fix ExceptionGroup repr changing when original exception sequence is mutated (GH-141736) (#142391)

* [3.13] gh-141732: Fix `ExceptionGroup` repr changing when original exception sequence is mutated (GH-141736)
(cherry picked from commit ff2577f56eb2170ef0afafa90f78c693df7ca562)

Co-authored-by: dr-carlos <77367421+dr-carlos@users.noreply.github.com>
7 weeks ago[3.13] gh-123241: Document restrictions for `tp_traverse` implementations (gh-142272...
Miss Islington (bot) [Mon, 8 Dec 2025 17:28:21 +0000 (18:28 +0100)] 
[3.13] gh-123241: Document restrictions for `tp_traverse` implementations (gh-142272) (#142422)

(cherry picked from commit 37988c57ea244b0ed2f969e9c6039710dfe8f31d)

Co-authored-by: Sam Gross <colesbury@gmail.com>
7 weeks ago[3.13] gh-141794: Reduce size of compiler stress tests to fix Android warnings (GH...
Malcolm Smith [Mon, 8 Dec 2025 10:37:53 +0000 (10:37 +0000)] 
[3.13] gh-141794: Reduce size of compiler stress tests to fix Android warnings (GH-142263) (#142409)

(cherry picked from commit f193c8fe9e1d722c9a7f9a2b15f8f1b913755491)

7 weeks ago[3.13] gh-101100: Fix references to the set methods (GH-141857) (GH-142345)
Stan Ulbrych [Mon, 8 Dec 2025 07:50:43 +0000 (07:50 +0000)] 
[3.13] gh-101100: Fix references to the set methods (GH-141857) (GH-142345)

(cherry picked from commit 1d8f3ed2eba762e60a02ff87e782a5c7dcd0e77c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 weeks ago[3.13] gh-142006: Fix HeaderWriteError in email.policy.default caused by extra newlin...
Miss Islington (bot) [Sat, 6 Dec 2025 21:40:07 +0000 (22:40 +0100)] 
[3.13] gh-142006: Fix HeaderWriteError in email.policy.default caused by extra newline (GH-142008) (#142362)

gh-142006: Fix HeaderWriteError in email.policy.default caused by extra newline (GH-142008)

RDM: This fixes a subtle folding error that showed up when a token exactly filled a line and was followed by whitespace and a token with no folding whitespace that was longer than a line.  In this particular circumstance the whitespace after the first token got pushed on to the next line, and then stolen to go in front of the next unfoldable token...leaving a completely empty line in the line buffer.  That line got turned in to a newline, which is RFC illegal, and the newish security check caught it.  The fix is to just delete that empty line from the buffer.
(cherry picked from commit 07eff899d8a8ee4c4b1be7cb223fe25687f6216c)

Co-authored-by: Paresh Joshi <rahulj9223@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
7 weeks ago[3.13] GH-75949: Fix argparse dropping '|' in mutually exclusive groups on line wrap...
Miss Islington (bot) [Sat, 6 Dec 2025 15:35:01 +0000 (16:35 +0100)] 
[3.13] GH-75949: Fix argparse dropping '|' in mutually exclusive groups on line wrap (GH-142312) (#142348)

7 weeks ago[3.13] Docs: fix RFC index reference for TLS 1.3 (GH-142262) (#142341)
Miss Islington (bot) [Sat, 6 Dec 2025 13:29:54 +0000 (14:29 +0100)] 
[3.13] Docs: fix RFC index reference for TLS 1.3 (GH-142262) (#142341)

Docs: fix RFC index reference for TLS 1.3 (GH-142262)
(cherry picked from commit 61823a5382e8c0c0292e90a46ae3e1859b7f278b)

Co-authored-by: Y. Z. Chen <754097987@qq.com>
7 weeks ago[3.13] Add explanation comments for tests for overlapped ZIP entries (GH-137152)...
Miss Islington (bot) [Fri, 5 Dec 2025 21:29:37 +0000 (22:29 +0100)] 
[3.13] Add explanation comments for tests for overlapped ZIP entries (GH-137152) (GH-142311)

(cherry picked from commit 100c726d9895ef26d0d279ae585c0228c0d8529f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 weeks ago[3.13] gh-140482: Avoid changing terminal settings in test_pty (gh-142202) (gh-142238)
Miss Islington (bot) [Fri, 5 Dec 2025 20:20:42 +0000 (21:20 +0100)] 
[3.13] gh-140482: Avoid changing terminal settings in test_pty (gh-142202) (gh-142238)

The previous test_spawn_doesnt_hang test had a few problems:

* It would cause ENV CHANGED failures if other tests were running
  concurrently due to stty changes
* Typing while the test was running could cause it to fail
(cherry picked from commit c0c65141b37029bfb364094a6dfb4c75ebf8359e)

Co-authored-by: Sam Gross <colesbury@gmail.com>
7 weeks agoPost 3.13.11
Thomas Wouters [Fri, 5 Dec 2025 19:43:39 +0000 (20:43 +0100)] 
Post 3.13.11

8 weeks agoPython 3.13.11 v3.13.11
Thomas Wouters [Fri, 5 Dec 2025 16:06:17 +0000 (17:06 +0100)] 
Python 3.13.11

8 weeks ago[3.13] gh-141370: Fix undefined behavior when using Py_ABS() (GH-141548) (#142304)
Serhiy Storchaka [Fri, 5 Dec 2025 15:52:12 +0000 (17:52 +0200)] 
[3.13] gh-141370: Fix undefined behavior when using Py_ABS() (GH-141548) (#142304)

(cherry picked from commit 706fdda8b360120a25b272898df40c8913381723)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
8 weeks ago[3.13] gh-119452: Fix a potential virtual memory allocation denial of service in...
Miss Islington (bot) [Fri, 5 Dec 2025 15:37:09 +0000 (16:37 +0100)] 
[3.13] gh-119452: Fix a potential virtual memory allocation denial of service in http.server (GH-142216) (#142296)

[3.14] gh-119452: Fix a potential virtual memory allocation denial of service in http.server (GH-142216)

The CGI server on Windows could consume the amount of memory specified
in the Content-Length header of the request even if the client does not
send such much data. Now it reads the POST request body by chunks,
therefore the memory consumption is proportional to the amount of sent
data.
(cherry picked from commit 0e4f4f1a4633f2d215fb5a803cae278aeea31845)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
8 weeks ago[3.13] gh-142145: Remove quadratic behavior in node ID cache clearing (GH-142146...
Miss Islington (bot) [Fri, 5 Dec 2025 15:24:38 +0000 (16:24 +0100)] 
[3.13] gh-142145: Remove quadratic behavior in node ID cache clearing (GH-142146) (#142210)

gh-142145: Remove quadratic behavior in node ID cache clearing (GH-142146)

* Remove quadratic behavior in node ID cache clearing

* Add news fragment

---------
(cherry picked from commit 08d8e18ad81cd45bc4a27d6da478b51ea49486e4)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Jacob Walls <38668450+jacobtylerwalls@users.noreply.github.com>
8 weeks ago[3.13] gh-119451: Fix a potential denial of service in http.client (GH-119454) (...
Miss Islington (bot) [Fri, 5 Dec 2025 15:21:57 +0000 (16:21 +0100)] 
[3.13] gh-119451: Fix a potential denial of service in http.client (GH-119454) (#142139)

gh-119451: Fix a potential denial of service in http.client (GH-119454)

Reading the whole body of the HTTP response could cause OOM if
the Content-Length value is too large even if the server does not send
a large amount of data. Now the HTTP client reads large data by chunks,
therefore the amount of consumed memory is proportional to the amount
of sent data.
(cherry picked from commit 5a4c4a033a4a54481be6870aa1896fad732555b5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 weeks ago[3.13] Fix disk space issues in Android CI (GH-142289) (#142293)
Miss Islington (bot) [Fri, 5 Dec 2025 15:12:05 +0000 (16:12 +0100)] 
[3.13] Fix disk space issues in Android CI (GH-142289) (#142293)

Fix disk space issues in Android CI (GH-142289)
(cherry picked from commit cac4b04973ea4cee80b775782453cddcd694635d)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
8 weeks ago[3.13] Revert "[3.13] gh-140797: Forbid capturing groups in re.Scanner lexicon patter...
Serhiy Storchaka [Fri, 5 Dec 2025 13:31:34 +0000 (15:31 +0200)] 
[3.13] Revert "[3.13] gh-140797: Forbid capturing groups in re.Scanner lexicon patterns (GH-140944) (GH-140983)" (GH-142231)

Revert "[3.13] gh-140797: Forbid capturing groups in re.Scanner lexicon patterns (GH-140944) (GH-140983)"

This reverts commit ee894d2abbdb9678f4cecdc15707496a0eea7f85.

8 weeks ago[3.13] gh-142206: multiprocessing.resource_tracker: Decode messages using older proto...
Miss Islington (bot) [Fri, 5 Dec 2025 12:13:05 +0000 (13:13 +0100)] 
[3.13] gh-142206: multiprocessing.resource_tracker: Decode messages using older protocol (GH-142215) (#142287)

[3.14] gh-142206: multiprocessing.resource_tracker: Decode messages using older protocol (GH-142215) (GH-142285)

(cherry picked from commit 4172644d78d58189e46424af0aea302b1d78e2de)

Difference from the original commit: the default in 3.14 is to use
the simpler original protocol (except for filenames with newlines).
(cherry picked from commit f130b06da30616dd4dae363c7d8af79b540a7971)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
8 weeks ago[3.13] gh-129483: Make `TestLocalTimeDisambiguation`'s time format locale independent...
Miss Islington (bot) [Thu, 4 Dec 2025 14:01:01 +0000 (15:01 +0100)] 
[3.13] gh-129483: Make `TestLocalTimeDisambiguation`'s time format locale independent (GH-142193) (#142259)

gh-129483: Make `TestLocalTimeDisambiguation`'s time format locale independent (GH-142193)

* Change to update %c to the exact time format.

---------
(cherry picked from commit 8392095bf969655faf785dd0932c3f02fc4ec311)

Co-authored-by: Kir Chou <148194051+gkirchou@users.noreply.github.com>
Co-authored-by: Kir Chou <note351@hotmail.com>
8 weeks ago[3.13] gh-142218: Fix split table dictionary crash (gh-142229) (gh-142245)
Sam Gross [Thu, 4 Dec 2025 07:46:24 +0000 (02:46 -0500)] 
[3.13] gh-142218: Fix split table dictionary crash (gh-142229) (gh-142245)

This fixes a regression introduced in gh-140558. The interpreter would
crash if we inserted a non `str` key into a split table that matches an
existing key.
(cherry picked from commit 547d8daf780646e2800bec598ed32085817c8606)

8 weeks agoMerge branch '3.13' of https://github.com/python/cpython into 3.13
Thomas Wouters [Tue, 2 Dec 2025 16:44:32 +0000 (17:44 +0100)] 
Merge branch '3.13' of https://github.com/python/cpython into 3.13

8 weeks agoPost 3.13.10
Thomas Wouters [Tue, 2 Dec 2025 16:41:30 +0000 (17:41 +0100)] 
Post 3.13.10

8 weeks ago[3.13] Document None for timeout argument of select.select (GH-142177)
Miss Islington (bot) [Tue, 2 Dec 2025 13:32:04 +0000 (14:32 +0100)] 
[3.13] Document None for timeout argument of select.select (GH-142177)

cherry picked from commit 82274c491a48c8cebbc1a1350a9cc67bb423caff (GH-142182)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
8 weeks agoPython 3.13.10 v3.13.10
Thomas Wouters [Tue, 2 Dec 2025 12:49:34 +0000 (13:49 +0100)] 
Python 3.13.10

8 weeks ago[3.13] Revert "gh-119452: Fix a potential virtual memory allocation denial of service...
Hugo van Kemenade [Tue, 2 Dec 2025 12:04:25 +0000 (14:04 +0200)] 
[3.13] Revert "gh-119452: Fix a potential virtual memory allocation denial of service in http.server (GH-119455) (GH-142130)" (#142185)

Revert "[3.13] gh-119452: Fix a potential virtual memory allocation denial of service in http.server (GH-119455) (GH-142130)"

This reverts commit 6c922bbe28f2cd901ffa749240f96449287771a6.