]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 hours ago[3.13] gh-142724: fix error path in `_PyPegen_raise_tokenizer_init_error` (GH-142725... 3.13
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 hours 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>
12 hours 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)

12 hours 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)

14 hours 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)

14 hours 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>
15 hours 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.

16 hours 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)

26 hours 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>
26 hours 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>
32 hours 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>
38 hours 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>
2 days 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)

3 days 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>
3 days 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>
3 days 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>
3 days 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>
3 days 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>
4 days 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>
4 days 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>
4 days 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>
5 days 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>
5 days 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>
5 days 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>
5 days 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>
5 days 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>
5 days 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>
5 days 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>
6 days 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>
6 days 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>
6 days 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>
6 days 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)

6 days 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>
8 days 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>
8 days 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)

8 days 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>
9 days 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>
9 days 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>
9 days agoPost 3.13.11
Thomas Wouters [Fri, 5 Dec 2025 19:43:39 +0000 (20:43 +0100)] 
Post 3.13.11

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

9 days 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>
9 days 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>
9 days 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>
9 days 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>
9 days 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>
9 days 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.

9 days 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>
10 days 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>
10 days 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)

12 days 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

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

12 days 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>
12 days agoPython 3.13.10 v3.13.10
Thomas Wouters [Tue, 2 Dec 2025 12:49:34 +0000 (13:49 +0100)] 
Python 3.13.10

12 days 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.

