]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
6 weeks ago[3.14] Add missing comma to tuple in `except*` docs (GH-142395) (#142685)
Miss Islington (bot) [Sat, 13 Dec 2025 22:57:29 +0000 (23:57 +0100)] 
[3.14] Add missing comma to tuple in `except*` docs (GH-142395) (#142685)

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

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.14] gh-141808: Don't remove the JIT stencils when building with PGO (GH-141809...
Stan Ulbrych [Sat, 13 Dec 2025 14:15:10 +0000 (14:15 +0000)] 
[3.14] gh-141808: Don't remove the JIT stencils when building with PGO (GH-141809) (GH-142657)

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

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
7 weeks ago[3.14] gh-142531: Fix free-threaded GC performance regression (gh-142562) (gh-142617)
Neil Schemenauer [Fri, 12 Dec 2025 22:30:20 +0000 (14:30 -0800)] 
[3.14] gh-142531: Fix free-threaded GC performance regression (gh-142562) (gh-142617)

If there are many untracked tuples, the GC will run too often, resulting
in poor performance.  The fix is to include untracked tuples in the
"long lived" object count. The number of frozen objects is also now
included since the free-threaded GC must scan those too.
(cherry picked from commit e38967ed60778146050cc88dd16b70bfd867fde7)

7 weeks ago[3.14] Doc: remove the invalid type variables of typing.TextIO and BinaryIO (GH-14264...
Miss Islington (bot) [Fri, 12 Dec 2025 19:26:34 +0000 (20:26 +0100)] 
[3.14] Doc: remove the invalid type variables of typing.TextIO and BinaryIO (GH-142642) (#142643)

They are not generic classes.
(cherry picked from commit fa1ac9070c7525cab69c043ca2259e6d86357fb3)

Co-authored-by: Roman Donchenko <rdonchen@outlook.com>
7 weeks ago[3.14] gh-141370: Fix undefined behavior when using Py_ABS() (GH-141548) (GH-142301)
Miss Islington (bot) [Fri, 12 Dec 2025 15:11:43 +0000 (16:11 +0100)] 
[3.14] gh-141370: Fix undefined behavior when using Py_ABS() (GH-141548) (GH-142301)

(cherry picked from commit 706fdda8b360120a25b272898df40c8913381723)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
7 weeks ago[3.14] gh-142353: Isolate tests from personal GNU Readline init files (GH-142370...
Miss Islington (bot) [Fri, 12 Dec 2025 15:08:08 +0000 (16:08 +0100)] 
[3.14] gh-142353: Isolate tests from personal GNU Readline init files (GH-142370) (#142634)

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.14] gh-142627: Ignore anonymous mappings in Linux remote debugging (GH-142628...
Miss Islington (bot) [Fri, 12 Dec 2025 13:38:09 +0000 (14:38 +0100)] 
[3.14] gh-142627: Ignore anonymous mappings in Linux remote debugging (GH-142628) (#142630)

gh-142627: Ignore anonymous mappings in Linux remote debugging (GH-142628)
(cherry picked from commit e0bca091a4f112b9f0beb4ce19dfac2a7fc50342)

Co-authored-by: Victor Stinner <vstinner@python.org>
7 weeks ago[3.14] gh-142571: Check for errors before calling each syscall in `PyUnstable_CopyPer...
Miss Islington (bot) [Thu, 11 Dec 2025 22:13:36 +0000 (23:13 +0100)] 
[3.14] gh-142571: Check for errors before calling each syscall in `PyUnstable_CopyPerfMapFile()` (GH-142460) (#142600)

Co-authored-by: AZero13 <gfunni234@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
7 weeks ago[3.14] gh-142534: Avoid TSan warnings in dictobject.c (gh-142544) (gh-142603)
Miss Islington (bot) [Thu, 11 Dec 2025 21:51:02 +0000 (22:51 +0100)] 
[3.14] gh-142534: Avoid TSan warnings in dictobject.c (gh-142544) (gh-142603)

There are places we use "relaxed" loads where C11 requires "consume" or
stronger. Unfortunately, compilers don't really implement "consume" so
fake it for our use in a way that avoids upsetting TSan.
(cherry picked from commit 0a62f8277e9a0dd9f34b0b070adb83994e81b2a8)

Co-authored-by: Sam Gross <colesbury@gmail.com>
7 weeks ago[3.14] gh-142589: Fix PyUnstable_Object_IsUniqueReferencedTemporary (gh-142593) ...
Sam Gross [Thu, 11 Dec 2025 20:08:45 +0000 (15:08 -0500)] 
[3.14] gh-142589: Fix PyUnstable_Object_IsUniqueReferencedTemporary (gh-142593) (#142597)

PyUnstable_Object_IsUniqueReferencedTemporary wasn't handling tagged
ints on the evaluation stack properly.
(cherry picked from commit a26c831bc486b6e607cee6a5923bad52b97c2341)

7 weeks ago[3.14] gh-123241: Don't modify ref count during visitation (GH-142232) (#142567)
Petr Viktorin [Thu, 11 Dec 2025 18:51:11 +0000 (19:51 +0100)] 
[3.14] gh-123241: Don't modify ref count during visitation (GH-142232) (#142567)

(cherry picked from commit da8199f8842c2830fa4015138725849863523de4)

Co-authored-by: Dino Viehland <dinoviehland@meta.com>
7 weeks ago[3.14] Use subcommand over sub-command in argparse docs (GH-142488) (#142587)
Miss Islington (bot) [Thu, 11 Dec 2025 17:48:26 +0000 (18:48 +0100)] 
[3.14] Use subcommand over sub-command in argparse docs (GH-142488) (#142587)

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.14] Fix os.posix_spawn() error handling (GH-142532) (#142582)
Miss Islington (bot) [Thu, 11 Dec 2025 17:32:11 +0000 (18:32 +0100)] 
[3.14] Fix os.posix_spawn() error handling (GH-142532) (#142582)

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>
7 weeks ago[3.14] gh-142556: fix crash when a task gets re-registered during finalization in...
Miss Islington (bot) [Thu, 11 Dec 2025 10:00:44 +0000 (11:00 +0100)] 
[3.14] gh-142556: fix crash when a task gets re-registered during finalization in `asyncio` (GH-142565) (#142566)

gh-142556: fix crash when a task gets re-registered during finalization in `asyncio` (GH-142565)
(cherry picked from commit 42d2bedb875f42f0580ee2cfb4bd80a5a229bbd4)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
7 weeks ago[3.14] gh-142278: Add granular change detection for platforms in CI (GH-142350) ...
Stan Ulbrych [Thu, 11 Dec 2025 07:16:13 +0000 (07:16 +0000)] 
[3.14] gh-142278: Add granular change detection for platforms in CI (GH-142350) (#142537)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
7 weeks ago[3.14] GH-139436: Remove PDF and CHM from IDLE HelpSource (GH-140418) (#142552)
Miss Islington (bot) [Thu, 11 Dec 2025 02:18:36 +0000 (03:18 +0100)] 
[3.14] GH-139436: Remove PDF and CHM from IDLE HelpSource (GH-140418) (#142552)

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 agogh-140172: Skip JSON tools test during PGO training (GH-140809)
Miss Islington (bot) [Thu, 11 Dec 2025 01:01:59 +0000 (02:01 +0100)] 
gh-140172: Skip JSON tools test during PGO training (GH-140809)

(cherry picked from commit fa448451abfabe7dbc969ef6468bedc4a8b8ecaf)

Co-authored-by: Steve Dower <steve.dower@python.org>
7 weeks ago[3.14] gh-137007: Track executor before any possible deallocations (GH-137016) (GH...
Miss Islington (bot) [Wed, 10 Dec 2025 22:54:28 +0000 (23:54 +0100)] 
[3.14] gh-137007: Track executor before any possible deallocations (GH-137016) (GH-142541)

gh-137007: Track executor before any possible deallocations (GH-137016)
(cherry picked from commit 97e19014ddc652beae58e7eceb591f5d65a875e6)

Co-authored-by: Ken Jin <kenjin@python.org>
7 weeks ago[3.14] gh-142489: Increase ssl_handshake_timeout in asyncio tests (GH-142523) (#142545)
Miss Islington (bot) [Wed, 10 Dec 2025 22:46:35 +0000 (23:46 +0100)] 
[3.14] gh-142489: Increase ssl_handshake_timeout in asyncio tests (GH-142523) (#142545)

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.14] [Docs] Fix typo in bdb: `is_skipped_line` to `is_skipped_module` (GH-141771...
Miss Islington (bot) [Wed, 10 Dec 2025 22:46:18 +0000 (23:46 +0100)] 
[3.14] [Docs] Fix typo in bdb: `is_skipped_line` to `is_skipped_module` (GH-141771) (#142547)

[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.14] gh-139927: Fix test_embed on OpenIndiana (GH-142514) (#142520)
Miss Islington (bot) [Wed, 10 Dec 2025 16:41:12 +0000 (17:41 +0100)] 
[3.14] gh-139927: Fix test_embed on OpenIndiana (GH-142514) (#142520)

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.14] gh-142433: Move deref to below the error when checking for laststring (GH...
Miss Islington (bot) [Wed, 10 Dec 2025 16:07:59 +0000 (17:07 +0100)] 
[3.14] gh-142433: Move deref to below the error when checking for laststring (GH-142402) (#142524)

gh-142433: Move deref to below the error when checking for laststring (GH-142402)

Move deref of laststring to below the error checking so the deref
is applied after the object in strings is replaced.
(cherry picked from commit 785268fdceb0d0fe217aed1d6e43e0231c0e50c3)

Co-authored-by: AZero13 <gfunni234@gmail.com>
7 weeks ago[3.14] gh-142048: Fix lost gc allocations count on thread cleanup (GH-142233) (#142504)
Miss Islington (bot) [Wed, 10 Dec 2025 10:52:55 +0000 (11:52 +0100)] 
[3.14] gh-142048: Fix lost gc allocations count on thread cleanup (GH-142233) (#142504)

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 agoUpdates to PyManager docs based on feedback. (GH-142473)
Miss Islington (bot) [Tue, 9 Dec 2025 23:13:26 +0000 (00:13 +0100)] 
Updates to PyManager docs based on feedback. (GH-142473)

(cherry picked from commit 37fe9a90c5f99fd3830bb3c86e745ba16edf4723)

Co-authored-by: Steve Dower <steve.dower@python.org>
7 weeks ago[3.14] gh-140189: Use macos-14 runner for iOS CI tests (GH-142444) (#142494)
Miss Islington (bot) [Tue, 9 Dec 2025 22:44:15 +0000 (23:44 +0100)] 
[3.14] gh-140189: Use macos-14 runner for iOS CI tests (GH-142444) (#142494)

Switch to the macos-14 runner for iOS CI, working around some instability
in the macos-15 runner.
(cherry picked from commit 91884838bc3c47e02ab6099e6f9b12d80a0abae2)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
7 weeks ago[3.14] gh-142454: Make the JIT digest more deterministic by sorting the files in...
Miss Islington (bot) [Tue, 9 Dec 2025 18:50:53 +0000 (19:50 +0100)] 
[3.14] gh-142454: Make the JIT digest more deterministic by sorting the files in Tools/jit (GH-142455) (#142485)

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.14] gh-138061: Exclude __pycache__ directory from the computed digest in the...
Miss Islington (bot) [Tue, 9 Dec 2025 18:18:14 +0000 (19:18 +0100)] 
[3.14] gh-138061: Exclude __pycache__ directory  from the computed digest in the JIT stencils (GH-138131) (#142482)

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

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.14] GH-139946: Document argparse includes color codes when redirecting to stderr...
Savannah Ostrowski [Tue, 9 Dec 2025 17:22:26 +0000 (09:22 -0800)] 
[3.14] GH-139946: Document argparse includes color codes when redirecting to stderr to file (#142398)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
7 weeks ago[3.14] gh-140222: Increase stack margin on debug build (GH-142452) (#142471)
Miss Islington (bot) [Tue, 9 Dec 2025 15:59:42 +0000 (16:59 +0100)] 
[3.14] gh-140222: Increase stack margin on debug build (GH-142452) (#142471)

gh-140222: Increase stack margin on debug build (GH-142452)

Increase _PyOS_MIN_STACK_SIZE if Python is built in debug mode.
(cherry picked from commit 49207a522627718a19886386ec2a7ce957437d08)

Co-authored-by: Victor Stinner <vstinner@python.org>
7 weeks ago[3.14] gh-105836: Fix `asyncio.run_coroutine_threadsafe` leaving underlying cancelled...
Miss Islington (bot) [Tue, 9 Dec 2025 14:46:05 +0000 (15:46 +0100)] 
[3.14] gh-105836: Fix `asyncio.run_coroutine_threadsafe` leaving underlying cancelled asyncio task running (GH-141696) (#142358)

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.14] gh-142342: Fix m68k assembler operand constraints for `%fpcr` access (gh-14234...
Miss Islington (bot) [Tue, 9 Dec 2025 14:13:31 +0000 (15:13 +0100)] 
[3.14] gh-142342: Fix m68k assembler operand constraints for `%fpcr` access (gh-142343) (#142458)

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.14] gh-142282 Fix winreg.QueryValueEx() under race condition (GH-142283) (GH-142453)
Miss Islington (bot) [Tue, 9 Dec 2025 12:33:35 +0000 (13:33 +0100)] 
[3.14] gh-142282 Fix winreg.QueryValueEx() under race condition (GH-142283) (GH-142453)

(cherry picked from commit 3ec941b364778bce4fac6c6100730e120b426849)

Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
7 weeks ago[3.14] gh-68552: fix defects policy (GH-138579) (#142366)
Miss Islington (bot) [Tue, 9 Dec 2025 07:39:01 +0000 (08:39 +0100)] 
[3.14] gh-68552: fix defects policy  (GH-138579) (#142366)

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.14] gh-133932: Tagged ints are heap-safe (free threading) (gh-142431)
Sam Gross [Mon, 8 Dec 2025 23:16:28 +0000 (18:16 -0500)] 
[3.14] gh-133932: Tagged ints are heap-safe (free threading) (gh-142431)

The previous fix (gh-134494) didn't fix the free threading build.

7 weeks ago[3.14] Fix typo in `Tools/wasm/README.md` (GH-142426) (GH-142429)
Miss Islington (bot) [Mon, 8 Dec 2025 20:54:24 +0000 (21:54 +0100)] 
[3.14] Fix typo in `Tools/wasm/README.md` (GH-142426) (GH-142429)

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.14] gh-123241: Document restrictions for `tp_traverse` implementations (gh-142272...
Miss Islington (bot) [Mon, 8 Dec 2025 17:27:57 +0000 (18:27 +0100)] 
[3.14] gh-123241: Document restrictions for `tp_traverse` implementations (gh-142272) (#142423)

(cherry picked from commit 37988c57ea244b0ed2f969e9c6039710dfe8f31d)

Co-authored-by: Sam Gross <colesbury@gmail.com>
7 weeks ago[3.14] gh-140125: Increase object recursion depth for `test_json` from 200k to 500k...
Miss Islington (bot) [Mon, 8 Dec 2025 13:31:56 +0000 (14:31 +0100)] 
[3.14] gh-140125: Increase object recursion depth for `test_json` from 200k to 500k (GH-142226) (#142416)

gh-140125: Increase object recursion depth for `test_json` from 200k to 500k (GH-142226)
(cherry picked from commit e3539e99e3642ceea2330b3f78a6e9fa8ac3da64)

Co-authored-by: Zanie Blue <contact@zanie.dev>
Co-authored-by: Victor Stinner <vstinner@python.org>
7 weeks ago[3.14] gh-141794: Reduce size of compiler stress tests to fix Android warnings (GH...
Miss Islington (bot) [Mon, 8 Dec 2025 07:58:21 +0000 (08:58 +0100)] 
[3.14] gh-141794: Reduce size of compiler stress tests to fix Android warnings (GH-142263) (#142386)

gh-141794: Reduce size of compiler stress tests to fix Android warnings (GH-142263)
(cherry picked from commit f193c8fe9e1d722c9a7f9a2b15f8f1b913755491)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
7 weeks ago[3.14] gh-142346: Fix usage formatting for mutually exclusive groups in argparse...
Miss Islington (bot) [Sun, 7 Dec 2025 20:03:05 +0000 (21:03 +0100)] 
[3.14] gh-142346: Fix usage formatting for mutually exclusive groups in argparse (GH-142381) (GH-142385)

Support groups preceded by positional arguments or followed or intermixed
with other optional arguments. Support empty groups.
(cherry picked from commit 1db9f56bff5bbb0292b131ea8a928612acb7ec16)

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

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.14] gh-142332: Fix usage formatting for positional arguments in mutually exclusive...
Miss Islington (bot) [Sat, 6 Dec 2025 18:28:54 +0000 (19:28 +0100)] 
[3.14] gh-142332: Fix usage formatting for positional arguments in mutually exclusive groups in argparse (GH-142333) (GH-142356)

(cherry picked from commit 70c27ce94b2c18f375c10e508e7d9323ae795496)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 weeks ago[3.14] GH-75949: Fix argparse dropping '|' in mutually exclusive groups on line wrap...
Miss Islington (bot) [Sat, 6 Dec 2025 15:37:34 +0000 (16:37 +0100)] 
[3.14] GH-75949: Fix argparse dropping '|' in mutually exclusive groups on line wrap (GH-142312) (#142347)

7 weeks ago[3.14] Docs: fix RFC index reference for TLS 1.3 (GH-142262) (#142340)
Miss Islington (bot) [Sat, 6 Dec 2025 14:51:08 +0000 (15:51 +0100)] 
[3.14] Docs: fix RFC index reference for TLS 1.3 (GH-142262) (#142340)

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>
8 weeks ago[3.14] Introduce `build-python` and `build-host` subcommands for `Tools/wasm/wasi...
Miss Islington (bot) [Fri, 5 Dec 2025 23:04:50 +0000 (00:04 +0100)] 
[3.14] Introduce `build-python` and `build-host` subcommands for `Tools/wasm/wasi` (GH-142266) (#142322)

Introduce `build-python` and `build-host` subcommands for `Tools/wasm/wasi` (GH-142266)

It should make it easier when you need to rebuild just the e.g. host Python, but it requires ./configure to run.
(cherry picked from commit 58e1c7a16f0926b1047c336eeed2849d5fff7c70)

Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
8 weeks agoMerge branch '3.14' of https://github.com/python/cpython into 3.14
Hugo van Kemenade [Fri, 5 Dec 2025 20:00:48 +0000 (22:00 +0200)] 
Merge branch '3.14' of https://github.com/python/cpython into 3.14

8 weeks agoPost 3.14.2
Hugo van Kemenade [Fri, 5 Dec 2025 19:59:38 +0000 (21:59 +0200)] 
Post 3.14.2

8 weeks ago[3.14] GH-142267: Cache formatter to avoid repeated `_set_color` calls (GH-142268...
Miss Islington (bot) [Fri, 5 Dec 2025 17:14:56 +0000 (18:14 +0100)] 
[3.14] GH-142267: Cache formatter to avoid repeated `_set_color` calls (GH-142268) (#142313)

GH-142267: Cache formatter to avoid repeated `_set_color` calls (GH-142268)
(cherry picked from commit 4085ff7b32f91bad7d821e5564d8565c5928f7d1)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
8 weeks agoPython 3.14.2 v3.14.2
Hugo van Kemenade [Fri, 5 Dec 2025 16:49:01 +0000 (18:49 +0200)] 
Python 3.14.2

8 weeks ago[3.14] Revert "gh-140797: Forbid capturing groups in re.Scanner lexicon patterns...
Hugo van Kemenade [Fri, 5 Dec 2025 16:45:15 +0000 (18:45 +0200)] 
[3.14] Revert "gh-140797: Forbid capturing groups in re.Scanner lexicon patterns (GH-140944) (GH-140982)" (#142309)

8 weeks ago[3.14] Add explanation comments for tests for overlapped ZIP entries (GH-137152)...
Miss Islington (bot) [Fri, 5 Dec 2025 16:35:21 +0000 (17:35 +0100)] 
[3.14] Add explanation comments for tests for overlapped ZIP entries (GH-137152) (GH-142310)

(cherry picked from commit 100c726d9895ef26d0d279ae585c0228c0d8529f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 weeks ago[3.14] gh-140482: Avoid changing terminal settings in test_pty (gh-142202) (gh-142239)
Miss Islington (bot) [Fri, 5 Dec 2025 16:18:40 +0000 (17:18 +0100)] 
[3.14] gh-140482: Avoid changing terminal settings in test_pty (gh-142202) (gh-142239)

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>
8 weeks ago[3.14] Fix disk space issues in Android CI (GH-142289) (#142292)
Miss Islington (bot) [Fri, 5 Dec 2025 15:12:16 +0000 (16:12 +0100)] 
[3.14] Fix disk space issues in Android CI (GH-142289) (#142292)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
8 weeks ago[3.14] gh-101100: Fix references to the set methods (GH-141857) (GH-142300)
Miss Islington (bot) [Fri, 5 Dec 2025 14:33:35 +0000 (15:33 +0100)] 
[3.14] gh-101100: Fix references to the set methods (GH-141857) (GH-142300)

gh-101100: Fix references to the set methods (GH-141857)
(cherry picked from commit 1d8f3ed2eba762e60a02ff87e782a5c7dcd0e77c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 weeks ago[3.14] gh-119452: Fix a potential virtual memory allocation denial of service in...
Serhiy Storchaka [Fri, 5 Dec 2025 14:20:23 +0000 (16:20 +0200)] 
[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.

8 weeks ago[3.14] gh-142206: multiprocessing.resource_tracker: Decode messages using older proto...
Petr Viktorin [Fri, 5 Dec 2025 11:47:30 +0000 (12:47 +0100)] 
[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).

Co-authored-by: Petr Viktorin <encukou@gmail.com>
8 weeks ago[3.14] gh-142214: Fix two regressions in dataclasses (GH-142223) (#142277)
Miss Islington (bot) [Fri, 5 Dec 2025 08:08:15 +0000 (09:08 +0100)] 
[3.14] gh-142214: Fix two regressions in dataclasses (GH-142223) (#142277)

gh-142214: Fix two regressions in dataclasses (GH-142223)
(cherry picked from commit 53ec7c8fc07eb6958869638a0cad70c52ad6fcf5)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
8 weeks ago[3.14] gh-116738: Statically initialize special constants in cmath module (gh-142161...
Miss Islington (bot) [Thu, 4 Dec 2025 14:51:55 +0000 (15:51 +0100)] 
[3.14] gh-116738: Statically initialize special constants in cmath module (gh-142161) (gh-142261)

The initialization during `mod_exec` wasn't thread-safe with multiple interpreters.
(cherry picked from commit 2dac9e6016c81abbefa4256253ff5c59b29378a7)

Co-authored-by: Alper <alperyoney@fb.com>
8 weeks ago[3.14] gh-129483: Make `TestLocalTimeDisambiguation`'s time format locale independent...
Miss Islington (bot) [Thu, 4 Dec 2025 14:03:36 +0000 (15:03 +0100)] 
[3.14] gh-129483: Make `TestLocalTimeDisambiguation`'s time format locale independent (GH-142193) (#142258)

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.14] gh-141004: Add a CI job ensuring that new C APIs include documentation (GH...
Peter Bierma [Thu, 4 Dec 2025 13:07:39 +0000 (08:07 -0500)] 
[3.14] gh-141004: Add a CI job ensuring that new C APIs include documentation (GH-142102) (GH-142247)

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

---------

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
8 weeks ago[3.14] gh-135676: Reword the f-string (and t-string) section (GH-137469) (GH-142227)
Miss Islington (bot) [Thu, 4 Dec 2025 10:53:12 +0000 (11:53 +0100)] 
[3.14] gh-135676: Reword the f-string (and t-string) section (GH-137469) (GH-142227)

Much of the information was duplicated in stdtypes.rst; this PR keeps
lexical/syntactical details in Lexical Analysis and the evaluation & runtime
behaviour in Standard types, with cross-references between the two.
Since the t-string section only listed differences from f-strings, and the
grammar for the two is equivalent, that section was moved to Standard types
almost entirely.
(cherry picked from commit aea5531583aaa8bfdf3ebca914e9c694617c3489)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
8 weeks ago[3.14] Being more flexible in when not to explicitly set the sysroot when compiling...
Miss Islington (bot) [Thu, 4 Dec 2025 00:16:37 +0000 (01:16 +0100)] 
[3.14] Being more flexible in when not to explicitly set the sysroot when compiling for WASI (GH-142242) (GH-142246)

Being more flexible in when not to explicitly set the sysroot when compiling for WASI (GH-142242)
(cherry picked from commit c5252045d3a7164f1829503d122091b5e469fda3)

Co-authored-by: Brett Cannon <brett@python.org>
8 weeks ago[3.14] gh-142218: Fix split table dictionary crash (gh-142229) (gh-142244)
Miss Islington (bot) [Thu, 4 Dec 2025 00:03:18 +0000 (01:03 +0100)] 
[3.14] gh-142218: Fix split table dictionary crash (gh-142229) (gh-142244)

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)

Co-authored-by: Sam Gross <colesbury@gmail.com>
8 weeks ago[3.14] gh-142145: Remove quadratic behavior in node ID cache clearing (GH-142146...
Miss Islington (bot) [Wed, 3 Dec 2025 19:09:44 +0000 (20:09 +0100)] 
[3.14] gh-142145: Remove quadratic behavior in node ID cache clearing (GH-142146) (#142209)

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.14] gh-135676: Simplify docs on lexing names (GH-140464) (GH-142015)
Stan Ulbrych [Wed, 3 Dec 2025 12:43:06 +0000 (12:43 +0000)] 
[3.14] gh-135676: Simplify docs on lexing names (GH-140464) (GH-142015)

This simplifies the Lexical Analysis section on Names (but keeps it technically correct) by putting all the info about non-ASCII characters in a separate (and very technical) section.

It uses a mental model where the parser doesn't handle Unicode complexity “immediately”, but:

- parses any non-ASCII character (outside strings/comments) as part of a name, since these can't (yet) be e.g. operators
- normalizes the name
- validates the name, using the xid_start/xid_continue sets

(cherry picked from commit 2ff8608b4da33f667960e5099a1a442197acaea4)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Micha Albert <info@micha.zone>
Co-authored-by: KeithTheEE <kmurrayis@gmail.com>
8 weeks agoPost 3.14.1
Hugo van Kemenade [Tue, 2 Dec 2025 16:16:07 +0000 (18:16 +0200)] 
Post 3.14.1

8 weeks agoPython 3.14.1 v3.14.1
Hugo van Kemenade [Tue, 2 Dec 2025 12:51:18 +0000 (14:51 +0200)] 
Python 3.14.1

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

Fix a potential virtual memory allocation denial of service in http.server (GH-119455)"

8 weeks ago[3.14] Document None for timeout argument of select.select (GH-142177) (#142182)
Petr Viktorin [Tue, 2 Dec 2025 11:45:07 +0000 (12:45 +0100)] 
[3.14] Document None for timeout argument of select.select (GH-142177) (#142182)

8 weeks ago[3.14] gh-140281: Update free threading Python HOWTO for 3.14 (gh-140566) (gh-142173)
Miss Islington (bot) [Tue, 2 Dec 2025 06:06:15 +0000 (07:06 +0100)] 
[3.14] gh-140281: Update free threading Python HOWTO for 3.14 (gh-140566) (gh-142173)

(cherry picked from commit 2dc28eb8b0956f3ebc8ec9cedcb614fb7516e120)

Co-authored-by: Krishna-web-hub <masterkiran27@gmail.com>
Co-authored-by: Sam Gross <colesbury@gmail.com>
8 weeks ago[3.14] gh-59000: Fix pdb breakpoint resolution for class methods when module not...
Miss Islington (bot) [Tue, 2 Dec 2025 05:06:26 +0000 (06:06 +0100)] 
[3.14] gh-59000: Fix pdb breakpoint resolution for class methods when module not imported (GH-141949) (#142171)

gh-59000: Fix pdb breakpoint resolution for class methods when module not imported (GH-141949)
(cherry picked from commit 5e58548ebe8f7ac8c6cb0bad775912caa4090515)

Co-authored-by: LloydZ <35182391+cocolato@users.noreply.github.com>
8 weeks ago[3.14] gh-142048: Fix quadratically increasing GC delays (gh-142051) (gh-142166)
Miss Islington (bot) [Tue, 2 Dec 2025 00:30:11 +0000 (01:30 +0100)] 
[3.14] gh-142048: Fix quadratically increasing GC delays (gh-142051) (gh-142166)

The GC for the free threaded build would get slower with each collection due
to effectively double counting objects freed by the GC.
(cherry picked from commit eb892868b31322d7cf271bc25923e14b1f67ae38)

Co-authored-by: Kevin Wang <kevmo314@gmail.com>
8 weeks ago[3.14] Revert "GH-91636: Clear weakrefs created by finalizers. (GH-136401) (#141993...
Hugo van Kemenade [Mon, 1 Dec 2025 18:34:37 +0000 (20:34 +0200)] 
[3.14] Revert "GH-91636: Clear weakrefs created by finalizers. (GH-136401) (#141993)" (#142152)

8 weeks ago[3.14] gh-119451: Fix a potential denial of service in http.client (GH-119454) (...
Miss Islington (bot) [Mon, 1 Dec 2025 18:34:09 +0000 (19:34 +0100)] 
[3.14] gh-119451: Fix a potential denial of service in http.client (GH-119454) (#142138)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 weeks ago[3.14] gh-141930: Use the regular IO stack to write .pyc files for a better error...
Miss Islington (bot) [Mon, 1 Dec 2025 16:43:50 +0000 (17:43 +0100)] 
[3.14] gh-141930: Use the regular IO stack to write .pyc files for a better error message on failure (GH-141931) (#142021)

Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
8 weeks ago[3.14] gh-141004: Document descriptor and dict proxy type objects (GH-141803) (GH142147)
Miss Islington (bot) [Mon, 1 Dec 2025 15:57:31 +0000 (16:57 +0100)] 
[3.14] gh-141004: Document descriptor and dict proxy type objects (GH-141803) (GH142147)

gh-141004: Document descriptor and dict proxy type objects (GH-141803)
(cherry picked from commit 52f9b5f580b6b85dbf08fa23103d17a60455bc20)

Co-authored-by: Yashraj <yashrajpala8@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
8 weeks ago[3.14] gh-119342: Fix a potential denial of service in plistlib (GH-119343) (GH-142143)
Miss Islington (bot) [Mon, 1 Dec 2025 15:54:58 +0000 (16:54 +0100)] 
[3.14] gh-119342: Fix a potential denial of service in plistlib (GH-119343) (GH-142143)

Reading a specially prepared small Plist file could cause OOM because file's
read(n) preallocates a bytes object for reading the specified amount of
data. Now plistlib reads large data by chunks, therefore the upper limit of
consumed memory is proportional to the size of the input file.
(cherry picked from commit 694922cf40aa3a28f898b5f5ee08b71b4922df70)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 weeks ago[3.14] gh-119452: Fix a potential virtual memory allocation denial of service in...
Serhiy Storchaka [Mon, 1 Dec 2025 12:59:09 +0000 (14:59 +0200)] 
[3.14] gh-119452: Fix a potential virtual memory allocation denial of service in http.server (GH-119455)

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,
so that the memory consumption is proportional to the amount of sent
data.

8 weeks ago[3.14] Docs: Upgrade Sphinx to 9.0 (GH-142114) (#142128)
Miss Islington (bot) [Mon, 1 Dec 2025 11:22:05 +0000 (12:22 +0100)] 
[3.14] Docs: Upgrade Sphinx to 9.0 (GH-142114) (#142128)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 months ago[3.14] gh-141473: Document not calling Popen.wait after Popen.communicate times out...
Miss Islington (bot) [Mon, 1 Dec 2025 02:55:28 +0000 (03:55 +0100)] 
[3.14] gh-141473: Document not calling Popen.wait after Popen.communicate times out. (GH-142101) (#142124)

gh-141473: Document not calling Popen.wait after Popen.communicate times out. (GH-142101)

Document not calling Popen.wait after Popen.communicate times out.

Closes GH-141473
(cherry picked from commit 3e2c55749326809a2fc76b9f2cb87a6f89037ebe)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
2 months ago[3.14] gh-142066: Fix grammar in multiprocessing Pipes and Queues (GH-142121) (#142122)
Miss Islington (bot) [Mon, 1 Dec 2025 02:19:48 +0000 (03:19 +0100)] 
[3.14] gh-142066: Fix grammar in multiprocessing Pipes and Queues (GH-142121) (#142122)

gh-142066: Fix grammar in multiprocessing Pipes and Queues (GH-142121)
(cherry picked from commit 981ce0cf3af68cd8eee41fed19969cf0f2218572)

docs: Fix grammar in multiprocessing Pipes and Queues (gh-142066)

Co-authored-by: Tadej Magajna <tmagajna@gmail.com>
2 months ago[3.14] gh-142067: Add missing default value for param in `multiprocessing.Pipe`'s...
Miss Islington (bot) [Sun, 30 Nov 2025 21:15:39 +0000 (22:15 +0100)] 
[3.14] gh-142067: Add missing default value for param in `multiprocessing.Pipe`'s doc (GH-142109) (#142120)

gh-142067: Add missing default value for param in `multiprocessing.Pipe`'s doc (GH-142109)
(cherry picked from commit 229ed3dd1f97b2f87629a240b90eddba5ded67bf)

Co-authored-by: flovent <flbven@protonmail.com>
2 months ago[3.14] gh-133146: Add the old public `get_value` method to documentation and refactor...
Hugo van Kemenade [Sun, 30 Nov 2025 21:06:56 +0000 (23:06 +0200)] 
[3.14] gh-133146: Add the old public `get_value` method to documentation and refactor code. (GH-133301) (#142110)

also uses it within the internals in a few places.
(cherry picked from commit db098a475a47b16d25c88d95dbcf0c6572c68576)

Co-authored-by: Duprat <yduprat@gmail.com>
2 months ago[3.14] Improve clarity in tutorial introduction (GH-140669) (#142112)
Miss Islington (bot) [Sun, 30 Nov 2025 12:53:05 +0000 (13:53 +0100)] 
[3.14] Improve clarity in tutorial introduction (GH-140669) (#142112)

Co-authored-by: Thierry Martos <81799048+ThierryMT@users.noreply.github.com>
2 months ago[3.14] gh-140373: Correctly emit `PY_UNWIND` event when generator is closed (GH-14076...
Miss Islington (bot) [Sun, 30 Nov 2025 12:35:14 +0000 (13:35 +0100)] 
[3.14] gh-140373: Correctly emit `PY_UNWIND` event when generator is closed (GH-140767) (#140816)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
2 months ago[3.14] gh-139741: Make `dist-pdf` docs archive build work for macOS (GH-140837) ...
Miss Islington (bot) [Sun, 30 Nov 2025 12:34:12 +0000 (13:34 +0100)] 
[3.14] gh-139741: Make `dist-pdf` docs archive build work for macOS (GH-140837) (#141229)

Co-authored-by: Naitree Zhu <Naitreey@gmail.com>
2 months ago[3.14] gh-140042: Removing unsafe call to sqlite3_shutdown (GH-141690) (#141793)
Miss Islington (bot) [Sun, 30 Nov 2025 12:32:11 +0000 (13:32 +0100)] 
[3.14] gh-140042: Removing unsafe call to sqlite3_shutdown (GH-141690) (#141793)

Co-authored-by: Prithviraj Chaudhuri <p.chaudhuri1993@gmail.com>
2 months ago[3.14] gh-136063: fix quadratic-complexity parsing in `email.message._parseparam...
Miss Islington (bot) [Sun, 30 Nov 2025 12:30:56 +0000 (13:30 +0100)] 
[3.14] gh-136063: fix quadratic-complexity parsing in `email.message._parseparam` (GH-136072) (#140827)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2 months ago[3.14] gh-132795: Add docs for `multiprocessing.Semaphore.locked` (GH-133299) (#142111)
Miss Islington (bot) [Sun, 30 Nov 2025 12:19:30 +0000 (13:19 +0100)] 
[3.14] gh-132795: Add docs for `multiprocessing.Semaphore.locked` (GH-133299) (#142111)

Co-authored-by: Duprat <yduprat@gmail.com>
2 months ago[3.14] GH-141808: Do not generate the jit stencils twice in case of PGO builds on...
Miss Islington (bot) [Sat, 29 Nov 2025 21:09:19 +0000 (22:09 +0100)] 
[3.14] GH-141808: Do not generate the jit stencils twice in case of PGO builds on Windows. (GH-142043) (#142100)

GH-141808: Do not generate the jit stencils twice in case of PGO builds on Windows. (GH-142043)

* do not build the jit stencils twice in case of PGO builds on Windows

* blurb it
(cherry picked from commit f2ca1581cab2da45880198af1c924dd40ec8a10b)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
2 months ago[3.14] Docs: Prepare for Sphinx 9 (GH-142057) (#142091)
Miss Islington (bot) [Sat, 29 Nov 2025 15:15:25 +0000 (16:15 +0100)] 
[3.14] Docs: Prepare for Sphinx 9 (GH-142057) (#142091)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 months ago[3.14] GH-121970: Remove Docutils list monkeypatch (GH-142056) (#142088)
Miss Islington (bot) [Sat, 29 Nov 2025 14:56:29 +0000 (15:56 +0100)] 
[3.14] GH-121970: Remove Docutils list monkeypatch (GH-142056) (#142088)

2 months ago[3.14] GH-91636: Clear weakrefs created by finalizers. (GH-136401) (#141993)
Miss Islington (bot) [Sat, 29 Nov 2025 07:34:36 +0000 (08:34 +0100)] 
[3.14] GH-91636: Clear weakrefs created by finalizers. (GH-136401) (#141993)

GH-91636: Clear weakrefs created by finalizers. (GH-136401)

Weakrefs to unreachable garbage that are created during running of
finalizers need to be cleared.  This avoids exposing objects that
have `tp_clear` called on them to Python-level code.
(cherry picked from commit b6b99bf7f1edab77c485faf4e23da868f3a7b68c)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
2 months ago[3.14] gh-140011: Delete importdl assertion that prevents importing embedded modules...
Itamar Oren [Sat, 29 Nov 2025 07:30:57 +0000 (23:30 -0800)] 
[3.14] gh-140011: Delete importdl assertion that prevents importing embedded modules from packages (GH-141605) (#141986)

gh-140011: Delete importdl assertion that prevents importing embedded modules from packages (GH-141605)

(cherry picked from commit 27f62eb711720c215f9798ae30728ee5a1b4d442)

2 months ago[3.14] GH-141963: Clarify argparse documentation (GH-141964) (#142076)
Miss Islington (bot) [Sat, 29 Nov 2025 07:28:50 +0000 (08:28 +0100)] 
[3.14] GH-141963: Clarify argparse documentation (GH-141964) (#142076)

GH-141963: Clarify argparse documentation (GH-141964)

Clarify argparse documentation

Tightens the phrasing for several argparse actions.
(cherry picked from commit cfcd52490d6531f3b0e8ddd4bb2b40fb6baee854)

Co-authored-by: Moshe Kaplan <mosheekaplan@gmail.com>
2 months ago[3.14] Fix multiprocessing queue test_get() (GH-142024) (#142070)
Miss Islington (bot) [Sat, 29 Nov 2025 07:25:46 +0000 (08:25 +0100)] 
[3.14] Fix multiprocessing queue test_get() (GH-142024) (#142070)

Fix multiprocessing queue test_get() (GH-142024)

* Replace sleep() with support.sleeping_retry().
* Test get_nowait() first.
* Restore previously disabled test.

Fix the failure:

FAIL: test_get (test.test_multiprocessing_spawn.test_processes.WithProcessesTestQueue.test_get)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/_test_multiprocessing.py", line 1208, in test_get
    self.assertEqual(queue_empty(queue), False)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: True != False
(cherry picked from commit 5e749d3743621be4c8bf5618ed3249e9fde9a599)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 months ago[3.14] Docs: multi-disk ZIP files -> multipart ZIP files (GH-141962) (#142074)
Miss Islington (bot) [Sat, 29 Nov 2025 07:17:39 +0000 (08:17 +0100)] 
[3.14] Docs: multi-disk ZIP files -> multipart ZIP files (GH-141962) (#142074)

Docs: multi-disk ZIP files -> multipart ZIP files (GH-141962)

* Remove some old currentlies
* multi-disk -> multipart
* Sentence case headings
(cherry picked from commit 890fe5aad55d4f28cda56834f9457ff79e9e8c60)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2 months ago[3.14] gh-141994: Warn of XXE vulnerability in documentation of SAX feature `xml...
Miss Islington (bot) [Sat, 29 Nov 2025 07:14:02 +0000 (08:14 +0100)] 
[3.14] gh-141994: Warn of XXE vulnerability in documentation of SAX feature `xml.sax.handler.feature_external_ges` (GH-141996) (#142072)

gh-141994: Warn of XXE vulnerability in documentation of SAX feature `xml.sax.handler.feature_external_ges` (GH-141996)

Doc/library/xml.sax.handler.rst: Warn of XXE with feature_external_ges

Related to commit baa9f338971c6a13433a8232db77cd45e6b87b77
(cherry picked from commit 440bcb94560937888cd9bcb28a138acc2c6a6cbc)

Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
2 months ago[3.14] gh-74389: gh-70560: subprocess.Popen.communicate() now ignores stdin.flush...
Miss Islington (bot) [Sat, 29 Nov 2025 07:03:05 +0000 (08:03 +0100)] 
[3.14] gh-74389: gh-70560: subprocess.Popen.communicate() now ignores stdin.flush error when closed (GH-142061) (#142064)

gh-74389: gh-70560: subprocess.Popen.communicate() now ignores stdin.flush error when closed (GH-142061)

gh-70560: gh-74389: subprocess.Popen.communicate() now ignores stdin.flush error when closed

with a unittest and news entry.
(cherry picked from commit 923056b2d41c4c28ad9163901053cd3824d775c5)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>