]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 months ago[3.14] gh-135437: Account For Duplicate Names in _PyCode_SetUnboundVarCounts() (gh...
Miss Islington (bot) [Fri, 13 Jun 2025 23:14:00 +0000 (01:14 +0200)] 
[3.14] gh-135437: Account For Duplicate Names in _PyCode_SetUnboundVarCounts() (gh-135493)

(cherry picked from commit 56eabea, AKA gh-135438)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
4 months ago[3.14] gh-135462: Fix quadratic complexity in processing special input in HTMLParser...
Miss Islington (bot) [Fri, 13 Jun 2025 17:23:48 +0000 (19:23 +0200)] 
[3.14] gh-135462: Fix quadratic complexity in processing special input in HTMLParser (GH-135464) (GH-135481)

End-of-file errors are now handled according to the HTML5 specs --
comments and declarations are automatically closed, tags are ignored.
(cherry picked from commit 6eb6c5dbfb528bd07d77b60fd71fd05d81d45c41)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.14] doc: Remove what was essentially duplicate wording. (GH-135431) (GH-135440)
Miss Islington (bot) [Fri, 13 Jun 2025 16:54:20 +0000 (18:54 +0200)] 
[3.14] doc: Remove what was essentially duplicate wording. (GH-135431) (GH-135440)

(cherry picked from commit f273fd77d790300506c6443baa94d027b643f603)

4 months agogh-135455: Fix version and architecture detection in PC/layout script. (GH-135461)
Miss Islington (bot) [Fri, 13 Jun 2025 16:10:29 +0000 (18:10 +0200)] 
gh-135455: Fix version and architecture detection in PC/layout script. (GH-135461)