12 days ago[3.13] gh-59000: Fix pdb breakpoint resolution for class methods when… (#142172)
Tian Gao [Tue, 2 Dec 2025 05:07:52 +0000 (21:07 -0800)] 
[3.13] gh-59000: Fix pdb breakpoint resolution for class methods when… (#142172)

* [3.13] 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>
13 days ago[3.13] gh-142048: Fix quadratically increasing GC delays (gh-142051) (#142167)
Sam Gross [Tue, 2 Dec 2025 00:31:36 +0000 (19:31 -0500)] 
[3.13] gh-142048: Fix quadratically increasing GC delays (gh-142051) (#142167)

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>
13 days ago[3.13] GH-138562: Remove ``sort()`` from the common sequence methods in the data...
Stan Ulbrych [Mon, 1 Dec 2025 22:29:13 +0000 (22:29 +0000)] 
[3.13] GH-138562: Remove ``sort()`` from the common sequence methods in the data model (GH-138563) (#140676)

(cherry picked from commit d0c9943869bb143df445229444224930330ac0f3)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
13 days ago[3.13] GH-101100: Remove some entries from ``nitpick_ignore`` (GH-138464) (#141827)
Hugo van Kemenade [Mon, 1 Dec 2025 22:26:32 +0000 (00:26 +0200)] 
[3.13] GH-101100: Remove some entries from ``nitpick_ignore`` (GH-138464) (#141827)

(cherry picked from commit 22cb9ba8f90bfbc0b8831365b6864f41b19d0b6e)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
13 days ago[3.13] gh-141930: Use the regular IO stack to write .pyc files for a better error...
Cody Maloney [Mon, 1 Dec 2025 22:23:07 +0000 (14:23 -0800)] 
[3.13] gh-141930: Use the regular IO stack to write .pyc files for a better error message on failure (GH-141931) (#142023)

* Use open() to write the bytecode
* Convert to unittest style asserts
* Tweak news, thanks @vstinner
* Tidy
* reword NEWS, avoid word "retried"
(cherry picked from commit 656a64b37f817cc8fe36ee17f332100482185cce)

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

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>
13 days ago[3.13] gh-119342: Fix a potential denial of service in plistlib (GH-119343) (GH-142144)
Miss Islington (bot) [Mon, 1 Dec 2025 15:50:28 +0000 (16:50 +0100)] 
[3.13] gh-119342: Fix a potential denial of service in plistlib (GH-119343) (GH-142144)

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>
13 days ago[3.13] gh-119452: Fix a potential virtual memory allocation denial of service in...
Miss Islington (bot) [Mon, 1 Dec 2025 14:22:10 +0000 (15:22 +0100)] 
[3.13] gh-119452: Fix a potential virtual memory allocation denial of service in http.server (GH-119455) (GH-142130)

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.
(cherry picked from commit 29c657a1f231c0908796e0c9ff6967e15ab20d9b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 days ago[3.13] Docs: Upgrade Sphinx to 9.0 (GH-142114) (#142129)
Miss Islington (bot) [Mon, 1 Dec 2025 11:23:13 +0000 (12:23 +0100)] 
[3.13] Docs: Upgrade Sphinx to 9.0 (GH-142114) (#142129)

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

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 weeks ago[3.13] Improve clarity in tutorial introduction (GH-140669) (#142113)
Miss Islington (bot) [Sun, 30 Nov 2025 12:53:10 +0000 (13:53 +0100)] 
[3.13] Improve clarity in tutorial introduction (GH-140669) (#142113)

Co-authored-by: Thierry Martos <81799048+ThierryMT@users.noreply.github.com>
2 weeks ago[3.13] gh-136063: fix quadratic-complexity parsing in `email.message._parseparam...
Miss Islington (bot) [Sun, 30 Nov 2025 12:34:22 +0000 (13:34 +0100)] 
[3.13] gh-136063: fix quadratic-complexity parsing in `email.message._parseparam` (GH-136072) (#140828)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2 weeks ago[3.13] gh-140042: Removing unsafe call to sqlite3_shutdown (GH-141793) (#141812)
Prithviraj Chaudhuri [Sun, 30 Nov 2025 12:33:05 +0000 (07:33 -0500)] 
[3.13] gh-140042: Removing unsafe call to sqlite3_shutdown (GH-141793) (#141812)

2 weeks ago[3.13] Docs: Prepare for Sphinx 9 (GH-142057) (#142092)
Miss Islington (bot) [Sat, 29 Nov 2025 15:52:05 +0000 (16:52 +0100)] 
[3.13] Docs: Prepare for Sphinx 9 (GH-142057) (#142092)

2 weeks ago[3.13] GH-121970: Remove Docutils list monkeypatch (GH-142056) (#142089)
Miss Islington (bot) [Sat, 29 Nov 2025 14:56:41 +0000 (15:56 +0100)] 
[3.13] GH-121970: Remove Docutils list monkeypatch (GH-142056) (#142089)

2 weeks ago[3.13] gh-74389: gh-70560: subprocess.Popen.communicate() now ignores stdin.flush...
Miss Islington (bot) [Sat, 29 Nov 2025 07:33:47 +0000 (08:33 +0100)] 
[3.13] gh-74389: gh-70560: subprocess.Popen.communicate() now ignores stdin.flush error when closed (GH-142061) (#142065)

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>
2 weeks ago[3.13] gh-140011: Delete importdl assertion that prevents importing embedded modules...
Itamar Oren [Sat, 29 Nov 2025 07:31:11 +0000 (23:31 -0800)] 
[3.13] gh-140011: Delete importdl assertion that prevents importing embedded modules from packages (GH-141605) (#141987)

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

(cherry picked from commit 27f62eb711720c215f9798ae30728ee5a1b4d442)

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

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 weeks ago[3.13] gh-87512: Fix `subprocess` using `timeout=` on Windows blocking with a large...
Miss Islington (bot) [Sat, 29 Nov 2025 07:22:46 +0000 (08:22 +0100)] 
[3.13] gh-87512: Fix `subprocess` using `timeout=` on Windows blocking with a large `input=` (GH-142058) (#142069)

gh-87512: Fix `subprocess` using `timeout=` on Windows blocking with a large `input=` (GH-142058)

On Windows, Popen._communicate() previously wrote to stdin synchronously, which could block indefinitely if the subprocess didn't consume input= quickly and the pipe buffer filled up. The timeout= parameter was only checked when joining the reader threads, not during the stdin write.

This change moves the Windows stdin writing to a background thread (similar to how stdout/stderr are read in threads), allowing the timeout to be properly enforced. If timeout expires, TimeoutExpired is raised promptly and the writer thread continues in the background. Subsequent calls to communicate() will join the existing writer thread.

Adds test_communicate_timeout_large_input to verify that TimeoutExpired is raised promptly when communicate() is called with large input and a timeout, even when the subprocess doesn't consume stdin quickly.

This test already passed on POSIX (where select() is used) but failed on Windows where the stdin write blocks without checking the timeout.
(cherry picked from commit 5b1862bdd8021b5295df95d730c2d2efa827fa88)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2 weeks ago[3.13] Fix multiprocessing queue test_get() (GH-142024) (#142071)
Miss Islington (bot) [Sat, 29 Nov 2025 07:22:27 +0000 (08:22 +0100)] 
[3.13] Fix multiprocessing queue test_get() (GH-142024) (#142071)

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 weeks ago[3.13] Docs: multi-disk ZIP files -> multipart ZIP files (GH-141962) (#142075)
Miss Islington (bot) [Sat, 29 Nov 2025 07:18:06 +0000 (08:18 +0100)] 
[3.13] Docs: multi-disk ZIP files -> multipart ZIP files (GH-141962) (#142075)

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 weeks ago[3.13] gh-141994: Warn of XXE vulnerability in documentation of SAX feature `xml...
Miss Islington (bot) [Sat, 29 Nov 2025 07:14:23 +0000 (08:14 +0100)] 
[3.13] gh-141994: Warn of XXE vulnerability in documentation of SAX feature `xml.sax.handler.feature_external_ges` (GH-141996) (#142073)

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 weeks ago[3.13] gh-141473: Fix subprocess.Popen.communicate to send input to stdin upon a...
Miss Islington (bot) [Sat, 29 Nov 2025 06:53:00 +0000 (07:53 +0100)] 
[3.13] gh-141473: Fix subprocess.Popen.communicate to send input to stdin upon a subsequent post-timeout call (GH-141477) (#142060)

* gh-141473: Fix subprocess.Popen.communicate to send input to stdin upon a subsequent post-timeout call (GH-141477)

* gh-141473: Fix subprocess.Popen.communicate to send input to stdin
* Docs: Clarify that `input` is one time only on `communicate()`
* NEWS entry
* Add a regression test.

---------
(cherry picked from commit 526d7a8bb47bd8ff58c829c30384cd70cc5d0747)

Co-authored-by: Artur Jamro <artur.jamro@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
* no assertStartsWith

---------

Co-authored-by: Artur Jamro <artur.jamro@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 weeks ago[3.13] GH-134453: Fix subprocess memoryview input handling on POSIX (GH-134949) ...
Miss Islington (bot) [Sat, 29 Nov 2025 06:49:56 +0000 (07:49 +0100)] 
[3.13] GH-134453: Fix subprocess memoryview input handling on POSIX (GH-134949) (#142063)

GH-134453: Fix subprocess memoryview input handling on POSIX (GH-134949)

Fix inconsistent subprocess.Popen.communicate() behavior between Windows
and POSIX when using memoryview objects with non-byte elements as input.

On POSIX systems, the code was incorrectly comparing bytes written against
element count instead of byte count, causing data truncation for large
inputs with non-byte element types.

Changes:
- Cast memoryview inputs to byte view when input is already a memoryview
- Fix progress tracking to use len(input_view) instead of len(self._input)
- Add comprehensive test coverage for memoryview inputs

🤖 Generated with [Claude Code](https://claude.ai/code)

* old-man-yells-at-ReST
* Update 2025-05-30-18-37-44.gh-issue-134453.kxkA-o.rst
* assertIsNone review feedback
* fix memoryview_nonbytes test to fail without our fix on main, and have a nicer error.

Thanks to Peter Bierma @ZeroIntensity for the code review.
(cherry picked from commit cc6bc4c97f7be5b401a91119ba603e6c1a07c99b)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
2 weeks ago[3.13] gh-98896: resource_tracker: use json&base64 to allow arbitrary shared memory...
Miss Islington (bot) [Fri, 28 Nov 2025 10:57:51 +0000 (11:57 +0100)] 
[3.13] gh-98896: resource_tracker: use json&base64 to allow arbitrary shared memory names (GH-138473) (GH-142014)

(cherry picked from commit 64d6bde38ffb97a6f7c7fee82ba98de81911f1b9)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Rani Pinchuk <33353578+rani-pinchuk@users.noreply.github.com>
2 weeks ago[3.13] gh-141004: Document `PyImport_Inittab` (GH-141844) (GH-142016)
Stan Ulbrych [Thu, 27 Nov 2025 19:20:58 +0000 (19:20 +0000)] 
[3.13] gh-141004: Document `PyImport_Inittab` (GH-141844) (GH-142016)

(cherry picked from commit 5f35702bb641230131c400500bb8bbacde7465b2)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.13] gh-116008: Detect freed thread state in faulthandler (#141988) (#142017)
Victor Stinner [Thu, 27 Nov 2025 16:55:31 +0000 (17:55 +0100)] 
[3.13] gh-116008: Detect freed thread state in faulthandler (#141988) (#142017)

gh-116008: Detect freed thread state in faulthandler (#141988)

Add _PyMem_IsULongFreed() function.

(cherry picked from commit d5d9e89dde9843a61b46872b1914c5b75ad05998)

2 weeks ago[3.13] gh-141909: Add `PyModuleDef_Slot` and earlier Py_mod_* constants to stable...
Petr Viktorin [Wed, 26 Nov 2025 14:34:57 +0000 (15:34 +0100)] 
[3.13] gh-141909: Add `PyModuleDef_Slot` and earlier Py_mod_* constants to stable ABI manifest (#141910) (GH-141977)

These were added to the limited API in 3.5-3.12.
Not including them in `Misc/stable_abi.toml` was a bug.

(cherry picked from commit 202fce0dbde1da32d8abc2eb59ddfce6f6a3c9fa)

2 weeks ago[3.13] gh-141004: Document missing `PyThread*` APIs (GH-141810) (GH-141955)
Miss Islington (bot) [Tue, 25 Nov 2025 18:04:42 +0000 (19:04 +0100)] 
[3.13] gh-141004: Document missing `PyThread*` APIs (GH-141810) (GH-141955)

* gh-141004: Document missing `PyThread*` APIs (GH-141810)
(cherry picked from commit a89ee4b9c2a87d9bdf105883f834cda9d943d541)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.13] gh-141004: Document `PyOS_mystr(n)icmp` (GH-141760) (#141948)
Miss Islington (bot) [Tue, 25 Nov 2025 13:51:59 +0000 (14:51 +0100)] 
[3.13] gh-141004: Document `PyOS_mystr(n)icmp` (GH-141760) (#141948)

gh-141004: Document `PyOS_mystr(n)icmp` (GH-141760)
(cherry picked from commit f445c452ea879e01b4144809a5fd8826ac98f305)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 weeks ago[3.13] gh-140911: Ensure that UserString.index() and UserString.rindex() accept UserS...
Miss Islington (bot) [Tue, 25 Nov 2025 13:50:30 +0000 (14:50 +0100)] 
[3.13] gh-140911: Ensure that UserString.index() and UserString.rindex() accept UserString as argument (GH-140945) (GH-141945)

(cherry picked from commit e6174ee9812f514b42ab6d3a1064bd6057de96c7)

Co-authored-by: Krishna Chaitanya <141550576+XChaitanyaX@users.noreply.github.com>
2 weeks ago[3.13] gh-138199: Address potential confusion re: threading (GH-138200) (GH-141929)
Alexander Nordin [Tue, 25 Nov 2025 11:52:54 +0000 (03:52 -0800)] 
[3.13] gh-138199: Address potential confusion re: threading (GH-138200) (GH-141929)

gh-138199: Address potential confusion regarding threading in the `asyncio` HOWTO (GH-138200)

(cherry picked from commit a4f422521337d3310b71bb081c195e64c2035bbb)

2 weeks ago[3.13] gh-141907: Better handle support for SHA3 for test_hashlib (GH-141908) (#141919)
Miss Islington (bot) [Tue, 25 Nov 2025 01:32:55 +0000 (02:32 +0100)] 
[3.13] gh-141907: Better handle support for SHA3 for test_hashlib (GH-141908) (#141919)

gh-141907: Better handle support for SHA3 for test_hashlib (GH-141908)

* test_hashlib: better handle support for SHA3

It's possible that the SSL library supports only SHA3 algo and doesn't
have SHAKE one.

The current test wrongly detect this and set both HASH and HASHXOF to
None expecting to have the extra SHA3 attributes present but this should
only be true for SHAKE algo.

To better handle this, move the HASH condition to a dedicated try-expect
condition and check if HASHXOF is None in the relevant code effectively
checking if SHA3 is supported by the SSL library but SHAKE algo needs to
use the sha3module one.

---------
(cherry picked from commit fee778265064c290ae1852916ff47fcc0ab4a29d)

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Co-authored-by: Christian Marangi <ansuelsmth@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 weeks ago[3.13] gh-129441: Fix some flakiness in test_instrumentation (gh-141881) (gh-141914)
Miss Islington (bot) [Mon, 24 Nov 2025 17:46:59 +0000 (18:46 +0100)] 
[3.13] gh-129441: Fix some flakiness in test_instrumentation (gh-141881) (gh-141914)

Most of the `self.assertTrue(self.called)` checks are flaky because
the worker threads may sometimes finish before the main thread calls
`self.during_threads()`.
(cherry picked from commit 71126ab19c76d8227fc3b9c7c59b957ca82af4dd)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2 weeks ago[3.13] gh-141004: Document stack effect C APIs (GH-141843) (GH-141917)
Miss Islington (bot) [Mon, 24 Nov 2025 17:26:12 +0000 (18:26 +0100)] 
[3.13] gh-141004: Document stack effect C APIs (GH-141843) (GH-141917)

gh-141004: Document stack effect C APIs (GH-141843)
(cherry picked from commit e1f1df4082e2bc6cdb46be9984124c88a7b2ff0f)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.13] GH-129805: Clean up some changes from GH-129806 (GH-133540) (#141165)
Stan Ulbrych [Mon, 24 Nov 2025 16:56:15 +0000 (16:56 +0000)] 
[3.13] GH-129805: Clean up some changes from GH-129806 (GH-133540) (#141165)

Co-authored-by: Brandt Bucher <brandt@python.org>
2 weeks ago[3.13] gh-106318: Add examples for str.join() (GH-140315) (#141905)
Miss Islington (bot) [Mon, 24 Nov 2025 14:59:30 +0000 (15:59 +0100)] 
[3.13] gh-106318: Add examples for str.join() (GH-140315) (#141905)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-106318: Add example for str.format() (GH-137018) (#141903)
Miss Islington (bot) [Mon, 24 Nov 2025 14:57:50 +0000 (15:57 +0100)] 
[3.13] gh-106318: Add example for str.format() (GH-137018) (#141903)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2 weeks ago[3.13] gh-106318: Add example for str.isalpha() (GH-137557) (#141902)
Hugo van Kemenade [Mon, 24 Nov 2025 14:29:49 +0000 (16:29 +0200)] 
[3.13] gh-106318: Add example for str.isalpha() (GH-137557) (#141902)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.13] gh-106318: Add example for str.isascii() (GH-137558) (#141899)
Miss Islington (bot) [Mon, 24 Nov 2025 14:08:14 +0000 (15:08 +0100)] 
[3.13] gh-106318: Add example for str.isascii() (GH-137558) (#141899)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2 weeks ago[3.13] gh-141004: Document `Py_ARRAY_LENGTH` (GH-141601) (GH-141896)
Miss Islington (bot) [Mon, 24 Nov 2025 13:40:39 +0000 (14:40 +0100)] 
[3.13] gh-141004: Document `Py_ARRAY_LENGTH` (GH-141601) (GH-141896)

gh-141004: Document `Py_ARRAY_LENGTH` (GH-141601)
(cherry picked from commit e0773eacb7e660b4fd6bd702b0a119e25ab3b012)

Co-authored-by: Yashraj <yashrajpala8@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 weeks ago[3.13] gh-106318: Add example for str.isdecimal() (GH-137559) (#141894)
Miss Islington (bot) [Mon, 24 Nov 2025 13:19:53 +0000 (14:19 +0100)] 
[3.13] gh-106318: Add example for str.isdecimal() (GH-137559) (#141894)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2 weeks ago[3.13] gh-135335: Simplify preload regression test using __main__ (GH-138686) (#141887)
Miss Islington (bot) [Mon, 24 Nov 2025 03:09:40 +0000 (04:09 +0100)] 
[3.13] gh-135335: Simplify preload regression test using __main__ (GH-138686) (#141887)

gh-135335: Simplify preload regression test using __main__ (GH-138686)

Simplify preload regression test using `__main__`

With the fix for gh-126631 `__main__` modules can be preloaded and the regression
test for gh-135335 can be simplified to just use a self-contained script rather
than requiring a module.

Note this assumes and implicitly tests that `__main__` is preloaded by default.
(cherry picked from commit 425f24e4fad672c211307a9f0018c8d39c4db9de)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
3 weeks ago[3.13] gh-141865: Fix translation of strings in `changes.py` extension (GH-141882...
Miss Islington (bot) [Sun, 23 Nov 2025 17:34:09 +0000 (18:34 +0100)] 
[3.13] gh-141865: Fix translation of strings in `changes.py` extension (GH-141882) (#141884)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 weeks ago[3.13] gh-120158: Fix inconsistent monitoring state when setting events too frequentl...
Sam Gross [Sun, 23 Nov 2025 15:30:37 +0000 (10:30 -0500)] 
[3.13] gh-120158: Fix inconsistent monitoring state when setting events too frequently (gh-141845) (gh-141880)

If we overflowed the global version counter (i.e., after 2*24 calls to
`_PyMonitoring_SetEvents`), we bailed out after setting global monitoring
events but before instrumenting code objects, which led to assertion errors
later on.

Also add a `time.sleep()` to `test_free_threading.test_monitoring` to avoid
overflowing the global version counter.
(cherry picked from commit e457d60daafe66534283e0f79c81517634408e57)

3 weeks ago[3.13] gh-98552: Revert (unneeded, already done elsewhere) "flush std streams in...
Miss Islington (bot) [Sun, 23 Nov 2025 10:16:25 +0000 (11:16 +0100)] 
[3.13] gh-98552: Revert (unneeded, already done elsewhere) "flush std streams in the multiprocessing forkserver before fork (GH-141849)" (GH-141871) (#141873)

gh-98552: Revert (unneeded, already done elsewhere) "flush std streams in the multiprocessing forkserver before fork (GH-141849)" (GH-141871)

Revert (unneeded, already done elsewhere) "gh-98552: flush std streams in the multiprocessing forkserver before fork (GH-141849)"

This reverts commit 58badb1711e12b6e8b5240ab96cdd01b95012de7.
(cherry picked from commit 614a28b3da1c898f29c34c14f59bf2d496dbd31d)

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