]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 months agoPost 3.14.0b2
Hugo van Kemenade [Mon, 26 May 2025 18:50:01 +0000 (21:50 +0300)] 
Post 3.14.0b2

5 months agoPython 3.14.0b2 v3.14.0b2
Hugo van Kemenade [Mon, 26 May 2025 13:26:37 +0000 (16:26 +0300)] 
Python 3.14.0b2

5 months ago[3.14] gh-91048: Correct Apple platform includes for iOS. (GH-134712) (#134714)
Miss Islington (bot) [Mon, 26 May 2025 13:10:37 +0000 (15:10 +0200)] 
[3.14] gh-91048: Correct Apple platform includes for iOS. (GH-134712) (#134714)

Correct Apple platform includes for iOS.
(cherry picked from commit 965662ee4a986605b60da470d9e7c1e9a6f922b3)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
5 months ago[3.14] gh-132710: add missing NEWS entry for GH-134697 (GH-134705) (#134707)
Miss Islington (bot) [Mon, 26 May 2025 10:46:29 +0000 (12:46 +0200)] 
[3.14] gh-132710: add missing NEWS entry for GH-134697 (GH-134705) (#134707)

gh-132710: add missing NEWS entry for GH-134697 (GH-134705)
(cherry picked from commit 9eb84d83e00070cec3cfe78f1d0c7a7a0fbef30f)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
5 months ago[3.14] gh-132710: only use stable `_uuid.generate_time_safe()` to deduce MAC address...
Bénédikt Tran [Mon, 26 May 2025 10:45:36 +0000 (12:45 +0200)] 
[3.14] gh-132710: only use stable `_uuid.generate_time_safe()` to deduce MAC address (GH-132901) (#134697)

(cherry picked from commit 3bffada46728e51f84c41ecbb0d3722595693e63)

5 months ago[3.14] gh-134559: Add versionadded for ``object.__replace__()`` (GH-134672) (#134699)
Miss Islington (bot) [Mon, 26 May 2025 10:29:51 +0000 (12:29 +0200)] 
[3.14] gh-134559: Add versionadded for ``object.__replace__()`` (GH-134672) (#134699)

gh-134559: Add versionadded for ``object.__replace__()`` (GH-134672)
(cherry picked from commit 71290a6fbe79cef3773a3af6fcf08d8bf15c8460)

Co-authored-by: tmlnv <108088921+tmlnv@users.noreply.github.com>
5 months ago[3.14] gh-134208: remove dead AC directives for `_curses.window.{chgat,getstr,instr...
Bénédikt Tran [Mon, 26 May 2025 10:09:02 +0000 (12:09 +0200)] 
[3.14] gh-134208: remove dead AC directives for `_curses.window.{chgat,getstr,instr}` (GH-134325) (#134701)

(cherry picked from commit 29e81159644cf78d958e30aaef208e22a04a8b25)

5 months ago[3.14] gh-132493: Remove __annotations__ usage in inspect._signature_is_functionlike...
Miss Islington (bot) [Mon, 26 May 2025 08:22:14 +0000 (10:22 +0200)] 
[3.14] gh-132493: Remove __annotations__ usage in inspect._signature_is_functionlike (GH-133415) (#133796)

gh-132493: Remove __annotations__ usage in inspect._signature_is_functionlike (GH-133415)

This check is potentially problematic because it could force evaluation of
annotations unnecessarily. This doesn't trigger for builtin objects (functions,
classes, or modules) with annotations, but it could trigger for third-party objects.

The check was not particularly useful anyway, because it succeeds if ``__annotations__``
is a dict or None, so the only thing this did was guard against objects that have an
``__annotations__`` attribute that is of some other type. That doesn't seem particularly
useful, so I just removed the check.
(cherry picked from commit cb6596c6aa30c8c3213c8746d5590e6e2757a6c1)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
5 months ago[3.14] gh-134152: Fix UnboundLocalError in email._header_value_parser _get_ptext_to_e...
Miss Islington (bot) [Mon, 26 May 2025 08:02:52 +0000 (10:02 +0200)] 
[3.14] gh-134152: Fix UnboundLocalError in email._header_value_parser _get_ptext_to_endchars (GH-134233) (#134678)

Co-authored-by: R. David Murray <rdmurray@bitdance.com>
5 months ago[3.14] gh-127833: lexical analysis: Improve section on Names (GH-131474) (#134423)
Miss Islington (bot) [Mon, 26 May 2025 08:00:17 +0000 (10:00 +0200)] 
[3.14] gh-127833: lexical analysis: Improve section on Names (GH-131474) (#134423)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Blaise Pabon <blaise@gmail.com>
5 months ago[3.14] gh-132876: workaround broken ldexp() on Windows 10 (GH-133135) (#134684)
Miss Islington (bot) [Mon, 26 May 2025 03:23:45 +0000 (05:23 +0200)] 
[3.14] gh-132876: workaround broken ldexp() on Windows 10 (GH-133135) (#134684)

gh-132876: workaround broken ldexp() on Windows 10 (GH-133135)

* gh-132876: workaround broken ldexp() on Windows 10

ldexp() fails to round subnormal results before Windows 11,
so hide their bug.
(cherry picked from commit cf8941c60356acdd00055e5583a2d64761c34af4)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Tim Peters <tim.peters@gmail.com>
5 months ago[3.14] gh-69605: Disable PyREPL module autocomplete fallback on regular completion...
Miss Islington (bot) [Sun, 25 May 2025 23:33:02 +0000 (01:33 +0200)] 
[3.14] gh-69605: Disable PyREPL module autocomplete fallback on regular completion (gh-134181) (gh-134680)

(cherry picked from commit 0e3bc962c6462f836751e35ef35fa837fd952550)

Co-authored-by: Loïc Simon <loic.simon@napta.io>
5 months ago[3.14] gh-91048: Refactor and optimize remote debugging module (#134652) (#134673)
Pablo Galindo Salgado [Sun, 25 May 2025 22:10:20 +0000 (23:10 +0100)] 
[3.14] gh-91048: Refactor and optimize remote debugging module (#134652) (#134673)

gh-91048: Refactor and optimize remote debugging module (#134652)

Completely refactor Modules/_remote_debugging_module.c with improved
code organization, replacing scattered reference counting and error
handling with centralized goto error paths. This cleanup improves
maintainability and reduces code duplication throughout the module while
preserving the same external API.

Implement memory page caching optimization in Python/remote_debug.h to
avoid repeated reads of the same memory regions during debugging
operations. The cache stores previously read memory pages and reuses
them for subsequent reads, significantly reducing system calls and
improving performance.

Add code object caching mechanism with a new code_object_generation
field in the interpreter state that tracks when code object caches need
invalidation. This allows efficient reuse of parsed code object metadata
and eliminates redundant processing of the same code objects across
debugging sessions.

Optimize memory operations by replacing multiple individual structure
copies with single bulk reads for the same data structures. This reduces
the number of memory operations and system calls required to gather
debugging information from the target process.

Update Makefile.pre.in to include Python/remote_debug.h in the headers
list, ensuring that changes to the remote debugging header force proper
recompilation of dependent modules and maintain build consistency across
the codebase.

Also, make the module compatible with the free threading build as an extra :)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 42b25ad4d3d6bcdc28ddfe07d2bf8831378bb0d1)

5 months ago[3.14] gh-115999: Add PyCodeObject.co_tlbc to the debug offsets (GH-134286) (#134348)
Miss Islington (bot) [Sun, 25 May 2025 21:16:10 +0000 (23:16 +0200)] 
[3.14] gh-115999: Add PyCodeObject.co_tlbc to the debug offsets (GH-134286) (#134348)

gh-115999: Add PyCodeObject.co_tlbc to the debug offsets (GH-134286)
(cherry picked from commit dd7f1130570d50461b2a0f81ab01c55b9ce93700)

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
5 months ago[3.14] Fix sphinx-lint warnings (default-role used). (GH-134647) (#134670)
Miss Islington (bot) [Sun, 25 May 2025 19:29:04 +0000 (21:29 +0200)] 
[3.14] Fix sphinx-lint warnings (default-role used). (GH-134647) (#134670)

Fix sphinx-lint warnings (default-role used). (GH-134647)
(cherry picked from commit 24a47155d2172966fab7d56f2bf9181056fba8d0)

Co-authored-by: Julien Palard <julien@palard.fr>
5 months ago[3.14] GH-130328: Fix WindowsConsoleGetEventTests after gh-133728 (gh-134660) (gh...
Miss Islington (bot) [Sun, 25 May 2025 18:43:07 +0000 (20:43 +0200)] 
[3.14] GH-130328: Fix WindowsConsoleGetEventTests after gh-133728 (gh-134660) (gh-134666)

(cherry picked from commit 1000283694136ee0538baa6c6b2eee662ee618d4)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
5 months ago[3.14] gh-133960: Improve typing.evaluate_forward_ref (GH-133961) (#134663)
Miss Islington (bot) [Sun, 25 May 2025 17:52:04 +0000 (19:52 +0200)] 
[3.14] gh-133960: Improve typing.evaluate_forward_ref (GH-133961) (#134663)

gh-133960: Improve typing.evaluate_forward_ref (GH-133961)

As explained in GH-133960, this removes most of the behavior differences with ForwardRef.evaluate.
The remaining difference is about recursive evaluation of forwardrefs; this is practically useful
in cases where an annotation refers to a type alias that itself is string-valued.

This also improves several edge cases that were previously not handled optimally. For example,
the function now takes advantage of the partial evaluation behavior of ForwardRef.evaluate() to
evaluate more ForwardRefs in the FORWARDREF format.

This also fixes GH-133959 as a side effect, because the buggy behavior in GH-133959 derives from
evaluate_forward_ref().
(cherry picked from commit 57fef27cfc2bdfc1e3a65ef8c8a760198d15b14d)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
5 months ago[3.14] annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty...
Miss Islington (bot) [Sun, 25 May 2025 17:39:44 +0000 (19:39 +0200)] 
[3.14] annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty globals (GH-134661) (#134662)

annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty globals (GH-134661)
(cherry picked from commit b51b08a0a5fedde4f74e4cc338b8b5ad9656ad50)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
5 months ago[3.14] gh-134582: Fix t-strings untokenize() roundtrip removing space between braces...
Miss Islington (bot) [Sun, 25 May 2025 16:48:19 +0000 (18:48 +0200)] 
[3.14] gh-134582: Fix t-strings untokenize() roundtrip removing space between braces (GH-134603) (#134659)

gh-134582: Fix t-strings untokenize() roundtrip removing space between braces (GH-134603)
(cherry picked from commit 52509cc94b1a18cb325dbfa7e5f830b32759a903)

Co-authored-by: Loïc Simon <loic.pano@gmail.com>
5 months ago[3.14] gh-133684: Fix get_annotations() where PEP 563 is involved (GH-133795) (#134656)
Miss Islington (bot) [Sun, 25 May 2025 16:05:19 +0000 (18:05 +0200)] 
[3.14] gh-133684: Fix get_annotations() where PEP 563 is involved (GH-133795) (#134656)

gh-133684: Fix get_annotations() where PEP 563 is involved (GH-133795)
(cherry picked from commit 3e562b394252ff75d9809b7940020a775e4df68b)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
5 months ago[3.14] gh-133778: Fix setting `__annotations__` under PEP 563 (GH-133794) (#134655)
Miss Islington (bot) [Sun, 25 May 2025 16:04:22 +0000 (18:04 +0200)] 
[3.14] gh-133778: Fix setting `__annotations__` under PEP 563 (GH-133794) (#134655)

gh-133778: Fix setting `__annotations__` under PEP 563 (GH-133794)
(cherry picked from commit 4443110c3409ecba9f0fd49495d039030cb7ed58)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
5 months ago[3.14] GH-130328: Speedup pasting in legacy console on Windows (gh-133728) (#134653)
Miss Islington (bot) [Sun, 25 May 2025 13:54:28 +0000 (15:54 +0200)] 
[3.14] GH-130328: Speedup pasting in legacy console on Windows (gh-133728) (#134653)

(cherry picked from commit 91b48868a82821c1cbfd2245212699b57d3a24c7)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
5 months ago[3.14] gh-134578: Mark more slow tests (GH-134579) (GH-134590)
Miss Islington (bot) [Sat, 24 May 2025 15:06:54 +0000 (17:06 +0200)] 
[3.14] gh-134578: Mark more slow tests (GH-134579) (GH-134590)

(cherry picked from commit 77eade39f972a4f3d8e9fec00288779f35ceee21)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-134168: fix `http.server` CLI support for IPv6 and `--directory` when servi...
Bénédikt Tran [Sat, 24 May 2025 13:34:31 +0000 (15:34 +0200)] 
[3.14] gh-134168: fix `http.server` CLI support for IPv6 and `--directory` when serving over HTTPS (GH-134169) (#134630)

[3.14] gh-134168: fix `http.server` CLI support for IPv6 and `--directory` when serving over HTTPS (GH-134169)
(cherry picked from commit 2fd09b011031f3c00c342b44e02e2817010e507c)

Co-authored-by: ggqlq <124190229+ggqlq@users.noreply.github.com>
5 months ago[3.14] gh-134595: Update HOWTO to reflect change in CIBW option (GH-134598) (#134622)
Miss Islington (bot) [Sat, 24 May 2025 07:21:34 +0000 (09:21 +0200)] 
[3.14] gh-134595: Update HOWTO to reflect change in CIBW option (GH-134598) (#134622)

Co-authored-by: Jasper Wong <111284156+3willows@users.noreply.github.com>
5 months ago[3.14] gh-80334: fix multiprocessing.freeze_support for other spawn platforms (GH...
Miss Islington (bot) [Sat, 24 May 2025 04:16:02 +0000 (06:16 +0200)] 
[3.14] gh-80334: fix multiprocessing.freeze_support for other spawn platforms (GH-134462) (#134619)

gh-80334: fix multiprocessing.freeze_support for other spawn platforms (GH-134462)

Doc/library/multiprocessing.rst: freeze_support: Change to specify spawn method instead of platform
Have multiprocessing.freeze_support() enable on spawn, not just win32.

---------
(cherry picked from commit 80284b5c5eebd0e603c38322f94a97a2853ceeba)

Co-authored-by: Eddy Mulyono <eddymul@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
5 months ago[3.14] gh-134546: ensure remote pdb script is readable (GH-134552) (#134616)
Miss Islington (bot) [Sat, 24 May 2025 03:34:17 +0000 (05:34 +0200)] 
[3.14] gh-134546: ensure remote pdb script is readable (GH-134552) (#134616)

gh-134546: ensure remote pdb script is readable (GH-134552)
(cherry picked from commit 74a9c60f3ee2195e506144c3811090f1334c996b)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
5 months ago[3.14] gh-128840: Limit the number of parts in IPv6 address parsing (GH-128841) ...
Miss Islington (bot) [Sat, 24 May 2025 03:33:35 +0000 (05:33 +0200)] 
[3.14] gh-128840: Limit the number of parts in IPv6 address parsing (GH-128841) (#134610)

gh-128840: Limit the number of parts in IPv6 address parsing (GH-128841)

GH-128840: Limit the number of parts in IPv6 address parsing
Limit length of IP address string to 39

---------
(cherry picked from commit 47f1161d3a2bec52b5b5e952150141709c247da2)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
5 months ago[3.14] gh-132983: Make _zstd C code PEP 7 compliant (GH-134605) (#134609)
Miss Islington (bot) [Sat, 24 May 2025 02:28:40 +0000 (04:28 +0200)] 
[3.14] gh-132983: Make _zstd C code PEP 7 compliant (GH-134605) (#134609)

gh-132983: Make _zstd C code PEP 7 compliant (GH-134605)

Make _zstd C code PEP 7 compliant
(cherry picked from commit 973b8f69d31b4d86c37e0b7194a209f4f2efff06)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
5 months ago[3.14] gh-132983: Slightly tweak error messages for _zstd compressor/decompressor...
Miss Islington (bot) [Fri, 23 May 2025 22:18:08 +0000 (00:18 +0200)] 
[3.14] gh-132983: Slightly tweak error messages for _zstd compressor/decompressor options dict (GH-134601) (#134602)

gh-132983: Slightly tweak error messages for _zstd compressor/decompressor options dict (GH-134601)

Slightly tweak error messages for options dict
(cherry picked from commit f478331f98930d94f7efc741f3bed4b693d5cec1)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
5 months ago[3.14] gh-134557: Revert "[3.14] gh-132775: Use _PyCode GetScriptXIData()" (gh-134600)
Eric Snow [Fri, 23 May 2025 20:11:38 +0000 (14:11 -0600)] 
[3.14] gh-134557:  Revert "[3.14] gh-132775: Use _PyCode GetScriptXIData()" (gh-134600)

This reverts commit bbf8048c0f9c, AKA gh-134515.

We are reverting due to refleaks on free-threaded builds.

5 months ago[3.14] gh-134381: Fix RuntimeError when starting not-yet started Thread after fork...
Miss Islington (bot) [Fri, 23 May 2025 19:49:13 +0000 (21:49 +0200)] 
[3.14] gh-134381: Fix RuntimeError when starting not-yet started Thread after fork (gh-134514) (gh-134596)

(cherry picked from commit 9a2346df861f26d5f8d054ad2f9c37134dee3822)

Co-authored-by: Jiucheng(Oliver) <git.jiucheng@gmail.com>
5 months ago[3.14] gh-133454: Reduce the number of threads in test_racing_getbuf_and_releasebuf...
Miss Islington (bot) [Fri, 23 May 2025 17:23:47 +0000 (19:23 +0200)] 
[3.14] gh-133454: Reduce the number of threads in test_racing_getbuf_and_releasebuf (GH-133458) (GH-134589)

The original reproducer only used 10 threads.
(cherry picked from commit fc0c9c24121c1a62b25b79062286f976699b59e9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] Further improves Advanced installation docs for PyManager (GH-134541) (GH...
Miss Islington (bot) [Fri, 23 May 2025 10:23:06 +0000 (12:23 +0200)] 
[3.14] Further improves Advanced installation docs for PyManager (GH-134541) (GH-134576)

Further improves Advanced installation docs for PyManager (GH-134541)
(cherry picked from commit 99a9ab1c64dce26c0f2dce7621b4d7f75da69856)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 months ago[3.14] gh-133885: Use locks instead of critical sections for _zstd (gh-134289) (gh...
Miss Islington (bot) [Fri, 23 May 2025 10:00:38 +0000 (12:00 +0200)] 
[3.14] gh-133885: Use locks instead of critical sections for _zstd (gh-134289) (gh-134560)

Move from using critical sections to locks for the (de)compression methods.
Since the methods allow other threads to run, we should use a lock rather
than a critical section.
(cherry picked from commit 8dbc11971974a725dc8a11c0dc65d8f6fcb4d902)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
5 months ago[3.14] gh-106318: Add example for `str.count()` (GH-134519) (#134574)
Miss Islington (bot) [Fri, 23 May 2025 09:53:16 +0000 (11:53 +0200)] 
[3.14] gh-106318: Add example for `str.count()` (GH-134519) (#134574)

Co-authored-by: Blaise Pabon <blaise@gmail.com>
5 months ago[3.14] gh-106318: Add example for `str.center()` (GH-134518) (#134571)
Miss Islington (bot) [Fri, 23 May 2025 09:51:17 +0000 (11:51 +0200)] 
[3.14] gh-106318: Add example for `str.center()` (GH-134518) (#134571)

Co-authored-by: Blaise Pabon <blaise@gmail.com>
5 months ago[3.14] gh-134451: Converted `asyncio.tools.CycleFoundException` from dataclass to...
Miss Islington (bot) [Fri, 23 May 2025 05:40:56 +0000 (07:40 +0200)] 
[3.14] gh-134451: Converted `asyncio.tools.CycleFoundException` from dataclass to a regular exception type. (GH-134513) (#134564)

gh-134451: Converted `asyncio.tools.CycleFoundException` from dataclass to a regular exception type. (GH-134513)
(cherry picked from commit f9324cb3cb4d9bb9f0aef2e48b8afa895bde4b0d)

Co-authored-by: Evgeny Demchenko <v1mpire@icloud.com>
5 months ago[3.14] gh-114177: avoid calling connection lost callbacks when loop is already closed...
Miss Islington (bot) [Fri, 23 May 2025 04:58:51 +0000 (06:58 +0200)] 
[3.14] gh-114177: avoid calling connection lost callbacks when loop is already closed in asyncio subprocess (GH-134508) (#134561)

gh-114177: avoid calling connection lost callbacks when loop is already closed in asyncio subprocess (GH-134508)
(cherry picked from commit 5804ee7b467d86131be3ff7d569443efb0d0f9fd)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 months ago[3.14] gh-128307: Update docs for asyncio.create_task, TaskGroup.create_task, asyncio...
Miss Islington (bot) [Fri, 23 May 2025 04:06:19 +0000 (06:06 +0200)] 
[3.14] gh-128307: Update docs for asyncio.create_task, TaskGroup.create_task, asyncio.create_task (GH-134202) (#134553)

gh-128307: Update docs for asyncio.create_task, TaskGroup.create_task, asyncio.create_task (GH-134202)
(cherry picked from commit a3d0306ca08d09b1417d72df62e3b9d775143031)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
5 months ago[3.14] Docs: fix link in free-threading-python.rst (GH-134548) (#134555)
Miss Islington (bot) [Fri, 23 May 2025 00:42:48 +0000 (02:42 +0200)] 
[3.14] Docs: fix link in free-threading-python.rst (GH-134548) (#134555)

5 months ago[3.14] GH-131769: fix detecting a pydebug build of the build Python when building...
Brett Cannon [Thu, 22 May 2025 22:07:21 +0000 (15:07 -0700)] 
[3.14] GH-131769: fix detecting a pydebug build of the build Python when building for WASI (GH-133219)

5 months ago[3.14] GH-130397: remove special-casing of C stack depth for WASI (GH-134469) (GH...
Miss Islington (bot) [Thu, 22 May 2025 21:42:23 +0000 (23:42 +0200)] 
[3.14] GH-130397: remove special-casing of C stack depth for WASI (GH-134469) (GH-134547)

GH-130397: remove special-casing of C stack depth for WASI (GH-134469)

Removed special-casing for WASI when setting C stack depth limits. Since WASI has its own C stack checking this isn't a security risk.

Also disabled some tests that stopped passing. They all happened to have already been disabled under Emscripten.
(cherry picked from commit ad42dc1909bdf8ec775b63fb22ed48ff42797a17)

Co-authored-by: Brett Cannon <brett@python.org>
5 months ago[3.14] Avoid `__file__` in `hashlib` example (GH-134540) (#134549)
Miss Islington (bot) [Thu, 22 May 2025 21:37:52 +0000 (23:37 +0200)] 
[3.14] Avoid `__file__` in `hashlib` example (GH-134540) (#134549)

Avoid `__file__` in `hashlib` example (GH-134540)
(cherry picked from commit 9b292ff0223dab0f999d5c1e13355552fd7cd528)

Co-authored-by: Josh Cannon <joshdcannon@gmail.com>
5 months ago[3.14] Docs: Add note to tutorial clarifying scope (GH-134534) (#134536)
Miss Islington (bot) [Thu, 22 May 2025 18:32:49 +0000 (20:32 +0200)] 
[3.14] Docs: Add note to tutorial clarifying scope (GH-134534) (#134536)

Docs: Add note to tutorial clarifying scope (GH-134534)

* Add note to tutorial

* Update formatting
(cherry picked from commit 742d5b5c5d75eae44c66a43ebfa24a4f286ea8a1)

Co-authored-by: Kattni <kattni@kattni.com>
5 months ago[3.14] gh-132775: Fix Recently Introduced Warnings (gh-134532)
Miss Islington (bot) [Thu, 22 May 2025 17:49:05 +0000 (19:49 +0200)] 
[3.14] gh-132775: Fix Recently Introduced Warnings (gh-134532)

(cherry picked from commit ac06b534eed, AKA gh-134530)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
5 months ago[3.14] gh-132775: Make _PyXI_session Opaque (gh-134522)
Miss Islington (bot) [Thu, 22 May 2025 17:12:52 +0000 (19:12 +0200)] 
[3.14] gh-132775: Make _PyXI_session Opaque (gh-134522)

This is mostly a refactor to clean things up a bit, most notably the "XI namespace" code.

Making the session opaque requires adding the following internal-only functions:

* _PyXI_NewSession()
* _PyXI_FreeSession()
* _PyXI_GetMainNamespace()

(cherry picked from commit 4a4ac3ab4d, gh-134452)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
5 months ago[3.14] gh-134322: Fix `repr(threading.RLock)` (GH-134389) (#134528)
Miss Islington (bot) [Thu, 22 May 2025 17:12:21 +0000 (19:12 +0200)] 
[3.14] gh-134322: Fix `repr(threading.RLock)` (GH-134389) (#134528)

gh-134322: Fix `repr(threading.RLock)` (GH-134389)

Fix the `__repr__` value of `threading.RLock` from `_thread` module, when just created.
(cherry picked from commit fade146cfb1616ad7b3b918bedb86756dedf79e6)

Co-authored-by: Duprat <yduprat@gmail.com>
5 months ago[3.14] gh-132775: Use _PyCode GetScriptXIData() (gh-134515)
Miss Islington (bot) [Thu, 22 May 2025 15:07:11 +0000 (17:07 +0200)] 
[3.14] gh-132775: Use _PyCode GetScriptXIData() (gh-134515)

(cherry picked from commit 09e72cf091d, AKA gh-134511)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
5 months ago[3.14] gh-133740: Fix locale.nl_langinfo(ALT_DIGITS) (GH-134468) (#134512)
Miss Islington (bot) [Thu, 22 May 2025 14:31:26 +0000 (16:31 +0200)] 
[3.14] gh-133740: Fix locale.nl_langinfo(ALT_DIGITS) (GH-134468) (#134512)

gh-133740: Fix locale.nl_langinfo(ALT_DIGITS) (GH-134468)

Set the LC_CTYPE locale to the LC_TIME locale even if
nl_langinfo(ALT_DIGITS) result is ASCII. The result is a list
separated by NUL characters and the code only checks the first list
item which can be ASCII whereas following items are non-ASCII.

Fix test__locale for the uk_UA locale on RHEL 7.
(cherry picked from commit 899c7dc283cb899fdfd79fb479b38352f48e454a)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-134323: Fix the new `threading.RLock.locked` method (GH-134368) (#134510)
Miss Islington (bot) [Thu, 22 May 2025 14:14:53 +0000 (16:14 +0200)] 
[3.14] gh-134323: Fix the new `threading.RLock.locked` method (GH-134368) (#134510)

gh-134323: Fix the new `threading.RLock.locked` method (GH-134368)
(cherry picked from commit 3effede97cc13fc0c5ab5dcde26cc319f388e84c)

Co-authored-by: Duprat <yduprat@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 months ago[3.14] gh-134370: Added clarification on instance annotations (GH-134387) (#134509)
Miss Islington (bot) [Thu, 22 May 2025 13:52:37 +0000 (15:52 +0200)] 
[3.14] gh-134370: Added clarification on instance annotations (GH-134387) (#134509)

gh-134370: Added clarification on instance annotations (GH-134387)

Instances of classes cannot have annotations,
however sometimes they will erroneously have the
__annotations__ attribute
(cherry picked from commit bd4046f4f869039a1a2ebe2d1d18bfbc2a2951b6)

Co-authored-by: Alex Kautz <alex@takemobi.com>
5 months ago[3.14] gh-132775: Use _PyObject_GetXIData (With Fallback) (gh-134507)
Miss Islington (bot) [Thu, 22 May 2025 13:21:05 +0000 (15:21 +0200)] 
[3.14] gh-132775: Use _PyObject_GetXIData (With Fallback) (gh-134507)

This change includes some semi-related refactoring of queues and channels.

(cherry picked from commit d0eedfa10e, gh-134440)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
5 months ago[3.14] gh-134455: Fix `build-details.json` to use the ``c_api.headers`` key (GH-13445...
Miss Islington (bot) [Thu, 22 May 2025 12:26:26 +0000 (14:26 +0200)] 
[3.14] gh-134455: Fix `build-details.json` to use the ``c_api.headers`` key (GH-134456) (#134504)

Co-authored-by: Michał Górny <mgorny@gentoo.org>
Co-authored-by: Filipe Laíns 🇵🇸 <lains@riseup.net>
5 months ago[3.14] gh-71339: Use new assertion methods in tests (GH-129046) (GH-134498)
Miss Islington (bot) [Thu, 22 May 2025 10:42:50 +0000 (12:42 +0200)] 
[3.14] gh-71339: Use new assertion methods in tests (GH-129046) (GH-134498)

(cherry picked from commit 2602d8ae981c4bae1cada2c174b367d97f712efb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] Consistent sentence case in docs template files (GH-134412) (#134495)
Miss Islington (bot) [Thu, 22 May 2025 09:57:42 +0000 (11:57 +0200)] 
[3.14] Consistent sentence case in docs template files (GH-134412) (#134495)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
5 months ago[3.14] gh-131357: Add some extra tests for empty bytes and bytearray (GH-134458)...
Miss Islington (bot) [Thu, 22 May 2025 08:34:46 +0000 (10:34 +0200)] 
[3.14] gh-131357: Add some extra tests for empty bytes and bytearray (GH-134458) (#134489)

gh-131357: Add some extra tests for empty bytes and bytearray (GH-134458)
(cherry picked from commit 7309eb60c077836b4b05a86ed23c710dbff737ec)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
5 months ago[3.14] Add notes on nogil & reinitialization to the Opt-Out section in Module Isolati...
Miss Islington (bot) [Thu, 22 May 2025 08:20:11 +0000 (10:20 +0200)] 
[3.14] Add notes on nogil & reinitialization to the Opt-Out section in Module Isolation HOWTO (GH-134141) (GH-134492)

Add notes on nogil & reinitialization to the Opt-Out section in Module Isolation HOWTO (GH-134141)
(cherry picked from commit 1f0a294e8c2ff009c6b74ca5aa71da6269aec0dd)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Sam Gross <colesbury@gmail.com>
5 months ago[3.14] gh-134309: Add ``github.actor`` to the GitHub Actions concurrency key (GH...
Miss Islington (bot) [Thu, 22 May 2025 04:15:06 +0000 (06:15 +0200)] 
[3.14] gh-134309: Add ``github.actor`` to the GitHub Actions concurrency key (GH-134310) (#134484)

gh-134309: Add ``github.actor`` to the GitHub Actions concurrency key (GH-134310)

When inexperienced users create a PR from their default branch, all of the concurrency keys
collide as there is no namespacing. This becomes an issue at events with many new contributors,
where workflow runs are cancelled on other pull requests.
Disambiguate by adding the username of the relevant 'actor' to the concurrency key.
(cherry picked from commit 979d81a17905e922d32fb1671f9ed394e0ffbda6)

Authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Kira <coldcaption@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Sviatoslav Sydorenko <sviat@redhat.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
5 months ago[3.14] gh-134062: Fix hash collisions in IPv4Network and IPv6Network (GH-134063)...
Miss Islington (bot) [Thu, 22 May 2025 03:14:10 +0000 (05:14 +0200)] 
[3.14] gh-134062: Fix hash collisions in IPv4Network and IPv6Network (GH-134063) (#134476)

gh-134062: Fix hash collisions in IPv4Network and IPv6Network (GH-134063)
(cherry picked from commit f3fc0c16e08b317cb201cf1073e934e6909f1251)

gh-134062: Fix hash collisions in IPv4Network and IPv6Network
gh-134062: Add hash collision regression test

Co-authored-by: Mike Salvatore <mike.s.salvatore@gmail.com>
5 months ago[3.14] gh-127960 Fix the REPL to set the correct namespace by setting the correct...
Miss Islington (bot) [Thu, 22 May 2025 01:33:35 +0000 (03:33 +0200)] 
[3.14] gh-127960 Fix the REPL to set the correct namespace by setting the correct `__main__` module (gh-134275) (gh-134473)

The `__main__` module imported in the `_pyrepl` module points to the `_pyrepl` module itself when the interpreter was launched without `-m` option and didn't execute a module,
while it's an unexpected behavior that `__main__` can be `_pyrepl` and relative imports such as `from . import *` works based on the `_pyrepl` module.
(cherry picked from commit b1b8962443e7d418601658a4b05347a5a9161910)

Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
5 months ago[3.14] gh-132775: Use _PyFunction_VerifyStateless() and _PyCode_VerifyStateless(...
Miss Islington (bot) [Wed, 21 May 2025 20:43:29 +0000 (22:43 +0200)] 
[3.14] gh-132775: Use _PyFunction_VerifyStateless() and _PyCode_VerifyStateless() (gh-134465)

(cherry picked from commit a66bae8bb, AKA gh-134439)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
5 months ago[3.14] gh-132983: Fix refleak in zstd dictionary functions (gh-134463)
Miss Islington (bot) [Wed, 21 May 2025 19:35:31 +0000 (21:35 +0200)] 
[3.14] gh-132983: Fix refleak in zstd dictionary functions (gh-134463)

(cherry picked from commit fb68776591485, AKA gh-134459)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
5 months ago[3.14] gh-132124: improve safety nets for creating AF_UNIX socket files (GH-134085...
Miss Islington (bot) [Wed, 21 May 2025 17:36:32 +0000 (19:36 +0200)] 
[3.14] gh-132124: improve safety nets for creating AF_UNIX socket files (GH-134085) (#134447)

gh-132124: improve safety nets for creating AF_UNIX socket files (GH-134085)

* ensure that we can create AF_UNIX socket files
* emit a warning if system-wide temporary directory is used
(cherry picked from commit 1a07a01014bde23acd2684916ef38dc0cd73c2de)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
5 months ago[3.14] gh-80050: Update BufferedReader.read docs around non-blocking (GH-130653)...
Miss Islington (bot) [Wed, 21 May 2025 16:50:02 +0000 (18:50 +0200)] 
[3.14] gh-80050: Update BufferedReader.read docs around non-blocking (GH-130653) (#134444)

gh-80050: Update BufferedReader.read docs around non-blocking (GH-130653)
(cherry picked from commit e1f891414b2329414a6160ed246f5f869a218bfd)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
5 months ago[3.14] gh-134026: Fix grammar description of for statement (GH-134034) (GH-134424)
Miss Islington (bot) [Wed, 21 May 2025 16:43:07 +0000 (18:43 +0200)] 
[3.14] gh-134026: Fix grammar description of for statement (GH-134034) (GH-134424)

gh-134026: Fix grammar description of for statement (GH-134034)
(cherry picked from commit 4eacf3883dd041c31133ea407204b797a17559b1)

Co-authored-by: Yash Vijay <yash_vijay@outlook.com>
5 months ago[3.14] gh-132983: Refactor shared code in train_dict and finalize_dict (GH-134432...
Miss Islington (bot) [Wed, 21 May 2025 16:19:25 +0000 (18:19 +0200)] 
[3.14] gh-132983: Refactor shared code in train_dict and finalize_dict (GH-134432) (#134442)

gh-132983: Refactor shared code in train_dict and finalize_dict (GH-134432)

Refactor shared code in train_dict and finalize_dict
(cherry picked from commit c64a21454b3c139af9e88941a286885fc4828a7e)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
5 months ago[3.14] gh-62184: Remove _pyio import of _io.FileIO (gh-134192) (gh-134437)
Miss Islington (bot) [Wed, 21 May 2025 15:57:58 +0000 (17:57 +0200)] 
[3.14] gh-62184: Remove _pyio import of _io.FileIO (gh-134192) (gh-134437)

This was added in the add of `_io`, isn't used since bpo-21859 when a
`_pyio` implementation was added which defines `FileIO` lower down in
the file.
(cherry picked from commit 0a68068bd2a5bff98998067a141b17af5be9b750)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
5 months ago[3.14] gh-133982: Run unclosed file test on all io implementations (gh-134165) (gh...
Miss Islington (bot) [Wed, 21 May 2025 15:22:44 +0000 (17:22 +0200)] 
[3.14] gh-133982: Run unclosed file test on all io implementations (gh-134165) (gh-134433)

Update `test_io` `_check_warn_on_dealloc` to use `self.` to dispatch to
different I/O implementations.

Update the `_pyio` implementation to match expected behavior, using the
same `_dealloc_warn` design as the C implementation uses to report the
topmost `__del__` object.

The FileIO one now matches all the others, so can use IOBase. There was
a missing check on closing (self._fd must be valid), add that check
(cherry picked from commit 5b0e82752120a5dc66ce6ee778751d71ba2c33b2)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
5 months ago[3.14] gh-71253: Match _io exception in _pyio (gh-133985) (gh-134430)
Miss Islington (bot) [Wed, 21 May 2025 15:13:43 +0000 (17:13 +0200)] 
[3.14] gh-71253: Match _io exception in _pyio (gh-133985) (gh-134430)

Test was only testing _io, expanded to cover _pyio.

(cherry picked from commit 06eaf4055c1d7359e129efb65b94f34d2ec51a57)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
5 months ago[3.14] gh-133982: Update test_bufio to use self.open (gh-133983) (gh-134428)
Miss Islington (bot) [Wed, 21 May 2025 15:13:13 +0000 (17:13 +0200)] 
[3.14] gh-133982: Update test_bufio to use self.open (gh-133983) (gh-134428)

(cherry picked from commit 84d5f8d799dbbf86248375b6edbbcf4a022788c4)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
5 months ago[3.14] gh-132775: Support Fallbacks in _PyObject_GetXIData() (gh-134418)
Miss Islington (bot) [Wed, 21 May 2025 14:47:56 +0000 (16:47 +0200)] 
[3.14] gh-132775: Support Fallbacks in _PyObject_GetXIData() (gh-134418)

It now supports a "full" fallback to _PyFunction_GetXIData() and then `_PyPickle_GetXIData()`.
There's also room for other fallback modes if that later makes sense.

(cherry picked from commit 88f8102a8f, AKA gh-133482)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
5 months ago[3.14] gh-132246: Add special buffer methods to C API Type Object docs (gh-132247...
Miss Islington (bot) [Wed, 21 May 2025 14:33:35 +0000 (16:33 +0200)] 
[3.14] gh-132246: Add special buffer methods to C API Type Object docs (gh-132247) (gh-134426)

Two special methods, __buffer__ and __release_buffer__ were added to
Python 3.12 by PEP 688. The C API Type Object documentation for slots
includes `tp_as_buffer`, and sub-slots `bf_getbuffer`, `bf_releasebuffer`
but does not refer to the Python Data Model version of those. Add the
missing references.

(cherry picked from commit b529b60fc239d19245e5fafd0514d90097c2eb40)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
5 months ago[3.14] gh-90871: fix connection backlog offset in asyncio (gh-134392) (gh-134421)
Miss Islington (bot) [Wed, 21 May 2025 14:27:13 +0000 (16:27 +0200)] 
[3.14] gh-90871: fix connection backlog offset in asyncio (gh-134392) (gh-134421)

(cherry picked from commit 109f7597d29f0b504e9b42cb398b44177157abaa)

Co-authored-by: Christian Harries <68507104+ChristianHrs@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 months ago[3.14] gh-132983: Add documentation for compression.zstd (GH-133911) (#134425)
Miss Islington (bot) [Wed, 21 May 2025 14:24:23 +0000 (16:24 +0200)] 
[3.14] gh-132983: Add documentation for compression.zstd (GH-133911) (#134425)

gh-132983: Add documentation for compression.zstd (GH-133911)

Add documentation for compression & compression.zstd.

🎉

---------
(cherry picked from commit d862b6de1bcff01229318d7138ddaab755723a43)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
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: Sumana Harihareswara <sh@changeset.nyc>
Co-authored-by: Martin Panter <vadmium@users.noreply.github.com>
5 months ago[3.14] gh-110631: Fix some incorrect indents in the documentation (GH-129312) (#134419)
Miss Islington (bot) [Wed, 21 May 2025 13:58:09 +0000 (15:58 +0200)] 
[3.14] gh-110631: Fix some incorrect indents in the documentation (GH-129312) (#134419)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
5 months ago[3.14] Fix signature of `_curses.assume_default_colors` in the docs (GH-134409) ...
Miss Islington (bot) [Wed, 21 May 2025 13:08:20 +0000 (15:08 +0200)] 
[3.14] Fix signature of `_curses.assume_default_colors` in the docs (GH-134409) (#134417)

Fix signature of `_curses.assume_default_colors` in the docs (GH-134409)
(cherry picked from commit dcfc91e4e552e74a43f5fdf049af7a8fe7a784ee)

Co-authored-by: sobolevn <mail@sobolevn.me>
5 months ago[3.14] gh-132542: Only run test_native_id_after_fork if native_id is supported (GH...
Miss Islington (bot) [Wed, 21 May 2025 11:38:37 +0000 (13:38 +0200)] 
[3.14] gh-132542: Only run test_native_id_after_fork if native_id is supported (GH-134408) (GH-134413)

(cherry picked from commit e6dde10a69ce62c3b02b3b4e07559d06a9451fc2)

Co-authored-by: Noam Cohen <noam@noam.me>
5 months ago[3.14] gh-133980: use atomic store in `PyObject_GenericSetDict` (GH-133988) (#134354)
Miss Islington (bot) [Wed, 21 May 2025 09:36:39 +0000 (11:36 +0200)] 
[3.14] gh-133980: use atomic store in `PyObject_GenericSetDict` (GH-133988) (#134354)

gh-133980: use atomic store in `PyObject_GenericSetDict` (GH-133988)
(cherry picked from commit ec39fd2c20323ee9814a1137b1a0819e92efae4e)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 months ago[3.14] Add documentation for remote debugging with pdb (GH-134260) (#134398)
Miss Islington (bot) [Wed, 21 May 2025 09:29:42 +0000 (11:29 +0200)] 
[3.14] Add documentation for remote debugging with pdb (GH-134260) (#134398)

5 months ago[3.14] gh-134360 Add processName attribute to `logging.Formatter` docstring (GH-13437...
Miss Islington (bot) [Wed, 21 May 2025 05:16:56 +0000 (07:16 +0200)] 
[3.14] gh-134360 Add processName attribute to `logging.Formatter` docstring (GH-134371) (GH-134405)

Co-authored-by: Sofia Toro <sofie.torch@outlook.com>
5 months ago[3.14] gh-72680: Fix false positives when using zipfile.is_zipfile() (GH-134250)...
Miss Islington (bot) [Wed, 21 May 2025 01:58:48 +0000 (03:58 +0200)] 
[3.14] gh-72680: Fix false positives when using zipfile.is_zipfile() (GH-134250) (#134401)

gh-72680: Fix false positives when using zipfile.is_zipfile() (GH-134250)

bpo-28494: Improve zipfile.is_zipfile reliability

The zipfile.is_zipfile function would only search for the EndOfZipfile
section header. This failed to correctly identify non-zipfiles that
contained this header. Now the zipfile.is_zipfile function verifies
the first central directory entry.

Changes:
* Extended zipfile.is_zipfile to verify zipfile catalog
* Added tests to validate failure of binary non-zipfiles
* Reuse 'concat' handling for is_zipfile
(cherry picked from commit 1298511b41ec0f9be925c12f3830e94fe8f7e7dc)

Co-authored-by: Tim Hatch <timhatch@netflix.com>
Co-authored-by: John Jolly <john.jolly@gmail.com>
5 months ago[3.14] gh-91048: Fix error path result in _remote_debugging_module (GH-134347) (...
Miss Islington (bot) [Wed, 21 May 2025 00:20:53 +0000 (02:20 +0200)] 
[3.14] gh-91048: Fix error path result in _remote_debugging_module (GH-134347) (#134399)

5 months agoGH-130727: Avoid race condition in _wmimodule by copying shared data (GH-134313)
Miss Islington (bot) [Tue, 20 May 2025 21:47:12 +0000 (23:47 +0200)] 
GH-130727: Avoid race condition in _wmimodule by copying shared data (GH-134313)

(cherry picked from commit e4fbfb12889013fd52565cd2598a366754cb677b)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
5 months ago[3.14] gh-134215: PyREPL: Do not show underscored modules by default during autocompl...
Miss Islington (bot) [Tue, 20 May 2025 21:12:02 +0000 (23:12 +0200)] 
[3.14] gh-134215: PyREPL: Do not show underscored modules by default during autocompletion (gh-134267) (gh-134388)

(cherry picked from commit a3a3cf6d157948ed64ae837d6310b933a39a2493)

Co-authored-by: Kevin Hernández <kevin.hernandez@unet.edu.ve>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
5 months ago[3.14] gh-134209: use heap-allocated memory in `_curses.window.{instr,getstr}` (GH...
Miss Islington (bot) [Tue, 20 May 2025 21:01:45 +0000 (23:01 +0200)] 
[3.14] gh-134209: use heap-allocated memory in `_curses.window.{instr,getstr}` (GH-134283) (#134391)

gh-134209: use heap-allocated memory in `_curses.window.{instr,getstr}` (GH-134283)

* made curses buffer heap allocated instead of stack
* change docs to explicitly mention the max buffer size
* changing GetStr() function to behave similarly too
* Update Doc/library/curses.rst
* Update instr with proper return error handling
* Update Modules/_cursesmodule.c
* change to strlen and better memory safety
* change from const int to Py_ssize_t
* add mem allocation guard
* update versionchanged to mention it was an increase.
* explicitly use versionchanged 3.14 as that is its own branch now.

TESTED: `python -m test -u curses test_curses`

---------
(cherry picked from commit aadda87b3d3d99cb9e8c8791bb9715a3f0209195)

Co-authored-by: tigerding <43339228+zydtiger@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
5 months ago[3.14] gh-128066: Properly handle history file writes for RO fs on PyREPL (gh-134380...
Miss Islington (bot) [Tue, 20 May 2025 20:15:23 +0000 (22:15 +0200)] 
[3.14] gh-128066: Properly handle history file writes for RO fs on PyREPL (gh-134380) (gh-134385)

(cherry picked from commit c91ad5da9d92eac4718e4da8d53689c3cc24535e)

Co-authored-by: Chris Patti <feoh@feoh.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
5 months ago[3.14] gh-85045: clarified that the underlying buffer of a TextIOBase can be a RawIOB...
Miss Islington (bot) [Tue, 20 May 2025 19:28:03 +0000 (21:28 +0200)] 
[3.14] gh-85045: clarified that the underlying buffer of a TextIOBase can be a RawIOBase (GH-134372) (#134374)

gh-85045: clarified that the underlying buffer of a TextIOBase can be a RawIOBase (GH-134372)

Added a clarification that the underlying binary buffer of a TextIOBase can be a BufferedIOBase OR a RawIOBase
(cherry picked from commit 36eb711d2f26849214774a017fe8c8a5be3eec30)

Co-authored-by: Alex Kautz <alex@takemobi.com>
5 months ago[3.14] gh-127146: xfail more Emscripten stack overflows (GH-134358) (#134382)
Miss Islington (bot) [Tue, 20 May 2025 19:07:08 +0000 (21:07 +0200)] 
[3.14] gh-127146: xfail more Emscripten stack overflows (GH-134358) (#134382)

Adds some additional test xfails for Emscripten stack overflows. Also corrects a test skip for test_io.
(cherry picked from commit 91e6a58e2d6fd23e886135457e28dfa980ec49ed)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
5 months ago[3.14] gh-131357: Add tests for zero-sized bytes objects in test_bytes.py (GH-134234...
Miss Islington (bot) [Tue, 20 May 2025 18:59:00 +0000 (20:59 +0200)] 
[3.14] gh-131357: Add tests for zero-sized bytes objects in test_bytes.py (GH-134234) (#134378)

gh-131357: Add tests for zero-sized bytes objects in test_bytes.py (GH-134234)
(cherry picked from commit 306f9e04e50c80f7be2a38fc3b64accf59f5164c)

Co-authored-by: abstractedfox <coldcaption@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
5 months ago[3.14] gh-106213: Shorten Emscripten wasm-gc trampoline by a little (GH-133984) ...
Miss Islington (bot) [Tue, 20 May 2025 18:49:29 +0000 (20:49 +0200)] 
[3.14] gh-106213: Shorten Emscripten wasm-gc trampoline by a little (GH-133984) (#134376)

Using the if instruction results in slightly shorter trampoline code.
(cherry picked from commit 3b7888bf3d43b903f0a7ebd16f39d8bb61dfbb9e)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
5 months ago[3.14] gh-86802: Fix asyncio memory leak; shielded task exceptions log once through...
Miss Islington (bot) [Tue, 20 May 2025 17:43:09 +0000 (19:43 +0200)] 
[3.14] gh-86802: Fix asyncio memory leak; shielded task exceptions log once through the exception handler (gh-134331) (gh-134343)

(cherry picked from commit f695eca60cfc53cf3322323082652037d6d0cfef)

Co-authored-by: Christian Harries <68507104+ChristianHrs@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
5 months ago[3.14] GH-133779: Fix finding pyconfig.h on Windows JIT builds (GH-134359)
Miss Islington (bot) [Tue, 20 May 2025 17:22:24 +0000 (19:22 +0200)] 
[3.14] GH-133779: Fix finding pyconfig.h on Windows JIT builds (GH-134359)

(cherry picked from commit 7ad90463df16e1938a3b6725b0f02af34cea372e)

5 months ago[3.14] gh-75459: Doc: C API: Improve object life cycle documentation (GH-125962)...
Miss Islington (bot) [Tue, 20 May 2025 17:11:01 +0000 (19:11 +0200)] 
[3.14] gh-75459: Doc: C API: Improve object life cycle documentation (GH-125962) (GH-134344)

gh-75459: Doc: C API: Improve object life cycle documentation (GH-125962)

  * Add "cyclic isolate" to the glossary.
  * Add a new "Object Life Cycle" page.
  * Improve docs for related API, with special focus on cross-references and warnings
(cherry picked from commit 3246ea514d6da6ff09f411e22b3ba61a7de84a74)

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
5 months ago[3.14] gh-127945: Update What's New in Python 3.14 for free-threaded ctypes (GH-13433...
Miss Islington (bot) [Tue, 20 May 2025 17:02:55 +0000 (19:02 +0200)] 
[3.14] gh-127945: Update What's New in Python 3.14 for free-threaded ctypes (GH-134332) (#134364)

gh-127945: Update What's New in Python 3.14 for free-threaded ctypes (GH-134332)
(cherry picked from commit b430e92dd80105e97b945a78a48bce13564bf843)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 months ago[3.14] gh-128002: add what's new docs for `asyncio` (GH-134324) (#134362)
Miss Islington (bot) [Tue, 20 May 2025 16:47:42 +0000 (18:47 +0200)] 
[3.14] gh-128002: add what's new docs for `asyncio` (GH-134324) (#134362)

gh-128002: add what's new docs for `asyncio` (GH-134324)
(cherry picked from commit 0584533dc70b4efdb65fd53fbb5beddbc7a302a8)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 months ago[3.14] gh-132542: Set native thread ID after fork (GH-132701) (GH-134356)
Miss Islington (bot) [Tue, 20 May 2025 16:46:52 +0000 (18:46 +0200)] 
[3.14] gh-132542: Set native thread ID after fork (GH-132701) (GH-134356)

(cherry picked from commit 6b735023132a4ac9dc5b849d982104eeb1e8bdad)

Co-authored-by: Noam Cohen <noam@noam.me>
5 months ago[3.14] gh-129748: Update mimalloc to use atomic store for mi_block_set_nextx (GH...
Miss Islington (bot) [Tue, 20 May 2025 16:25:04 +0000 (18:25 +0200)] 
[3.14] gh-129748: Update mimalloc to use atomic store for mi_block_set_nextx (GH-134238) (gh-134352)

gh-129748: Update mimalloc to use atomic store for mi_block_set_nextx (GH-134238)
(cherry picked from commit 317c49622397222b7c7fb49837e6b1fd7e82a80d)

Co-authored-by: Donghee Na <donghee.na@python.org>
5 months ago[3.14] gh-101100: Fix Sphinx warnings in `library/decimal.rst` (GH-134303) (#134338)
Miss Islington (bot) [Tue, 20 May 2025 14:52:11 +0000 (16:52 +0200)] 
[3.14] gh-101100: Fix Sphinx warnings in `library/decimal.rst` (GH-134303) (#134338)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
5 months ago[3.14] gh-128307: Update what's new in 3.13 and 3.14 with create_task changes of...
Miss Islington (bot) [Tue, 20 May 2025 14:15:18 +0000 (16:15 +0200)] 
[3.14] gh-128307: Update what's new in 3.13 and 3.14 with create_task changes of asyncio  (GH-134304) (#134319)

gh-128307: Update what's new in 3.13 and 3.14 with create_task changes of asyncio  (GH-134304)
(cherry picked from commit 28625d4f956f8d30671aba1daaac9735932983db)

Co-authored-by: Guido van Rossum <guido@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>