(cherry picked from commit afc5ab6cce9d7095b99c1410a6762bc4a96504dd)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 months ago[3.14] gh-106318: Add example for `str.expandtabs()` (GH-134525) (#135476)
Miss Islington (bot) [Fri, 13 Jun 2025 15:50:16 +0000 (17:50 +0200)] 
[3.14] gh-106318: Add example for `str.expandtabs()` (GH-134525) (#135476)

Co-authored-by: Blaise Pabon <blaise@gmail.com>
4 months ago[3.14] gh-135244: improve wording of `uuid8` docs about CSPRNG (GH-135433) (#135467)
Miss Islington (bot) [Fri, 13 Jun 2025 14:11:51 +0000 (16:11 +0200)] 
[3.14] gh-135244: improve wording of `uuid8` docs about CSPRNG (GH-135433) (#135467)

gh-135244: improve wording of `uuid8` docs about CSPRNG (GH-135433)
(cherry picked from commit 394d7985da50189e123d0908e9a282f6da31ed78)

Co-authored-by: LamentXU <108666168+LamentXU123@users.noreply.github.com>
4 months ago[3.14] gh-132969: Fix error/hang when shutdown(wait=False) and task exited abnormall...
Miss Islington (bot) [Fri, 13 Jun 2025 13:49:54 +0000 (15:49 +0200)] 
[3.14] gh-132969:  Fix error/hang when shutdown(wait=False) and task exited abnormally (GH-133222) (GH-135344)

gh-132969:  Fix error/hang when shutdown(wait=False) and task exited abnormally (GH-133222)

When shutdown is called with wait=False, the executor thread keeps running
even after the ProcessPoolExecutor's state is reset. The executor then tries
to replenish the worker processes pool resulting in an error and a potential hang
when it comes across a worker that has died. Fixed the issue by having
_adjust_process_count() return without doing anything if the ProcessPoolExecutor's
state has been reset.

Added unit tests to validate two scenarios:
max_workers < num_tasks (exception)
max_workers > num_tasks (exception + hang)
(cherry picked from commit 598aa7cc98bc1b39f10ec41decddd8dd88799fe1)

Co-authored-by: Ajay Kamdar <140011370+ogbiggles@users.noreply.github.com>
4 months ago[3.14] gh-106318: Add example for `str.endswith()` (GH-134523) (#135459)
Miss Islington (bot) [Fri, 13 Jun 2025 12:14:21 +0000 (14:14 +0200)] 
[3.14] gh-106318: Add example for `str.endswith()` (GH-134523) (#135459)

gh-106318: Add example for `str.endswith()` (GH-134523)
(cherry picked from commit eed827ed091c6e55f11164046d287a76e30fbc0e)

Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.14] gh-106318: Add example for `str.encode()` (GH-134520) (#135457)
Miss Islington (bot) [Fri, 13 Jun 2025 11:46:06 +0000 (13:46 +0200)] 
[3.14] gh-106318: Add example for `str.encode()` (GH-134520) (#135457)

Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.14] Revert "gh-135410: use a critical section around `StringIO.__next__` (GH-13541...
Miss Islington (bot) [Thu, 12 Jun 2025 22:58:58 +0000 (00:58 +0200)] 
[3.14] Revert "gh-135410: use a critical section around `StringIO.__next__` (GH-135412)" (GH-135439) (gh-135449)

Revert "gh-135410: use a critical section around `StringIO.__next__` (GH-135412)" (GH-135439)

This reverts commit e6c3039cb39e68ae9af9ddcaca341c5af8f9cf23.
(cherry picked from commit 73431356d324842cac0d545018c3ad21c85bc883)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
4 months ago[3.14] gh-135429: Fix the argument mismatch in lsprof throw event (GH-135442) (#135446)
Miss Islington (bot) [Thu, 12 Jun 2025 22:13:36 +0000 (00:13 +0200)] 
[3.14] gh-135429: Fix the argument mismatch in lsprof throw event (GH-135442) (#135446)

gh-135429: Fix the argument mismatch in lsprof throw event (GH-135442)
(cherry picked from commit b03309fe5fca2eef51bf739fb13d9acef70cb964)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
4 months ago[3.14] gh-134939: Add the concurrent.interpreters Module (gh-135414)
Eric Snow [Thu, 12 Jun 2025 14:19:26 +0000 (08:19 -0600)] 
[3.14] gh-134939: Add the concurrent.interpreters Module (gh-135414)

PEP-734 has been accepted (for 3.14).

(FTR, I'm opposed to putting this under the concurrent package, but
doing so is the SC condition under which the module can land in 3.14.)

(cherry picked from commit 62143736b, AKA gh-133958)

4 months ago[3.14] gh-135410: use a critical section around `StringIO.__next__` (GH-135412) ...
Miss Islington (bot) [Thu, 12 Jun 2025 11:36:44 +0000 (13:36 +0200)] 
[3.14] gh-135410: use a critical section around `StringIO.__next__` (GH-135412) (#135425)

gh-135410: use a critical section around `StringIO.__next__` (GH-135412)
(cherry picked from commit e6c3039cb39e68ae9af9ddcaca341c5af8f9cf23)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
4 months ago[3.14] gh-128627: Fix iPad detection in wasm-gc (GH-135388) (#135419)
Miss Islington (bot) [Thu, 12 Jun 2025 04:28:47 +0000 (06:28 +0200)] 
[3.14] gh-128627: Fix iPad detection in wasm-gc (GH-135388) (#135419)

On some iPad versions, Safari reports as "macOS". Modifies the GC trampoline detection
to add a feature-based check to detect this case.
(cherry picked from commit d4471297586335d8c24db8b2c030d32c94570344)

Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
4 months ago[3.14] Fix presentation of dataclasses' `unsafe_hash` default value (GH-116532) ...
Miss Islington (bot) [Thu, 12 Jun 2025 01:36:17 +0000 (03:36 +0200)] 
[3.14] Fix presentation of dataclasses' `unsafe_hash` default value (GH-116532) (#135416)

Fix presentation of dataclasses' `unsafe_hash` default value (GH-116532)

(cherry picked from commit 71f5fafdfb2e509f59cd584d45949c6496f88d41)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 months ago[3.14] gh-133264: Correct documentation of how Py_Main and Py_RunMain handle SystemEx...
Miss Islington (bot) [Wed, 11 Jun 2025 15:29:46 +0000 (17:29 +0200)] 
[3.14] gh-133264: Correct documentation of how Py_Main and Py_RunMain handle SystemExit (GH-135337) (#135394)

gh-133264: Correct documentation of how Py_Main and Py_RunMain handle SystemExit (GH-135337)
(cherry picked from commit b706ff003c536c5bca24dfdd3a8917bffcfa3df1)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
4 months ago[3.14] gh-135321: Always raise a correct exception for BINSTRING argument > 0x7ffffff...
Miss Islington (bot) [Wed, 11 Jun 2025 11:01:15 +0000 (13:01 +0200)] 
[3.14] gh-135321: Always raise a correct exception for BINSTRING argument > 0x7fffffff in pickle (GH-135322) (GH-135382)

(cherry picked from commit 2b8b4774d29a707330d463f226630185cbd3ceff)

Co-authored-by: Justin Applegate <70449145+Legoclones@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.14] gh-133967: Do not normalize locale name 'C.UTF-8' to 'en_US.UTF-8' (GH-135347...
Miss Islington (bot) [Wed, 11 Jun 2025 09:43:20 +0000 (11:43 +0200)] 
[3.14] gh-133967: Do not normalize locale name 'C.UTF-8' to 'en_US.UTF-8' (GH-135347) (GH-135349)

(cherry picked from commit 0f866cbfefd797b4dae25962457c5579bb90dde5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.14] gh-135326: Test support of __index__ in random.getrandbits() (GH-135356) ...
Miss Islington (bot) [Wed, 11 Jun 2025 02:17:06 +0000 (04:17 +0200)] 
[3.14] gh-135326: Test support of __index__ in random.getrandbits() (GH-135356) (#135373)

gh-135326: Test support of __index__ in random.getrandbits() (GH-135356)
(cherry picked from commit 5ae669fc4e674968529cc32f7f31d14dddd76607)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.14] gh-91048: Reorder result tuple of parse_code_object (GH-134898) (#134956)
Miss Islington (bot) [Wed, 11 Jun 2025 01:33:46 +0000 (03:33 +0200)] 
[3.14] gh-91048:  Reorder result tuple of parse_code_object (GH-134898) (#134956)

* gh-91048:  Reorder result tuple of parse_code_object (GH-134898)

Reorder result tuple of parse_code_object

The standard followed by APIs like pstat.Stats is to take a file, line,
function triplet. The parse_code_object function (and callers exposing
this in Python like RemoteUnwinder.get_stack_trace) return function,
file, line triplets which requires the caller to reorder these when
using it in classes like pstat.Stats.
(cherry picked from commit 8e8786f8986353e20c1c4406c34409a6139fa073)

Co-authored-by: László Kiss Kollár <kiss.kollar.laszlo@gmail.com>
* Reorder asyncio

---------

Co-authored-by: László Kiss Kollár <kiss.kollar.laszlo@gmail.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
4 months ago[3.14] gh-130077: Properly match full soft keywords in the parser (GH-135317) (#135348)
Miss Islington (bot) [Wed, 11 Jun 2025 01:01:37 +0000 (03:01 +0200)] 
[3.14] gh-130077: Properly match full soft keywords in the parser (GH-135317) (#135348)

gh-130077: Properly match full soft keywords in the parser (GH-135317)
(cherry picked from commit ff2b5f40c2bf5c71255caac8a743c09ba0758c02)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
5 months ago[3.14] gh-128605: Add branch protections for x86_64 in asm_trampoline.S (#128606...
stratakis [Tue, 10 Jun 2025 15:41:39 +0000 (17:41 +0200)] 
[3.14] gh-128605: Add branch protections for x86_64 in asm_trampoline.S (#128606) (#135345)

Apply Intel Control-flow Technology for x86-64 on asm_trampoline.S.

Required for mitigation against return-oriented programming (ROP)
and Call or Jump Oriented Programming (COP/JOP) attacks.

Manual application is required for the assembly files.

See also: https://sourceware.org/annobin/annobin.html/Test-cf-protection.html

5 months ago[3.14] gh-118928: Amend sqlite3 execute*() deprecation notes (GH-135163) (#135342)
Miss Islington (bot) [Tue, 10 Jun 2025 11:30:19 +0000 (13:30 +0200)] 
[3.14] gh-118928: Amend sqlite3 execute*() deprecation notes (GH-135163) (#135342)

(cherry picked from commit ee7345d507884aaaa000e51858c64852ac4f6d02)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
5 months ago[3.14] Docs: fix docstring of `email.message.Message.add_header` (GH-134355) (#135339)
Miss Islington (bot) [Tue, 10 Jun 2025 11:00:25 +0000 (13:00 +0200)] 
[3.14] Docs: fix docstring of `email.message.Message.add_header` (GH-134355) (#135339)

Docs: fix docstring of `email.message.Message.add_header` (GH-134355)
(cherry picked from commit c23eec29602eb090d6f3e854e41c22c1e2c6dfc2)

Co-authored-by: Alexander Shadchin <shadchin@yandex-team.com>
5 months ago[3.14] gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Parser/pegen.c...
Miss Islington (bot) [Tue, 10 Jun 2025 00:34:49 +0000 (02:34 +0200)] 
[3.14] gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Parser/pegen.c` (GH-134048) (#135320)

gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Parser/pegen.c` (GH-134048)
(cherry picked from commit 754e7c9b5187fcad22acf7555479603f173a4a09)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
5 months ago[3.14] Fix warnings `set but not used [-Wunused-but-set-variable]` in remote_debug...
Miss Islington (bot) [Tue, 10 Jun 2025 00:29:28 +0000 (02:29 +0200)] 
[3.14] Fix warnings `set but not used [-Wunused-but-set-variable]` in remote_debug.h (GH-135290) (#135319)

Fix warnings `set but not used [-Wunused-but-set-variable]` in remote_debug.h (GH-135290)
(cherry picked from commit 49fc1f215aeb0f71445505191ccb65517b58a5aa)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
5 months ago[3.14] Fix definition of `_Py_RemoteDebug_` symbols for static linking (GH-135146...
Miss Islington (bot) [Tue, 10 Jun 2025 00:28:42 +0000 (02:28 +0200)] 
[3.14] Fix definition of `_Py_RemoteDebug_` symbols for static linking (GH-135146) (#135318)

Fix definition of `_Py_RemoteDebug_` symbols for static linking (GH-135146)
(cherry picked from commit 2e1ad6eb26871a379e5d3aa626d6fc93eba72a86)

Co-authored-by: Zanie Blue <contact@zanie.dev>
5 months ago[3.14] Heavily comment Python/perf_jit_trampoline.c to improve maintainability (GH...
Miss Islington (bot) [Mon, 9 Jun 2025 21:09:48 +0000 (23:09 +0200)] 
[3.14] Heavily comment Python/perf_jit_trampoline.c to improve maintainability (GH-134527) (#135299)

5 months ago[3.14] gh-127833: Reword and expand the Notation section (GH-134443) (GH-135301)
Miss Islington (bot) [Mon, 9 Jun 2025 13:56:24 +0000 (15:56 +0200)] 
[3.14] gh-127833: Reword and expand the Notation section (GH-134443) (GH-135301)

Prepare the docs for using the notation used in the `python.gram`
file. If we want to sync the two, the meta-syntax should be the same.

Link the Full Grammar docs here; keep only a few extras.

Also, remove the distinction between lexical and syntactic rules,
except for whitespace handling.
With f- and t-strings, the line between the two is blurry.
(cherry picked from commit 28d91d06f13ceda3df0cefacec497c370eff4802)

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: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Colin Marquardt <cmarqu42@gmail.com>
5 months ago[3.14] bpo-45210: Document that error indicator may be set in tp_dealloc (GH-28358...
Miss Islington (bot) [Mon, 9 Jun 2025 13:01:33 +0000 (15:01 +0200)] 
[3.14] bpo-45210: Document that error indicator may be set in tp_dealloc (GH-28358) (#135298)

bpo-45210: Document that error indicator may be set in tp_dealloc (GH-28358)
(cherry picked from commit 8441b263af964f353bf02d56c32a4fc547cdc330)

Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Co-authored-by: Edward Z. Yang <ezyang@mit.edu>
Co-authored-by: Victor Stinner <vstinner@python.org>
5 months ago[3.14] gh-133968: Add PyUnicodeWriter_WriteASCII() function (#133973) (#134974)
Victor Stinner [Mon, 9 Jun 2025 12:37:26 +0000 (14:37 +0200)] 
[3.14] gh-133968: Add PyUnicodeWriter_WriteASCII() function (#133973) (#134974)

gh-133968: Add PyUnicodeWriter_WriteASCII() function (#133973)

Replace most PyUnicodeWriter_WriteUTF8() calls with
PyUnicodeWriter_WriteASCII().

(cherry picked from commit f49a07b531543dd8a42d90f5b1c89c0312fbf806)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
5 months ago[3.14] GH-135287: clang-cl PGO builds on Windows fail with `could not open '/GENPROFI...
Miss Islington (bot) [Mon, 9 Jun 2025 12:18:51 +0000 (14:18 +0200)] 
[3.14] GH-135287: clang-cl PGO builds on Windows fail with `could not open '/GENPROFILE'` (GH-135289)

GH-135287: clang-cl PGO builds on Windows fail with `could not open '/GENPROFILE'` (GH-135289)
(cherry picked from commit 0045100ccbc3919e8990fa59bc413fe38d21b075)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
5 months ago[3.14] GH-135171: Fix generator expressions one last time (hopefully) (GH-135225)
Mark Shannon [Mon, 9 Jun 2025 10:04:23 +0000 (11:04 +0100)] 
[3.14] GH-135171: Fix generator expressions one last time (hopefully) (GH-135225)

* Add NULL check to FOR_ITER

* Move GET_ITER back to genexpr creation

5 months ago[3.14] Use f-strings in csv docs example (GH-135245) (#135285)
Miss Islington (bot) [Mon, 9 Jun 2025 06:37:15 +0000 (08:37 +0200)] 
[3.14] Use f-strings in csv docs example (GH-135245) (#135285)

Use f-strings in csv docs example (GH-135245)
(cherry picked from commit 2677dd017a033eaaad3b8e1e0eb5664a44e7e231)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
5 months ago[3.14] gh-135263: Fix typo in token.NAME documentation (GH-135275) (#135280)
Miss Islington (bot) [Sun, 8 Jun 2025 21:55:04 +0000 (23:55 +0200)] 
[3.14] gh-135263: Fix typo in token.NAME documentation (GH-135275) (#135280)

gh-135263: Fix typo in token.NAME documentation (GH-135275)
(cherry picked from commit 8d17a412da7e7d8412efc625d48dcb5eecea50b0)

Co-authored-by: Vladyslav Lazoryk <80263725+lazorikv@users.noreply.github.com>
5 months ago[3.14] gh-135276: Refresh `zipfile.Path` from zipp 3.23 (GH-135277) (#135278)
Miss Islington (bot) [Sun, 8 Jun 2025 20:12:25 +0000 (22:12 +0200)] 
[3.14] gh-135276: Refresh `zipfile.Path` from zipp 3.23 (GH-135277) (#135278)

* gh-135276: Refresh `zipfile.Path` from zipp 3.23 (GH-135277)

Apply changes from zipp 3.23
(cherry picked from commit 8d6eb0c26276c4013346622580072908d46d2341)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Removed features slated for Python 3.15 only.

---------

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
5 months ago[3.14] Update tutorial for new "Copy" button (GH-135007) (#135270)
Miss Islington (bot) [Sun, 8 Jun 2025 16:40:07 +0000 (18:40 +0200)] 
[3.14] Update tutorial for new "Copy" button (GH-135007) (#135270)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
5 months ago[3.14] gh-134976: document the exception type that can be raised by `s[i]` (GH-134977...
Miss Islington (bot) [Sun, 8 Jun 2025 12:37:29 +0000 (14:37 +0200)] 
[3.14] gh-134976: document the exception type that can be raised by `s[i]` (GH-134977) (#135258)

gh-134976: document the exception type that can be raised by `s[i]` (GH-134977)
(cherry picked from commit 158e5162bfaa8a49178ce2c3f2455c3e03b60157)

Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>
5 months ago[3.14] gh-135244: generate UUID random Node ID with a CSPRNG as per RFC 9562, §6...
Miss Islington (bot) [Sun, 8 Jun 2025 12:13:04 +0000 (14:13 +0200)] 
[3.14] gh-135244: generate UUID random Node ID with a CSPRNG as per RFC 9562, §6.10.3 (GH-135226) (#135255)

gh-135244: generate UUID random Node ID with a CSPRNG as per RFC 9562, §6.10.3 (GH-135226)

This aligns with the recommendations of RFC 9562, Section 6.10, paragraph 3 [1].

[1]: https://www.rfc-editor.org/rfc/rfc9562.html#section-6.10-3.

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

Co-authored-by: LamentXU <108666168+LamentXU123@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
5 months ago[3.14] gh-134151 Fix `TypeError` in `email.utils.decode_params` when sorting RFC...
Miss Islington (bot) [Sun, 8 Jun 2025 07:38:39 +0000 (09:38 +0200)] 
[3.14] gh-134151 Fix `TypeError` in `email.utils.decode_params` when sorting RFC 2231 continuations (GH-134687) (#135247)

gh-134151 Fix `TypeError` in `email.utils.decode_params` when sorting RFC 2231 continuations (GH-134687)

- Fix sorting logic in `email.utils.decode_params` to handle None values.
- Update tests for RFC 2231 continuation sorting.
(cherry picked from commit bcb6b45cb86a2f9f65b6c41f27c36059ba86a50b)

Co-authored-by: Jiucheng(Oliver) <git.jiucheng@gmail.com>
5 months ago[3.14] gh-134876: Add fallback for when process_vm_readv fails with ENOSYS (GH-134878...
Miss Islington (bot) [Sat, 7 Jun 2025 18:56:38 +0000 (20:56 +0200)] 
[3.14] gh-134876: Add fallback for when process_vm_readv fails with ENOSYS (GH-134878) (#135240)

gh-134876: Add fallback for when process_vm_readv fails with ENOSYS (GH-134878)
(cherry picked from commit ac9c3431cc5916a795c42b3e2b965233ceffe6f0)

Co-authored-by: Daniel Golding <goldingd89@gmail.com>
5 months ago[3.14] gh-134155: fix AttributeError in email._header_value_parser.get_address (GH...
Miss Islington (bot) [Fri, 6 Jun 2025 18:13:30 +0000 (20:13 +0200)] 
[3.14] gh-134155: fix AttributeError in email._header_value_parser.get_address (GH-134194) (#135191)

gh-134155: fix AttributeError in email._header_value_parser.get_address (GH-134194)

Append the defect to defects instead of to the parse tree.
(cherry picked from commit d9cad074d52fe31327429fd81e4d2eeea3dbe35b)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
5 months ago[3.14] Docs: Update `PyExc_*` tables in the c-api documentation (GH-131640) (GH-135220)
Miss Islington (bot) [Fri, 6 Jun 2025 15:57:37 +0000 (17:57 +0200)] 
[3.14] Docs: Update `PyExc_*` tables in the c-api documentation (GH-131640) (GH-135220)

Docs: Update `PyExc_*` tables in the c-api documentation (GH-131640)

Add `PyExc_BaseExceptionGroup` and `PyExc_EncodingWarning`
(cherry picked from commit f00512db20561370faad437853f6ecee0eec4856)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
5 months ago[3.14] gh-134160: Use PyModuleDef.m_free in the example module xxlimited (GH-135174...
Miss Islington (bot) [Fri, 6 Jun 2025 15:08:45 +0000 (17:08 +0200)] 
[3.14] gh-134160: Use PyModuleDef.m_free in the example module xxlimited (GH-135174) (GH-135213)

gh-134160: Use PyModuleDef.m_free in the example module xxlimited (GH-135174)
(cherry picked from commit 1adca08d658ee2d520f3193960eaf3ae2ead1cef)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
5 months ago[3.14] gh-57089: Note _layout_ in the bitfield docs (GH-134148) (GH-135216)
Miss Islington (bot) [Fri, 6 Jun 2025 14:58:48 +0000 (16:58 +0200)] 
[3.14] gh-57089: Note _layout_ in the bitfield docs (GH-134148) (GH-135216)

(cherry picked from commit b22b964a5c245e13ae0439c5efbb8984acf607ab)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Meador Inge <meadori@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
5 months ago[3.14] feat(docs): type fix - apply pep8 by using docstring instead of comment in...
Miss Islington (bot) [Fri, 6 Jun 2025 13:22:50 +0000 (15:22 +0200)] 
[3.14] feat(docs): type fix - apply pep8 by using docstring instead of comment in the doc. (GH-135181) (#135212)

feat(docs): type fix - apply pep8 by using docstring instead of comment in the doc. (GH-135181)

Giving the right example incitates the tutorial readers to do the same in the future.
(cherry picked from commit 343182853f19a42c0ba8980d3104076a8c7bcfe7)

Co-authored-by: Jean-Louis GUENEGO <jlguenego@gmail.com>
5 months ago[3.14] gh-135120: Add test.support.subTests() (GH-135121) (GH-135208)
Serhiy Storchaka [Fri, 6 Jun 2025 13:03:28 +0000 (16:03 +0300)] 
[3.14] gh-135120: Add test.support.subTests() (GH-135121) (GH-135208)

(cherry picked from commit 6ef06fad84244261c695ec337c7d2734277054db)

5 months ago[3.14] gh-134993: Add os.lstat() to os.supports_dir_fd (GH-135188) (#135205)
Miss Islington (bot) [Fri, 6 Jun 2025 12:38:59 +0000 (14:38 +0200)] 
[3.14] gh-134993: Add os.lstat() to os.supports_dir_fd (GH-135188) (#135205)

gh-134993: Add os.lstat() to os.supports_dir_fd (GH-135188)
(cherry picked from commit e004cf8fd5c006a7a1c60807a03066f4c43452e5)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 months ago[3.14] Fix versionadded directive rendering in c-api/arg.rst (GH-135199) (#135207)
Miss Islington (bot) [Fri, 6 Jun 2025 12:30:33 +0000 (14:30 +0200)] 
[3.14] Fix versionadded directive rendering in c-api/arg.rst (GH-135199) (#135207)

Fix versionadded directive rendering in c-api/arg.rst (GH-135199)
(cherry picked from commit 39859fcac5c8335ca9c1bddc5945a7d3e934aebc)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
5 months ago[3.14] gh-128605: Revert "Add branch protections for x86_64 in asm_tr…ampoline.S...
Petr Viktorin [Fri, 6 Jun 2025 11:55:26 +0000 (13:55 +0200)] 
[3.14] gh-128605: Revert "Add branch protections for x86_64 in asm_tr…ampoline.S (#128606) (#135077)" (GH-135175)

This reverts commit 899cca6dbf76bf3e06a99f60a5f996ad6ba0761f,
which broke buildbots.

5 months ago[3.14] gh-135155: Added dependencies required for compiling the _zstd module (GH...
Miss Islington (bot) [Fri, 6 Jun 2025 01:09:08 +0000 (03:09 +0200)] 
[3.14] gh-135155: Added dependencies required for compiling the _zstd module (GH-135156) (#135197)

gh-135155: Added dependencies required for compiling the _zstd module (GH-135156)
(cherry picked from commit a7d41e8aab5211f4ed7f636c41d63adcab0affba)

Co-authored-by: Weipeng Hong <hongweichen8888@sina.com>
5 months ago[3.14] gh-134889: Fix handling of a few opcodes when optimizing `LOAD_FAST` (#134958...
mpage [Thu, 5 Jun 2025 20:06:51 +0000 (13:06 -0700)] 
[3.14] gh-134889: Fix handling of a few opcodes when optimizing `LOAD_FAST` (#134958) (#135187)

We were incorrectly handling a few opcodes that leave their operands on the stack. Treat all of these conservatively; assume that they always leave operands on the stack.

(cherry picked from commit 6b77af257c25d31f1f137e477cb23e63692ddf29)

5 months ago[3.14] gh-135166: Fix exception type expected by test.test_zstd (GH-135167)
Miss Islington (bot) [Thu, 5 Jun 2025 17:41:51 +0000 (19:41 +0200)] 
[3.14] gh-135166: Fix exception type expected by test.test_zstd (GH-135167)

gh-135166: Fix exception type expected by test.test_zstd (GH-135167)
(cherry picked from commit 1b55e12766d007aea9fcd0966e29ce220b67d28e)

Co-authored-by: Weipeng Hong <hongweichen8888@sina.com>
5 months ago[3.14] gh-134938: Add set_pledged_input_size() to ZstdCompressor (GH-135010) (GH...
Miss Islington (bot) [Thu, 5 Jun 2025 14:51:11 +0000 (16:51 +0200)] 
[3.14] gh-134938: Add set_pledged_input_size() to ZstdCompressor (GH-135010) (GH-135173)

(cherry picked from commit 4b44b3409ac026e7f13054a3daa18ab7ee14d85c)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
5 months ago[3.14] gh-131884: Fix incorrect formatting in json.dumps() when using indent and...
Miss Islington (bot) [Thu, 5 Jun 2025 14:38:09 +0000 (16:38 +0200)] 
[3.14] gh-131884: Fix incorrect formatting in json.dumps() when using indent and skipkeys=True (GH-132200) (GH-135060)

(cherry picked from commit ec12559ebafca01ded22c9013de64abe535c838d)

Co-authored-by: Roei Ben Artzi <155478676+roeibenartzi@users.noreply.github.com>
5 months ago[3.14] gh-134989: Fix Py_RETURN_NONE in the limited C API (GH-135165) (#135178)
Miss Islington (bot) [Thu, 5 Jun 2025 13:35:54 +0000 (15:35 +0200)] 
[3.14] gh-134989: Fix Py_RETURN_NONE in the limited C API (GH-135165) (#135178)

gh-134989: Fix Py_RETURN_NONE in the limited C API (GH-135165)

Fix Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE macros in the
limited C API 3.11 and older:
Don't treat Py_None, Py_True and Py_False as immortal.
(cherry picked from commit 9258f3da9175134d03f2c8c7c7eed223802ad945)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 months ago[3.14] gh-135124: Change stdout errors in regrtest worker process (GH-135138) (#135168)
Miss Islington (bot) [Thu, 5 Jun 2025 09:42:38 +0000 (11:42 +0200)] 
[3.14] gh-135124: Change stdout errors in regrtest worker process (GH-135138) (#135168)

gh-135124: Change stdout errors in regrtest worker process (GH-135138)

Set sys.stdout encoder error handler to backslashreplace in regrtest
workers to avoid UnicodeEncodeError when printing a traceback
or any other non-encodable character.

Move the code from the Regrtest class to setup_process().

Call setup_process() earlier, before displaying regrtest headers.
(cherry picked from commit 3d396ab7591d544ac8bc1fb49615b4e867ca1c83)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 months ago[3.14] gh-131531: android.py enhancements to support cibuildwheel (GH-132870) (#135158)
Miss Islington (bot) [Thu, 5 Jun 2025 06:24:52 +0000 (08:24 +0200)] 
[3.14] gh-131531: android.py enhancements to support cibuildwheel (GH-132870) (#135158)

Modifies the environment handling and execution arguments of the Android management
script to support the compilation of third-party binaries, and the use of the testbed to
invoke third-party test code.
(cherry picked from commit 2e1544fd2b0cd46ba93fc51e3cdd47f4781d7499)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
5 months ago[3.14] gh-135144: Add `_remote_debugging` to the MSI (legacy) Windows installers...
Miss Islington (bot) [Wed, 4 Jun 2025 20:08:52 +0000 (22:08 +0200)] 
[3.14] gh-135144: Add `_remote_debugging` to the MSI (legacy) Windows installers. (GH-135145) (#135150)

(cherry picked from commit e598eecf4c97509acef517e94053e45db51636fb)

Co-authored-by: T. Wouters <thomas@python.org>
5 months ago[3.14] gh-129876: Update IDLE News3.txt to May 2025 (GH-135139) (#135140)
Miss Islington (bot) [Wed, 4 Jun 2025 15:52:53 +0000 (17:52 +0200)] 
[3.14] gh-129876: Update IDLE News3.txt to May 2025 (GH-135139) (#135140)

gh-129876: Update IDLE News3.txt to May 2025 (GH-135139)
(cherry picked from commit 0df15d0d4d55dcf7b7a7f4b2985bf84fd092d257)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 months ago[3.14] gh-134989: Implement PyObject_DelAttr() as a macro in the limited C API (GH...
Miss Islington (bot) [Wed, 4 Jun 2025 13:33:20 +0000 (15:33 +0200)] 
[3.14] gh-134989: Implement PyObject_DelAttr() as a macro in the limited C API (GH-135021) (#135133)

gh-134989: Implement PyObject_DelAttr() as a macro in the limited C API (GH-135021)
(cherry picked from commit c21113072cd1f0da83729f99d3576647db85d816)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 months ago[3.14] gh-126483: disable warnings filters mutation in concurrent test (GH-132694...
Miss Islington (bot) [Wed, 4 Jun 2025 13:25:47 +0000 (15:25 +0200)] 
[3.14] gh-126483: disable warnings filters mutation in concurrent test (GH-132694) (GH-135131)

The `test_ssl_in_multiple_threads` test failed because `test_check_hostname_idn()`
modified the global warnings filters via `warnings_helper.check_no_resource_warning()`.
Only check for warnings when the context aware warnings feature is enabled, which makes
the warnings filter context-local and thread-safe.
(cherry picked from commit 40c8be0008ecadb5d0dc9a017434b1133a3a6e06)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
5 months ago[3.14] gh-135074: Fix exception messages in test.support module (GH-135076) (GH-135129)
Miss Islington (bot) [Wed, 4 Jun 2025 13:25:15 +0000 (15:25 +0200)] 
[3.14] gh-135074: Fix exception messages in test.support module (GH-135076) (GH-135129)

(cherry picked from commit bc00ce941e03347dade3faa8822f19836b5bbfe4)

Co-authored-by: Daniel Hollas <daniel.hollas@bristol.ac.uk>
5 months ago[3.14] gh-135108: Fix utmp.h inclusion in posixmodule.c on NetBSD (GH-135109) (GH...
Miss Islington (bot) [Wed, 4 Jun 2025 13:16:39 +0000 (15:16 +0200)] 
[3.14] gh-135108: Fix utmp.h inclusion in posixmodule.c on NetBSD (GH-135109) (GH-135127)

(cherry picked from commit 5b3865418ceb1448bfbf15cddf52c900cd5882a3)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
5 months ago[3.14] gh-135099: Only wait on `_PyOS_SigintEvent()` in main thread (GH-135100) ...
Miss Islington (bot) [Wed, 4 Jun 2025 12:44:35 +0000 (14:44 +0200)] 
[3.14] gh-135099: Only wait on `_PyOS_SigintEvent()` in main thread (GH-135100) (GH-135116)

On Windows, the `_PyOS_SigintEvent()` event handle is used to interrupt
the main thread when Ctrl-C is pressed. Previously, we also waited on
the event from other threads, but ignored the result. However, this can
race with interpreter shutdown because the main thread closes the handle
in `_PySignal_Fini` and threads may still be running and using mutexes
during interpreter shtudown.

Only use `_PyOS_SigintEvent()` in the main thread in parking_lot.c, like
we do in other places in the CPython codebase.
(cherry picked from commit cc581f32bf5f15e9f2f89b830ec64ea25684d0cd)

Co-authored-by: Sam Gross <colesbury@gmail.com>
5 months ago[3.14] Use a more clear example for the PEP 758 what's new section (GH-135118) (...
Miss Islington (bot) [Wed, 4 Jun 2025 09:28:59 +0000 (11:28 +0200)] 
[3.14] Use a more clear example for the PEP 758 what's new section (GH-135118) (#135119)

Use a more clear example for the PEP 758 what's new section (GH-135118)
(cherry picked from commit 1f515104441898111c20aca5a7bbda1d11b15d36)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
5 months ago[3.14] gh-135101: When choosing the default simulator device, don't use `simctl ...
Miss Islington (bot) [Wed, 4 Jun 2025 00:57:45 +0000 (02:57 +0200)] 
[3.14] gh-135101: When choosing the default simulator device, don't use `simctl --set testing` (GH-135102) (#135113)

On a fresh Xcode install (including some CI provider configurations), there is
no pre-existing testing set that can be used to identify simulator models. Use
the default device set to detect available models instead. Live testing
simulators are still created in the testing set.
(cherry picked from commit dba9de731b231ca0c079205f496d1e3d178b4fd3)

Co-authored-by: Joe Rickerby <joerick@mac.com>
5 months ago[3.14] gh-127081: use `getlogin_r` if available (gh-132751) (gh-135097)
Miss Islington (bot) [Tue, 3 Jun 2025 18:41:47 +0000 (20:41 +0200)] 
[3.14] gh-127081: use `getlogin_r` if available (gh-132751) (gh-135097)

The `getlogin` function is not thread-safe: replace with `getlogin_r` where
available.
(cherry picked from commit 1ffe913c2017b44804aca18befd45689df06c069)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
5 months ago[3.14] gh-134248 test_getallocatedblocks pre-check to ignore immortalized strings...
Miss Islington (bot) [Tue, 3 Jun 2025 16:26:32 +0000 (18:26 +0200)] 
[3.14] gh-134248 test_getallocatedblocks pre-check to ignore immortalized strings (GH-134871) (#135095)

gh-134248 test_getallocatedblocks pre-check to ignore immortalized strings (GH-134871)

When sanity checking against gettotalrefcount(), we exclude the blocks for
immortalized strings since their references are not tracked/reported. This
now matches refleak.py's book-keeping using the same functions.
(cherry picked from commit 54ca55978e305ebb099d1b49633211597625bd52)

Co-authored-by: tpburns <trevorpburns@gmail.com>
5 months ago[3.14] gh-128605: Add branch protections for x86_64 in asm_trampoline.S (#128606...
stratakis [Tue, 3 Jun 2025 13:31:06 +0000 (15:31 +0200)] 
[3.14] gh-128605: Add branch protections for x86_64 in asm_trampoline.S (#128606) (#135077)

Apply Intel Control-flow Technology for x86-64 on asm_trampoline.S.

Required for mitigation against return-oriented programming (ROP)
and Call or Jump Oriented Programming (COP/JOP) attacks.

Manual application is required for the assembly files.

See also: https://sourceware.org/annobin/annobin.html/Test-cf-protection.html

5 months ago[3.14] gh-135028: Increase parser MAXSTACK for nested parenthesis (GH-135031) (#135059)
Miss Islington (bot) [Tue, 3 Jun 2025 12:23:06 +0000 (14:23 +0200)] 
[3.14] gh-135028: Increase parser MAXSTACK for nested parenthesis (GH-135031) (#135059)

gh-135028: Increase parser MAXSTACK for nested parenthesis (GH-135031)
(cherry picked from commit 6e80f11eb5eba360334b4ace105eb7d73394baf7)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 months ago[3.14] gh-135034: Normalize link targets in tarfile, add `os.path.realpath(strict...
Łukasz Langa [Tue, 3 Jun 2025 12:05:00 +0000 (14:05 +0200)] 
[3.14] gh-135034: Normalize link targets in tarfile, add `os.path.realpath(strict='allow_missing')` (gh-135037) (gh-135065)

Addresses CVEs 2024-12718, 2025-4138, 2025-4330, and 2025-4517.

(cherry picked from commit 3612d8f51741b11f36f8fb0494d79086bac9390a)

Signed-off-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-134875: Fix mimallc build error for the old compilers (gh-134994) (gh-135053)
Miss Islington (bot) [Tue, 3 Jun 2025 08:03:36 +0000 (10:03 +0200)] 
[3.14] gh-134875: Fix mimallc build error for the old compilers (gh-134994) (gh-135053)

gh-134875: Fix mimallc build error for the old compilers (gh-134994)
(cherry picked from commit b525e31b7fc50e7a498f8b9b16437cb7b9656f6f)

Co-authored-by: Donghee Na <donghee.na@python.org>
5 months ago[3.14] gh-134830: Fix reference in `Doc/extending/windows.rst` (GH-134831) (GH-135058)
Miss Islington (bot) [Tue, 3 Jun 2025 06:33:04 +0000 (08:33 +0200)] 
[3.14] gh-134830: Fix reference in `Doc/extending/windows.rst` (GH-134831) (GH-135058)

(cherry picked from commit 0ac9e17fb47075c9446b99da4dffe4cad993b97a)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
5 months ago[3.14] gh-132813: Improve error messages for incorrect types and values of csv.Dialog...
Miss Islington (bot) [Mon, 2 Jun 2025 21:01:18 +0000 (23:01 +0200)] 
[3.14] gh-132813: Improve error messages for incorrect types and values of csv.Dialog attributes (GH-133241) (GH-135050)

Make them similar to PyArg_Parse error messages, mention None as
a possible value, show a wrong type and the string length.
(cherry picked from commit df98a47a61a274eb7427c6201ddabec9ffd30b0a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-133454: Mark test_queue tests with many threads as bigmem (gh-134575) ...
Miss Islington (bot) [Mon, 2 Jun 2025 20:50:43 +0000 (22:50 +0200)] 
[3.14] gh-133454: Mark test_queue tests with many threads as bigmem (gh-134575) (GH-135046)

50 producer and 50 consumer threads need more than 5GB of memory.
(cherry picked from commit 7a79f52d83c22f5a9787e590f267325c1175d389)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-74232: Add a note about roundtrip of non-float numerics in CSV (GH-134963...
Miss Islington (bot) [Mon, 2 Jun 2025 20:43:45 +0000 (22:43 +0200)] 
[3.14] gh-74232: Add a note about roundtrip of non-float numerics in CSV (GH-134963) (GH-135048)

(cherry picked from commit e814f43f2c655b931af8ee9e1c128bd1027549fb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-134908: Protect `textiowrapper_iternext` with critical section (gh-134910...
Miss Islington (bot) [Mon, 2 Jun 2025 19:16:54 +0000 (21:16 +0200)] 
[3.14] gh-134908: Protect `textiowrapper_iternext` with critical section (gh-134910) (gh-135039)

The `textiowrapper_iternext` function called `_textiowrapper_writeflush`, but did not
use a critical section, making it racy in free-threaded builds.
(cherry picked from commit 44fb7c361cb24dcf9989a7a1cfee4f6aad5c81aa)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
5 months ago[3.14] Remove newline in Doc/c-api/lifecycle.rst for gettext builder (GH-135013)...
Miss Islington (bot) [Mon, 2 Jun 2025 18:19:54 +0000 (20:19 +0200)] 
[3.14] Remove newline in Doc/c-api/lifecycle.rst for gettext builder (GH-135013) (GH-135038)

(cherry picked from commit c7051a366996dd2213decb8677c52d1eda0fde6a)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
5 months ago[3.14] gh-130999: Avoid exiting the new REPL when there are non-string candidates...
Miss Islington (bot) [Mon, 2 Jun 2025 14:58:03 +0000 (16:58 +0200)] 
[3.14] gh-130999: Avoid exiting the new REPL when there are non-string candidates for suggestions (gh-131001) (gh-135019)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
5 months ago[3.14] gh-122153: indicate that Windows does not support `socket.{send,recv}_fds...
Bénédikt Tran [Mon, 2 Jun 2025 10:44:30 +0000 (12:44 +0200)] 
[3.14] gh-122153: indicate that Windows does not support `socket.{send,recv}_fds` (GH-134960) (#135018)

This amends commit e3b6ff19aaa318a813130ba9ad2ab0a332f27feb.
(cherry picked from commit 128195e12eb6d5b9542558453df7045dd7aa1e15)

Co-authored-by: GalaxySnail <me@glxys.nl>
5 months ago[3.14] gh-134449: fix grammar for `precision_with_grouping` in format description...
Miss Islington (bot) [Mon, 2 Jun 2025 09:51:45 +0000 (11:51 +0200)] 
[3.14] gh-134449: fix grammar for `precision_with_grouping` in format description (GH-134608) (#135015)

gh-134449: fix grammar for `precision_with_grouping` in format description (GH-134608)

This amends commit f39a07be47cd9219eaf0e538ae32ad8239c88e66.
(cherry picked from commit 7828d52680907d1661ff6993e540f7026461c390)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
5 months ago[3.14] gh-132983: Minor fixes and clean up for the _zstd module (GH-134930) (GH-134998)
Miss Islington (bot) [Sun, 1 Jun 2025 08:46:51 +0000 (10:46 +0200)] 
[3.14] gh-132983: Minor fixes and clean up for the _zstd module (GH-134930) (GH-134998)

(cherry picked from commit b5952371668089299bc8472c1adb9f8a0e69b4a2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-134696: align OpenSSL and HACL*-based hash functions constructors AC signat...
Bénédikt Tran [Sun, 1 Jun 2025 08:26:56 +0000 (10:26 +0200)] 
[3.14] gh-134696: align OpenSSL and HACL*-based hash functions constructors AC signatures (GH-134713) (#134961)

OpenSSL and HACL*-based hash functions constructors now support both `data` and `string` parameters.
Previously these constructor functions inconsistently supported sometimes `data` and sometimes `string`,
while the documentation expected `data` to be given in all cases.

(cherry picked from commit c6e63d9d351f6d952000ec3bf84b3a7607989f92)
(cherry picked from commit 379d0bc95646dfe923e7ea05fb7f1befbd85572d)

5 months ago[3.14] gh-133503: clarify `compileall -s/-p` docs (GH-134756) (#134997)
Miss Islington (bot) [Sun, 1 Jun 2025 08:24:41 +0000 (10:24 +0200)] 
[3.14] gh-133503: clarify `compileall -s/-p` docs (GH-134756) (#134997)

gh-133503: clarify `compileall -s/-p` docs (GH-134756)
(cherry picked from commit fe6f8a3619242b287a793a5b5d8645f402482c71)

Co-authored-by: Rihaan Meher <meherrihaan@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
5 months ago[3.14] gh-134970: Fix exception message in argparse module (GH-134971) (GH-134991)
Miss Islington (bot) [Sun, 1 Jun 2025 06:21:34 +0000 (08:21 +0200)] 
[3.14] gh-134970: Fix exception message in argparse module (GH-134971) (GH-134991)

Fix the "unknown action" exception in argparse.ArgumentParser.add_argument_group()
to correctly replace the action class.
(cherry picked from commit 965c48056633d3f4b41520c8cd07f0275f00fb4c)

Co-authored-by: Michał Górny <mgorny@gentoo.org>
5 months ago[3.14] gh-133489: Remove size restrictions on getrandbits() and randbytes() (GH-13365...
Miss Islington (bot) [Sun, 1 Jun 2025 03:02:38 +0000 (05:02 +0200)] 
[3.14] gh-133489: Remove size restrictions on getrandbits() and randbytes() (GH-133658) (#134964)

gh-133489: Remove size restrictions on getrandbits() and randbytes() (GH-133658)

random.getrandbits() can now generate more that 2**31 bits.
random.randbytes() can now generate more that 256 MiB.
(cherry picked from commit 68784fed78aa297f0de0d038742495709185bef5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-133891: Add missing error check to `SET_COUNT` macro in `_testinternalcapi...
Miss Islington (bot) [Sat, 31 May 2025 21:57:52 +0000 (23:57 +0200)] 
[3.14] gh-133891: Add missing error check to `SET_COUNT` macro in `_testinternalcapi.c` (GH-133892) (#134988)

gh-133891: Add missing error check to `SET_COUNT` macro in `_testinternalcapi.c` (GH-133892)
(cherry picked from commit cebae977a63f32c3c03d14c040df3cea55b8f585)

Co-authored-by: sobolevn <mail@sobolevn.me>
5 months ago[3.14] gh-134835: Remove outdated list from `howto/urllib2.rst` (GH-134844) (#134984)
Miss Islington (bot) [Sat, 31 May 2025 17:55:48 +0000 (19:55 +0200)] 
[3.14] gh-134835: Remove outdated list from `howto/urllib2.rst` (GH-134844) (#134984)

gh-134835: Remove outdated list from `howto/urllib2.rst` (GH-134844)

:teapot:
(cherry picked from commit 3704171415c1ea6ebbeb2f992758b6565f42e378)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
5 months ago[3.14] gh-134160: Improve multi-phase init note on isolation & subinterpreters (GH...
Miss Islington (bot) [Sat, 31 May 2025 17:41:07 +0000 (19:41 +0200)] 
[3.14] gh-134160: Improve multi-phase init note on isolation & subinterpreters (GH-134775) (#134932)

gh-134160: Improve multi-phase init note on isolation & subinterpreters (GH-134775)

(cherry picked from commit eb145fabbdd755f803296beba2d235fc32efe592)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
5 months ago[3.14] gh-134954: Hard-cap max file descriptors in subprocess test fd_status (GH...
Miss Islington (bot) [Sat, 31 May 2025 14:55:03 +0000 (16:55 +0200)] 
[3.14] gh-134954: Hard-cap max file descriptors in subprocess test fd_status (GH-134955) (#134980)

gh-134954: Hard-cap max file descriptors in subprocess test fd_status (GH-134955)

* Hard-cap max file descriptors in subprocess test fd_status

On some systems, `SC_OPEN_MAX` may return a very large value (i.e. 10**30), leading to the subprocess test timing out (or run forever).
Prevent this situation by applying a hard cap on how many file descriptors are checked.

* Fix typo in usage docstring

s/fd_stats/fd_status/
(cherry picked from commit f58873e4b2b7aad8e3a08a6188c6eb08d0a3001b)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
5 months ago[3.14] Improve format of `InternalDocs/exception_handling.md` (GH-134969) (#134975)
Miss Islington (bot) [Sat, 31 May 2025 12:02:20 +0000 (14:02 +0200)] 
[3.14] Improve format of `InternalDocs/exception_handling.md` (GH-134969) (#134975)

Improve format of `InternalDocs/exception_handling.md` (GH-134969)
(cherry picked from commit 5507eff19c757a908a2ff29dfe423e35595fda00)

Co-authored-by: sobolevn <mail@sobolevn.me>
5 months ago[3.14] gh-134918: Fix and improve doctest's documentation (GH-134919) (GH-134966)
Miss Islington (bot) [Sat, 31 May 2025 09:09:00 +0000 (11:09 +0200)] 
[3.14] gh-134918: Fix and improve doctest's documentation (GH-134919) (GH-134966)

(cherry picked from commit 3c66e5976669a599adfb260514c03815b1a9e4e9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] GH-106235: Clarify `parse_known_args` documentation by removing "remaining...
Miss Islington (bot) [Fri, 30 May 2025 20:24:08 +0000 (22:24 +0200)] 
[3.14] GH-106235: Clarify `parse_known_args` documentation by removing "remaining" (GH-126921) (#134913)

GH-106235: Clarify `parse_known_args` documentation by removing "remaining" (GH-126921)
(cherry picked from commit a4251411a97304ab001721c6231d86ddf4eac3f0)

Co-authored-by: Savannah Bailey <savannahostrowski@gmail.com>
5 months agogh-134923: Use /GENPROFILE and /USEPROFILE for Windows PGO builds (GH-134924)
Miss Islington (bot) [Fri, 30 May 2025 19:04:47 +0000 (21:04 +0200)] 
gh-134923: Use /GENPROFILE and /USEPROFILE for Windows PGO builds (GH-134924)

(cherry picked from commit 8865b4f95b32097099d252111669b88ec7c1eb7f)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 months ago[3.14] gh-132775: Expand the Capability of Interpreter.call() (gh-134933)
Miss Islington (bot) [Fri, 30 May 2025 18:28:35 +0000 (20:28 +0200)] 
[3.14] gh-132775: Expand the Capability of Interpreter.call() (gh-134933)

It now supports most callables, full args, and return values.

(cherry picked from commit 52deabe, AKA gh-133484)

Co-authored-by: Eric Snow ericsnowcurrently@gmail.com
5 months ago[3.14] .gitignore personal Claude Code configs (GH-134942) (#134944)
Gregory P. Smith [Fri, 30 May 2025 18:26:24 +0000 (11:26 -0700)] 
[3.14] .gitignore personal Claude Code configs (GH-134942) (#134944)

.gitignore personal Claude Code configs (GH-134942)

https://docs.anthropic.com/en/docs/claude-code/memory

backports 98a5b830d2463351800f4d76edba1a306a3e0ec9

5 months ago[3.14] gh-134733: Fix documentation for the show_empty option of ast.dump() (GH-13492...
Miss Islington (bot) [Fri, 30 May 2025 16:30:13 +0000 (18:30 +0200)] 
[3.14] gh-134733: Fix documentation for the show_empty option of ast.dump() (GH-134925) (GH-134940)

Optional None values are always omitted.
(cherry picked from commit 1a89991d2362867a9127e151376135615bc92a4c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-134718: Fix ast.dump() for empty non-default values (GH-134926) (GH-134931)
Miss Islington (bot) [Fri, 30 May 2025 15:24:59 +0000 (17:24 +0200)] 
[3.14] gh-134718: Fix ast.dump() for empty non-default values (GH-134926) (GH-134931)

(cherry picked from commit cc344e8dd0a6fdc83a032c229f9b3cf53f76a887)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-134885: zstd: Use Py_XSETREF (GH-134886) (GH-134922)
Miss Islington (bot) [Fri, 30 May 2025 10:50:42 +0000 (12:50 +0200)] 
[3.14] gh-134885: zstd: Use Py_XSETREF (GH-134886) (GH-134922)

(cherry picked from commit 45c6c48afc13f9897010e32171a3e02d0624258c)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>