]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 months ago[3.14] gh-136976: Emscripten: Add _decimal and libmpdec (GH-136997) (#137066)
Miss Islington (bot) [Tue, 29 Jul 2025 20:10:39 +0000 (22:10 +0200)] 
[3.14] gh-136976: Emscripten: Add _decimal and libmpdec (GH-136997) (#137066)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Zachary Ware <zach@python.org>
4 months ago[3.14] gh-124621: Emscripten: Add smoke test for using pyrepl in Chrome (GH-137004...
Miss Islington (bot) [Tue, 29 Jul 2025 20:09:47 +0000 (22:09 +0200)] 
[3.14] gh-124621: Emscripten: Add smoke test for using pyrepl in Chrome (GH-137004) (#137067)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Zachary Ware <zach@python.org>
4 months ago[3.14] Add a What's New entry for Emscripten (GH-137035) (#137192)
Miss Islington (bot) [Tue, 29 Jul 2025 06:53:34 +0000 (08:53 +0200)] 
[3.14] Add a What's New entry for Emscripten (GH-137035) (#137192)

Add a What's New entry for Emscripten (GH-137035)
(cherry picked from commit d7e12a362a2a4a4b7d52a343ab5940be2cbcc909)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.14] gh-132898: Add a note in `multiprocessing.Process` docs about creating a proce...
Miss Islington (bot) [Mon, 28 Jul 2025 19:48:58 +0000 (21:48 +0200)] 
[3.14] gh-132898: Add a note in `multiprocessing.Process` docs about creating a process in a REPL (GH-137118) (#137154)

Co-authored-by: Duprat <yduprat@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 months ago[3.14] GH-137059: `url2pathname()`: fix support for drive letter in netloc (GH-137060...
Miss Islington (bot) [Mon, 28 Jul 2025 19:43:15 +0000 (21:43 +0200)] 
[3.14] GH-137059: `url2pathname()`: fix support for drive letter in netloc (GH-137060) (#137144)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
4 months ago[3.14] gh-130577: tarfile now validates archives to ensure member offsets are non...
Miss Islington (bot) [Mon, 28 Jul 2025 19:40:56 +0000 (21:40 +0200)] 
[3.14] gh-130577: tarfile now validates archives to ensure member offsets are non-negative (GH-137027) (#137169)

Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 months ago[3.14] gh-136870: fix data races in instrumentation of bytecode (GH-136994) (#137082)
Miss Islington (bot) [Mon, 28 Jul 2025 19:39:44 +0000 (21:39 +0200)] 
[3.14] gh-136870: fix data races in instrumentation of bytecode (GH-136994) (#137082)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Zachary Ware <zach@python.org>
4 months ago[3.14] Link to plaintext for "show source" links (GH-137131) (#137132)
Miss Islington (bot) [Sun, 27 Jul 2025 06:54:41 +0000 (08:54 +0200)] 
[3.14] Link to plaintext for "show source" links (GH-137131) (#137132)

Link to plaintext for "show source" links (GH-137131)
(cherry picked from commit 9cbf46d9920c269fe736ed689236d00223545f73)

Co-authored-by: ryan-duve <ryan-duve@users.noreply.github.com>
4 months ago[3.14] gh-131038: Use text=True in subprocesses in test_perf_profiler (GH-137117...
Miss Islington (bot) [Sat, 26 Jul 2025 17:28:40 +0000 (19:28 +0200)] 
[3.14] gh-131038: Use text=True in subprocesses in test_perf_profiler (GH-137117) (#137124)

4 months ago[3.14] gh-137090: Remove redundant statement in ``Doc/library/concurrent.interpreters...
Miss Islington (bot) [Fri, 25 Jul 2025 16:08:28 +0000 (18:08 +0200)] 
[3.14] gh-137090: Remove redundant statement in ``Doc/library/concurrent.interpreters.rst`` (GH-137091) (#137108)

gh-137090: Remove redundant statement in ``Doc/library/concurrent.interpreters.rst`` (GH-137091)
(cherry picked from commit 1e69cd1634e4f0f8c375be85d11925bd12deef23)

Co-authored-by: soolabettu <17737361+soolabettu@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 months ago[3.14] gh-132983: Add missing references to Zstandard in shutil docstrings (GH-136617...
Miss Islington (bot) [Fri, 25 Jul 2025 09:30:11 +0000 (11:30 +0200)] 
[3.14] gh-132983: Add missing references to Zstandard in shutil docstrings (GH-136617) (#137052)

Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
Co-authored-by: Zachary Ware <zach@python.org>
4 months ago[3.14] Exclude _testclinic_depr.c.h from c-analyzer (GH-137086) (#137089)
Miss Islington (bot) [Thu, 24 Jul 2025 21:36:11 +0000 (23:36 +0200)] 
[3.14] Exclude _testclinic_depr.c.h from c-analyzer (GH-137086) (#137089)

Exclude _testclinic_depr.c.h from c-analyzer (GH-137086)

_testclinic.c mocks out PY_VERSION_HEX to 3.8 before including
_testclinic_depr.c.h to avoid the errors the preprocessor would
otherwise throw due to the deprecation feature it is testing.

(cherry picked from commit d5e75c07682864e9d265e11f5e4730147e7d4842)

Co-authored-by: Zachary Ware <zach@python.org>
4 months ago[3.14] GH-136975: Emend a spelling error (algorthm -> algorithm) (GH-136999) (#137003)
Miss Islington (bot) [Wed, 23 Jul 2025 20:48:11 +0000 (22:48 +0200)] 
[3.14] GH-136975: Emend a spelling error (algorthm -> algorithm) (GH-136999) (#137003)

GH-136975: Emend a spelling error (algorthm -> algorithm) (GH-136999)
(cherry picked from commit b6d324224474c54061a6aaeace50bc5666dc1779)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 months ago[3.14] gh-137043: mention `PyList_GET_ITEM` as unsafe borrowed API in free-threading...
Miss Islington (bot) [Wed, 23 Jul 2025 17:45:55 +0000 (19:45 +0200)] 
[3.14] gh-137043: mention `PyList_GET_ITEM` as unsafe borrowed API in free-threading docs (GH-137042) (#137045)

Co-authored-by: Guido Imperiale <crusaderky@gmail.com>
4 months ago[3.14] gh-135676: Lexical analysis: Reword String literals and related sections ...
Miss Islington (bot) [Wed, 23 Jul 2025 16:23:25 +0000 (18:23 +0200)] 
[3.14] gh-135676: Lexical analysis: Reword String literals and related sections (GH-135942) (#137048)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 months agoPost 3.14.0rc1
Hugo van Kemenade [Tue, 22 Jul 2025 18:54:14 +0000 (21:54 +0300)] 
Post 3.14.0rc1

4 months agoPython 3.14.0rc1 v3.14.0rc1
Hugo van Kemenade [Tue, 22 Jul 2025 16:42:27 +0000 (19:42 +0300)] 
Python 3.14.0rc1

4 months ago[3.14] Revert "[3.14] gh-135228: When @dataclass(slots=True) replaces… (#137013)
Jelle Zijlstra [Tue, 22 Jul 2025 16:23:53 +0000 (09:23 -0700)] 
[3.14] Revert "[3.14] gh-135228: When @dataclass(slots=True) replaces… (#137013)

4 months ago[3.14] Fix tables in 'Using on Windows' for the text writer (GH-137012) (#137015)
Miss Islington (bot) [Tue, 22 Jul 2025 16:21:19 +0000 (18:21 +0200)] 
[3.14] Fix tables in 'Using on Windows' for the text writer (GH-137012) (#137015)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 months ago[3.14] Revert "gh-112068: C API: Add support of nullable arguments in PyArg_Parse...
Serhiy Storchaka [Tue, 22 Jul 2025 16:16:31 +0000 (19:16 +0300)] 
[3.14] Revert "gh-112068: C API: Add support of nullable arguments in PyArg_Parse (GH-121303)" (GH-136991) (#137006)

4 months ago[3.14] Fix code example in `annotationlib` documentation (GH-136972) (#137002)
Miss Islington (bot) [Tue, 22 Jul 2025 16:15:27 +0000 (18:15 +0200)] 
[3.14] Fix code example in `annotationlib` documentation (GH-136972) (#137002)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
4 months ago[3.14] gh-124621: Emscripten: Support pyrepl in browser (GH-136931) (GH-136988)
Łukasz Langa [Tue, 22 Jul 2025 13:04:11 +0000 (15:04 +0200)] 
[3.14] gh-124621: Emscripten: Support pyrepl in browser (GH-136931) (GH-136988)

Basic support for pyrepl in Emscripten. Limitations:
* requires JSPI
* no signal handling implemented

As followup work, it would be nice to implement a webworker variant
for when JSPI is not available and proper signal handling.

Because it requires JSPI, it doesn't work in Safari. Firefox requires
setting an experimental flag. All the Chromiums have full support since
May. Until we make it work without JSPI, let's keep the original web_example
around.
(cherry picked from commit c933a6bb329bb97bc7e448388dad1b74f7ca4baa)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Éric <merwok@netwok.org>
4 months ago[3.14] gh-133742: Fix test_sysconfig and test_build_details for relocated directories...
Miss Islington (bot) [Tue, 22 Jul 2025 12:18:23 +0000 (14:18 +0200)] 
[3.14] gh-133742: Fix test_sysconfig and test_build_details for relocated directories (GH-136987) (#136990)

gh-133742: Fix test_sysconfig and test_build_details for relocated directories (GH-136987)
(cherry picked from commit aafbdb5df5439adc1106ced068cf87683ae68b9e)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
4 months ago[3.14] gh-118350: Fix support of elements "textarea" and "title" in HTMLParser (GH...
Miss Islington (bot) [Tue, 22 Jul 2025 11:52:34 +0000 (13:52 +0200)] 
[3.14] gh-118350: Fix support of elements "textarea" and "title" in HTMLParser (GH-135310) (GH-136984)

(cherry picked from commit 4d02f31cdd45d81b95540d9076222b709d4f2335)

Co-authored-by: Timon Viola <44016238+timonviola@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 months ago[3.14] gh-136251: Improvements to WASM demo REPL (GH-136252) (GH-136977)
Miss Islington (bot) [Tue, 22 Jul 2025 11:25:35 +0000 (13:25 +0200)] 
[3.14] gh-136251: Improvements to WASM demo REPL (GH-136252) (GH-136977)

(cherry picked from commit d1d526afe7ce62c787b150652a2ba136cb949d74)

Co-authored-by: adam j hartz <adam@smatz.net>
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] gh-132661: Document t-strings and `templatelib` (GH-135229) (#136974)
Miss Islington (bot) [Tue, 22 Jul 2025 10:32:00 +0000 (12:32 +0200)] 
[3.14] gh-132661: Document t-strings and `templatelib` (GH-135229) (#136974)

Co-authored-by: Dave Peck <davepeck@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Loïc Simon <loic.pano@gmail.com>
Co-authored-by: pauleveritt <pauleveritt@me.com>
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
4 months ago[3.14] gh-124621: Emscripten: Add support for async input devices (GH-136822) (GH...
Miss Islington (bot) [Tue, 22 Jul 2025 09:51:02 +0000 (11:51 +0200)] 
[3.14] gh-124621: Emscripten: Add support for async input devices (GH-136822) (GH-136935)

This is useful for implementing proper `input()`. It requires the
JavaScript engine to support the wasm JSPI spec which is now stage 4.
It is supported on Chrome since version 137 and on Firefox and node
behind a flag.

We override the `__wasi_fd_read()` syscall with our own variant that
checks for a readAsync operation. If it has it, we use our own async
variant of `fd_read()`, otherwise we use the original `fd_read()`.
We also add a variant of `FS.createDevice()` called
`FS.createAsyncInputDevice()`.

Finally, if JSPI is available, we wrap the `main()` symbol with
`WebAssembly.promising()` so that we can stack switch from `fd_read()`.
If JSPI is not available, attempting to read from an AsyncInputDevice
will raise an `OSError`.
(cherry picked from commit 7ae4749d064bd49b0dd96172fee20c1f1678d9e9)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] gh-134009: Expose `PyMutex_IsLocked` in the public C API (gh-134365) (#136971)
Hugo van Kemenade [Tue, 22 Jul 2025 09:48:08 +0000 (12:48 +0300)] 
[3.14] gh-134009: Expose `PyMutex_IsLocked` in the public C API (gh-134365) (#136971)

Co-authored-by: Sam Gross <colesbury@gmail.com>
4 months ago[3.14] gh-133296: Publicly expose critical section API that accepts PyMutex (gh-13589...
Miss Islington (bot) [Tue, 22 Jul 2025 09:44:59 +0000 (11:44 +0200)] 
[3.14] gh-133296: Publicly expose critical section API that accepts PyMutex (gh-135899) (#136969)

Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.14] gh-136859: Improve `StrEnum` docs (GH-136864) (#136936)
Miss Islington (bot) [Tue, 22 Jul 2025 08:32:09 +0000 (10:32 +0200)] 
[3.14] gh-136859: Improve `StrEnum` docs (GH-136864) (#136936)

Co-authored-by: Nacho Caballero <nachocab@gmail.com>
Co-authored-by: Nacho Caballero <nacho.caballero@astrazeneca.com>
Co-authored-by: Antonio Spadaro <ilovelinux@users.noreply.github.com>
4 months ago[3.14] gh-135468: Improve ``BaseHandler.http_error_default()`` parameter descriptions...
Miss Islington (bot) [Tue, 22 Jul 2025 08:29:40 +0000 (10:29 +0200)] 
[3.14] gh-135468: Improve ``BaseHandler.http_error_default()`` parameter descriptions (GH-136797) (#136825)

Co-authored-by: Valerio Gianella <49408327+valeriogianella@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
4 months ago[3.14] Fix 3 typos in "Next" News items (GH-136892) (#136967)
Hugo van Kemenade [Tue, 22 Jul 2025 08:29:17 +0000 (11:29 +0300)] 
[3.14] Fix 3 typos in "Next" News items (GH-136892) (#136967)

Co-authored-by: Cornelius Roemer <cornelius.roemer@gmail.com>
4 months ago[3.14] gh-131531: Android test fixes (GH-136845) (#136962)
Miss Islington (bot) [Tue, 22 Jul 2025 08:15:50 +0000 (10:15 +0200)] 
[3.14] gh-131531: Android test fixes (GH-136845) (#136962)

Modifies the test runner script to no longer export the the HOST environment
variable, and to allow for tests that produce no Python output (output from the
Android console is still expected and required). These changes stem from
knowledge gained during developing a PR for Android support in cibuildwheel.
(cherry picked from commit 149bddcc216a398d71ec9497e9bf3ec03d6f2914)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
4 months ago[3.14] gh-135228: When @dataclass(slots=True) replaces a dataclass, make the original...
Miss Islington (bot) [Tue, 22 Jul 2025 05:08:15 +0000 (07:08 +0200)] 
[3.14] gh-135228: When @dataclass(slots=True) replaces a dataclass, make the original class collectible (GH-136893) (#136960)

gh-135228: When @dataclass(slots=True) replaces a dataclass, make the original class collectible (GH-136893)

An interesting hack, but more localized in scope than GH-135230.

This may be a breaking change if people intentionally keep the original class around
when using `@dataclass(slots=True)`, and then use `__dict__` or `__weakref__` on the
original class.
(cherry picked from commit 46cbdf967ada11b0286060488b61635fd6a2bb23)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
4 months ago[3.14] gh-136170: Revert adding `ZipFile.data_offset` (GH-136950) (#136955)
Miss Islington (bot) [Tue, 22 Jul 2025 03:35:41 +0000 (05:35 +0200)] 
[3.14] gh-136170: Revert adding `ZipFile.data_offset` (GH-136950) (#136955)

gh-136170: Revert adding `ZipFile.data_offset` (GH-136950)

* Revert "gh-84481: Make ZipFile.data_offset more robust (GH-132178)"

This reverts commit 6cd1d6c6b142697fb72f422b7b448c27ebc30534.

* Revert "gh-84481: Add ZipFile.data_offset attribute (GH-132165)"

This reverts commit 0788948dcb980c7648b29ca363390b696d7f188f.

---------
(cherry picked from commit 6bf1c0ab3497b1b193812654bcdfd0c11b4192d8)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 months ago[3.14] gh-133600: Move config.site-wasm32-emscripten into the emscripten folder ...
Miss Islington (bot) [Tue, 22 Jul 2025 00:22:57 +0000 (02:22 +0200)] 
[3.14] gh-133600: Move config.site-wasm32-emscripten into the emscripten folder (GH-136934) (#136956)

Reorganises the large Emscripten-specific file into the Emscripten folder.
(cherry picked from commit bbe589f93ccaf32eb95fd9d1f8f3dc9a536e8db1)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] gh-136421: Load `_datetime` static types during interpreter initialization...
Miss Islington (bot) [Mon, 21 Jul 2025 23:23:05 +0000 (01:23 +0200)] 
[3.14] gh-136421: Load `_datetime` static types during interpreter initialization (GH-136583) (GH-136943)

gh-136421: Load `_datetime` static types during interpreter initialization (GH-136583)

`_datetime` is a special module, because it's the only non-builtin C extension that contains static types. As such, it would initialize static types in the module's execution function, which can run concurrently. Since static type initialization is not thread-safe, this caused crashes. This fixes it by moving the initialization of `_datetime`'s static types to interpreter startup (where all other static types are initialized), which is already properly protected through other locks.
(cherry picked from commit a10960699a2b3e4e62896331c4f9cfd162ebf440)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
4 months ago[3.14] gh-136870: fix data race in `PyThreadState_Clear` on `sys_tracing_threads...
Miss Islington (bot) [Mon, 21 Jul 2025 21:01:14 +0000 (23:01 +0200)] 
[3.14] gh-136870: fix data race in `PyThreadState_Clear` on `sys_tracing_threads` (GH-136951) (#136953)

gh-136870: fix data race in `PyThreadState_Clear` on `sys_tracing_threads` (GH-136951)

In free-threading, multiple threads can be cleared concurrently as such the modifications on `sys_tracing_threads` should be done while holding the profile lock, otherwise it can race with other threads setting up profiling.
(cherry picked from commit f183996eb77fd2d5662c62667298c292c943ebf5)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
4 months ago[3.14] gh-135661: Fix parsing attributes with whitespaces around the "=" separator...
Serhiy Storchaka [Mon, 21 Jul 2025 18:34:24 +0000 (21:34 +0300)] 
[3.14] gh-135661: Fix parsing attributes with whitespaces around the "=" separator in HTMLParser (GH-136908) (#136927)

4 months ago[3.14] gh-136437: Document `os.path.dirname` as accepting only pos-only (GH-136946...
Miss Islington (bot) [Mon, 21 Jul 2025 18:29:22 +0000 (20:29 +0200)] 
[3.14] gh-136437: Document `os.path.dirname` as accepting only pos-only (GH-136946) (#136947)

gh-136437: Document `os.path.dirname` as accepting only pos-only (GH-136946)
(cherry picked from commit 322442945084ea9055f86a17fa5096b11ba5b344)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.14] GH-136874: `url2pathname()`: discard query and fragment components (GH-136875...
Miss Islington (bot) [Mon, 21 Jul 2025 18:08:07 +0000 (20:08 +0200)] 
[3.14] GH-136874: `url2pathname()`: discard query and fragment components (GH-136875) (#136942)

GH-136874: `url2pathname()`: discard query and fragment components (GH-136875)

In `urllib.request.url2pathname()`, ignore any query or fragment components
in the given URL.
(cherry picked from commit 80b2d60a51cfd824d025eb8b3ec500acce5c010c)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
4 months ago[3.14] gh-136437: Document some `os.path` functions as requiring pos-only (GH-136812...
Miss Islington (bot) [Mon, 21 Jul 2025 18:07:56 +0000 (20:07 +0200)] 
[3.14] gh-136437: Document some `os.path` functions as requiring pos-only (GH-136812) (#136944)

gh-136437: Document some `os.path` functions as requiring pos-only (GH-136812)
(cherry picked from commit b5428bb0e786f5b67c6077472c0068cadd0b5ea9)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.14] Pedantic rewording of why relative importing doesn't work in main modules...
Miss Islington (bot) [Mon, 21 Jul 2025 16:58:27 +0000 (18:58 +0200)] 
[3.14] Pedantic rewording of why relative importing doesn't work in main modules (GH-136846) (#136940)

Pedantic rewording of why relative importing doesn't work in main modules (GH-136846)

Pedantically reword the section about relative imports and main modules.
(cherry picked from commit 4b68289ca6954b8d135e2ee2344e67fae38239fd)

Co-authored-by: Josh Cannon <joshdcannon@gmail.com>
4 months ago[3.14] gh-135621: Simplify TermInfo (GH-136916) (#136925)
Miss Islington (bot) [Mon, 21 Jul 2025 16:04:13 +0000 (18:04 +0200)] 
[3.14] gh-135621: Simplify TermInfo (GH-136916) (#136925)

4 months ago[3.14] gh-132661: Disallow `Template`/`str` concatenation after PEP 750 spec update...
Lysandros Nikolaou [Mon, 21 Jul 2025 15:34:54 +0000 (17:34 +0200)] 
[3.14] gh-132661: Disallow `Template`/`str` concatenation after PEP 750 spec update (#135996) (#136901)

Co-authored-by: Dave Peck <davepeck@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.14] gh-121028: Soft-deprecate sys.api_version (GH-136463) (GH-136928)
Miss Islington (bot) [Mon, 21 Jul 2025 12:29:51 +0000 (14:29 +0200)] 
[3.14] gh-121028: Soft-deprecate sys.api_version (GH-136463) (GH-136928)

(cherry picked from commit 658599c15d13ee3a5cb56c3d9fccaa195465d4b5)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 months ago[3.14] gh-135621: Remove dependency on curses from PyREPL (GH-136758) (GH-136915)
Miss Islington (bot) [Mon, 21 Jul 2025 11:02:41 +0000 (13:02 +0200)] 
[3.14] gh-135621: Remove dependency on curses from PyREPL (GH-136758) (GH-136915)

(cherry picked from commit 09dfb50f1b7c23bc48d86bd579671761bb8ca48b)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 months ago[3.14] gh-136852: Emscripten: Add PYTHON_NODE_VERSION environment variable (GH-136853...
Miss Islington (bot) [Mon, 21 Jul 2025 09:58:57 +0000 (11:58 +0200)] 
[3.14] gh-136852: Emscripten: Add PYTHON_NODE_VERSION environment variable (GH-136853) (GH-136907)

To choose the node version we use. Together with:
https://github.com/python/buildmaster-config/pull/614
closes GH-136852.
(cherry picked from commit aec7f5f8b2e8b5e02869cdb4e1f8a9ef87c9f953)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] gh-134411: assert `PyLong_FromLong(x) != NULL` when `x` is known to be small...
Miss Islington (bot) [Mon, 21 Jul 2025 09:23:33 +0000 (11:23 +0200)] 
[3.14] gh-134411: assert `PyLong_FromLong(x) != NULL` when `x` is known to be small (GH-134415) (#136910)

gh-134411: assert `PyLong_FromLong(x) != NULL` when `x` is known to be small (GH-134415)

Since `PyLong_From Long(PY_MONITORING_DEBUGGER_ID)` falls to `small_int` case and can't return `NULL`. Added `assert`s for extra confidence.
https://github.com/python/cpython/issues/134411#issuecomment-2897653868
(cherry picked from commit cf19b6435d02dd7be11b84a44f4a8a9f1a935b15)

Co-authored-by: Sergey Muraviov <smurav@mail.ru>
4 months ago[3.14] gh-136882: Update stale link in the basic logging tutorial. (GH-136885) (...
Miss Islington (bot) [Mon, 21 Jul 2025 09:04:39 +0000 (11:04 +0200)] 
[3.14] gh-136882: Update stale link in the basic logging tutorial. (GH-136885) (#136905)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.14] gh-136428: amend UUIDv8 performance improvements (GH-136903) (#136904)
Miss Islington (bot) [Mon, 21 Jul 2025 08:29:52 +0000 (10:29 +0200)] 
[3.14] gh-136428: amend UUIDv8 performance improvements (GH-136903) (#136904)

gh-136428: amend UUIDv8 performance improvements (GH-136903)

UUIDv8 has been added in Python 3.14.0a2 and its construction time
has been improved in Python 3.14.0a4, but since those changes will
not be visible when comparing the latest Python 3.13 and 3.14 together,
we do not document them on the What's New page to avoid confusion.
(cherry picked from commit 5798348a0739ccf46f690f5fa1443080ec5de310)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 months ago[3.14] gh-136470: Correct InterpreterPoolExecutor's default thread name (GH-136472...
Miss Islington (bot) [Mon, 21 Jul 2025 00:00:19 +0000 (02:00 +0200)] 
[3.14] gh-136470: Correct InterpreterPoolExecutor's default thread name (GH-136472) (GH-136889)

gh-136470: Correct InterpreterPoolExecutor's default thread name (GH-136472)

The OS thread name is now correctly prefixed with `InterpreterPoolExecutor` instead of `ThreadPoolExecutor`.
(cherry picked from commit 246be21de1e2a51d757c747902108dfec13e0605)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
4 months ago[3.14] GH-130645: Default to color help in argparse (GH-136809) (#136886)
Miss Islington (bot) [Sun, 20 Jul 2025 22:22:53 +0000 (00:22 +0200)] 
[3.14] GH-130645: Default to color help in argparse (GH-136809) (#136886)

GH-130645: Default to color help in argparse (GH-136809)
(cherry picked from commit acbe896cb12d6a92e6150fff22921756f6928035)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
4 months ago[3.14] GH-111758: Merge TSan and UBSan reusable GHA workflows (GH-136820) (#136883)
Miss Islington (bot) [Sun, 20 Jul 2025 20:28:28 +0000 (22:28 +0200)] 
[3.14] GH-111758: Merge TSan and UBSan reusable GHA workflows (GH-136820) (#136883)

Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.14] gh-86608: Improve and restructure tarfile examples (GH-121771) (#136866)
Miss Islington (bot) [Sun, 20 Jul 2025 13:16:19 +0000 (15:16 +0200)] 
[3.14] gh-86608: Improve and restructure tarfile examples (GH-121771) (#136866)

gh-86608: Improve and restructure tarfile examples (GH-121771)

Add an example on how to write a tarfile to stdout; general improvements.
(cherry picked from commit cc81b4e501138b5793d419c81c3a2859a17207a7)

Co-authored-by: Dominic H <dom@dominic.sk>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 months ago[3.14] gh-130655: gettext: Add fallback testcase (GH-136857) (#136862)
Miss Islington (bot) [Sun, 20 Jul 2025 12:32:58 +0000 (14:32 +0200)] 
[3.14] gh-130655: gettext: Add fallback testcase (GH-136857) (#136862)

gh-130655: gettext: Add fallback testcase (GH-136857)
(cherry picked from commit c6e6fe92cd8b90d546652764e3eaf1631da16f8f)

Co-authored-by: Dominic H <dom@dominic.sk>
4 months ago[3.14] gh-136854: Exit on error in `make venv` (GH-136856) (#136860)
Miss Islington (bot) [Sun, 20 Jul 2025 12:13:48 +0000 (14:13 +0200)] 
[3.14] gh-136854: Exit on error in `make venv` (GH-136856) (#136860)

Co-authored-by: Nacho Caballero <nachocab@gmail.com>
Co-authored-by: Nacho Caballero <nacho.caballero@astrazeneca.com>
4 months ago[3.14] gh-136438: Make sure `test_remote_pdb` pass with all optimization levels ...
Olga Pustovalova [Sun, 20 Jul 2025 11:51:59 +0000 (13:51 +0200)] 
[3.14] gh-136438: Make sure `test_remote_pdb` pass with all optimization levels (GH-136788) (GH-136855)

(cherry picked from commit 588d9fb84ae014502811ec8580411ea0df7200fe)

4 months ago[3.14] gh-108362: Retarget incremental GC changes to 3.14 (GH-125453) (#136851)
Miss Islington (bot) [Sun, 20 Jul 2025 11:28:17 +0000 (13:28 +0200)] 
[3.14] gh-108362: Retarget incremental GC changes to 3.14 (GH-125453) (#136851)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.14] Doc/c-api/memory.rst: extend --without-pymalloc doc with ASan information...
Miss Islington (bot) [Sun, 20 Jul 2025 08:55:06 +0000 (10:55 +0200)] 
[3.14] Doc/c-api/memory.rst: extend --without-pymalloc doc with ASan information (GH-136790) (GH-136798)

Extend the documentation for disabling pymalloc with the `--without-pymalloc` flag regarding why it is worth to use it when enabling AddressSanitizer for Python build (which is done, e.g., in CPython's CI builds).

I have tested the CPython latest main build with both ASan and pymalloc enabled and it seems to work just fine. I did run the `python -m test` suite which didn't uncover any ASan crashes (though, it detected some memory leaks, which I believe are irrelevant here).

I have discussed ASan and this flag with @encukou on the CPython Core sprint on EuroPython 2025. We initially thought that the `--without-pymalloc` flag is needed for ASan builds due to the fact pymalloc must hit the begining of page when determining if the memory to be freed comes from pymalloc or was allocated by the system malloc. In other words, we thought, that ASan would crash CPython during free of big objects (allocated by system malloc). It may be that this was the case in the past, but it is not the case anymore as the `address_in_range` function used by pymalloc is annotated to be skipped from the ASan instrumentation.

(cherry picked from commit d19bb4471331ca2cb87b86e4c904bc9a2bafb044)

Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 months ago[3.14] gh-136764: improve comment in enum.verify.__call__ (GH-136774) (GH-136841)
Miss Islington (bot) [Sat, 19 Jul 2025 18:00:15 +0000 (20:00 +0200)] 
[3.14] gh-136764: improve comment in enum.verify.__call__ (GH-136774) (GH-136841)

gh-136764: improve comment in enum.verify.__call__ (GH-136774)
(cherry picked from commit 6a1c93af806d0ca5d3fb86cd183d00013bbf28d1)

Co-authored-by: Saurav Singh <sauravsinghshakya@yahoo.com>
4 months ago[3.14] gh-136839: Refactor simple dict.update calls (GH-136811) (#136840)
Miss Islington (bot) [Sat, 19 Jul 2025 17:36:31 +0000 (19:36 +0200)] 
[3.14] gh-136839: Refactor simple dict.update calls (GH-136811) (#136840)

gh-136839: Refactor simple dict.update calls (GH-136811)

Refactor simple dict.update calls

This commit refactors simple `dict.update({key: value})` calls which can
be done via `dict[key] = value` instead.

I found those cases with the [semgrep](https://semgrep.dev/) tool:

```
$ semgrep --lang python --pattern '$DICT.update({$A: ...})'

┌─────────────────┐
│ 5 Code Findings │
└─────────────────┘

    Lib/dataclasses.py
         1268┆ slots.update({slot: doc})

    Lib/multiprocessing/resource_tracker.py
           50┆ _CLEANUP_FUNCS.update({
           51┆     'semaphore': _multiprocessing.sem_unlink,
           52┆ })
            ⋮┆----------------------------------------
           53┆ _CLEANUP_FUNCS.update({
           54┆     'shared_memory': _posixshmem.shm_unlink,
           55┆ })

    Lib/tkinter/scrolledtext.py
           26┆ kw.update({'yscrollcommand': self.vbar.set})

    Lib/xmlrpc/server.py
          242┆ self.funcs.update({'system.multicall' : self.system_multicall})
```
(cherry picked from commit 69ea1b3a8f45fec46add3272ad47f14ff5321ae8)

Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
4 months ago[3.14] gh-136752: Clarify documentation for ``IPv{N}Address.is_reserved`` (GH-136794...
Miss Islington (bot) [Sat, 19 Jul 2025 14:50:30 +0000 (16:50 +0200)] 
[3.14] gh-136752: Clarify documentation for ``IPv{N}Address.is_reserved`` (GH-136794) (#136827)

gh-136752: Clarify documentation for ``IPv{N}Address.is_reserved`` (GH-136794)
(cherry picked from commit 6293d8a1a648a498b7ac899631b74fa25c71c1ac)

Co-authored-by: Matthieu Lienart <50069805+mlnrt@users.noreply.github.com>
Co-authored-by: Matthieu Lienart <matthieu.lienart@axians.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 months ago[3.14] gh-54732: Make argparse error caused by empty rows in option files explicit...
Miss Islington (bot) [Sat, 19 Jul 2025 14:28:52 +0000 (16:28 +0200)] 
[3.14] gh-54732: Make argparse error caused by empty rows in option files explicit (GH-136795) (#136818)

gh-54732: Make argparse error caused by empty rows in option files explicit (GH-136795)
(cherry picked from commit 8ffc3ef01e83ffe629c6107082677de4d23974d5)

Co-authored-by: jdunter <2ve@mailbox.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 months ago[3.14] gh-136801: Fix PyREPL syntax highlightning on match cases after multi-line...
Miss Islington (bot) [Sat, 19 Jul 2025 13:56:40 +0000 (15:56 +0200)] 
[3.14] gh-136801: Fix PyREPL syntax highlightning on match cases after multi-line case (GH-136804) (GH-136813)

(cherry picked from commit 3a648445337098abf22c7faa296389dab597797c)

Co-authored-by: Olga Matoula <olgamatoula@gmail.com>
4 months ago[3.14] gh-135730: Clarify multiprocessing.Queue close() documentation (GH-136803...
Miss Islington (bot) [Sat, 19 Jul 2025 12:57:52 +0000 (14:57 +0200)] 
[3.14] gh-135730: Clarify multiprocessing.Queue close() documentation (GH-136803) (GH-136806)

gh-135730: Clarify multiprocessing.Queue close() documentation (GH-136803)

Add a copy of the text from SimpleQueue.close()

---------
(cherry picked from commit f575588ccf27d8d54a1e99cfda944f2614b3255c)

Co-authored-by: aggshruti99 <aggshruti99@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 months ago[3.14] gh-136769: Include fixed-width integers in the fundamental data types table...
Miss Islington (bot) [Sat, 19 Jul 2025 10:26:22 +0000 (12:26 +0200)] 
[3.14] gh-136769: Include fixed-width integers in the fundamental data types table (GH-136784) (#136785)

gh-136769: Include fixed-width integers in the fundamental data types table (GH-136784)

Fixed-sized types, like ``c_int32``, are currently missing from the fundamental data types table
in the ``ctypes`` documentation. This commit adds them, and  notes that ``c_[u]int8`` is an alias
of ``c_[u]byte``.
(cherry picked from commit acefb978dcb5dd554e3c49a3015ee5c2ad6bfda1)

Co-authored-by: Sina Zel taat <111974143+SZeltaat@users.noreply.github.com>
4 months ago[3.14] Fix typo in `Lib/test/test_ast/test_ast.py` (GH-136767) (#136783)
Miss Islington (bot) [Sat, 19 Jul 2025 10:23:52 +0000 (12:23 +0200)] 
[3.14] Fix typo in `Lib/test/test_ast/test_ast.py` (GH-136767) (#136783)

Fix typo in `Lib/test/test_ast/test_ast.py` (GH-136767)

`ASTOptimiziationTests` -> `ASTOptimizationTests`
(cherry picked from commit 60146f4f6f24f37e3bfcb9f101565f6e86cf0146)

Co-authored-by: Hunter Hogan <hunterhogan@users.noreply.github.com>
4 months ago[3.14] gh-74598: document that `fnmatch.filterfalse` is affected by cache limitation...
Miss Islington (bot) [Sat, 19 Jul 2025 09:56:55 +0000 (11:56 +0200)] 
[3.14] gh-74598: document that `fnmatch.filterfalse` is affected by cache limitation (GH-136781) (#136782)

gh-74598: document that `fnmatch.filterfalse` is affected by cache limitation (GH-136781)
(cherry picked from commit 263e451c4114ac98add1f1e8aa9ee030e054bdfd)

Co-authored-by: Gergely Elias <gergely.elias@gmail.com>
4 months ago[3.14] Docs: Improve example for ``itertools.batched()`` (GH-136775) (#136778)
Miss Islington (bot) [Sat, 19 Jul 2025 09:36:35 +0000 (11:36 +0200)] 
[3.14] Docs: Improve example for ``itertools.batched()`` (GH-136775) (#136778)

Docs: Improve example for ``itertools.batched()`` (GH-136775)

The current example `batched('ABCDEFG', n=3) → ABC DEF G` can confuse readers because both, the size of the tuples and the number of tuples are 3.
By using a batch size of n=2, it is clearer that the `n` argument refers to the size of the resulting tuples.
I.e. the new example is: `batched('ABCDEFG', n=2) → AB CD EF G`
(cherry picked from commit 3eecc72ac70943f7e33297eea17803af15322c88)

Co-authored-by: RafaelWO <38643099+RafaelWO@users.noreply.github.com>
4 months ago[3.14] parser_generator.py typo - keywods -> keywords (GH-135014) (#136772)
Miss Islington (bot) [Sat, 19 Jul 2025 09:18:55 +0000 (11:18 +0200)] 
[3.14] parser_generator.py typo - keywods -> keywords (GH-135014) (#136772)

Co-authored-by: chemelnucfin <3982092+chemelnucfin@users.noreply.github.com>
4 months ago[3.14] Fix typo: "occured" =>"occurred" (GH-134928) (#136771)
Miss Islington (bot) [Sat, 19 Jul 2025 09:13:51 +0000 (11:13 +0200)] 
[3.14] Fix typo: "occured" =>"occurred" (GH-134928) (#136771)

Co-authored-by: Roman <121314722+GameRoMan@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.14] gh-136697: Use the standard audit event format for sys.monitoring docs (GH...
Miss Islington (bot) [Thu, 17 Jul 2025 19:00:09 +0000 (21:00 +0200)] 
[3.14] gh-136697: Use the standard audit event format for sys.monitoring docs (GH-136747) (#136749)

gh-136697: Use the standard audit event format for sys.monitoring docs (GH-136747)
(cherry picked from commit 28937d3a21cf8168c853ae43374a8287c21f71c9)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
4 months ago[3.14] gh-127146: Emscripten: Set umask to zero in python.sh (GH-136740) (#136745)
Miss Islington (bot) [Thu, 17 Jul 2025 16:05:40 +0000 (18:05 +0200)] 
[3.14] gh-127146: Emscripten: Set umask to zero in python.sh (GH-136740) (#136745)

Clears the umask used during a test of pydoc.apropos when testing on
Emscripten. This is to work around a known issue in Emscripten; but it's not
clear if the chmod call that is causing the problem is actually testing
anything of significance.
(cherry picked from commit 22af5d35a620ee44393853036a8450ceb047688e)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] Improved venv docs to indicate that isolation is the default. (GH-136698)...
Miss Islington (bot) [Thu, 17 Jul 2025 10:24:54 +0000 (12:24 +0200)] 
[3.14] Improved venv docs to indicate that isolation is the default. (GH-136698) (GH-136705)

(cherry picked from commit 8e2f4b448380b4c835442534d566618f06e32573)
Co-authored-by: Facundo Batista <facundo@taniquetil.com.ar>
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
4 months ago[3.14] gh-135148: Correctly handle f/t strings with comments and debug expressions...
Miss Islington (bot) [Wed, 16 Jul 2025 22:10:46 +0000 (00:10 +0200)] 
[3.14] gh-135148: Correctly handle f/t strings with comments and debug expressions (GH-135198) (#136720)

4 months ago[3.14] gh-136710: Fix bad indentation in `os.chdir` docstring (GH-136719)
Zachary Ware [Wed, 16 Jul 2025 17:15:50 +0000 (12:15 -0500)] 
[3.14] gh-136710: Fix bad indentation in `os.chdir` docstring (GH-136719)

(cherry picked from commit bde808ad6ba5eee8a6201983cf071449d7ce7e39)

Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
4 months ago[3.14] gh-126548: Add a thread-unsafety warning for `importlib.reload()` (GH-136704...
Miss Islington (bot) [Wed, 16 Jul 2025 16:40:11 +0000 (18:40 +0200)] 
[3.14] gh-126548: Add a thread-unsafety warning for `importlib.reload()` (GH-136704) (GH-136723)

gh-126548: Add a thread-unsafety warning for `importlib.reload()` (GH-136704)
(cherry picked from commit 69d8fe50ddc4dbe757c9929a532e2e882f0261ba)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
4 months ago[3.14] gh-127146: Emscripten: Don't need to avoid unpaired surrogate anymore (GH...
Miss Islington (bot) [Wed, 16 Jul 2025 16:24:15 +0000 (18:24 +0200)] 
[3.14] gh-127146: Emscripten: Don't need to avoid unpaired surrogate anymore (GH-136707) (#136717)

This might have been fixed by gh-136624, or by some Emscripten change.
In any case, it no longer seems to be needed.
(cherry picked from commit dcd27aace180737adaddc79c00c181816fc6e162)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] gh-127146: Emscripten: Make os.umask() actually work (GH-136706) (#136711)
Miss Islington (bot) [Wed, 16 Jul 2025 16:12:36 +0000 (18:12 +0200)] 
[3.14] gh-127146: Emscripten: Make os.umask() actually work (GH-136706) (#136711)

Provide a stub implementation of umask that is enough to get some tests passing.
More work is needed upstream in Emscripten to make all umask tests to pass.
(cherry picked from commit 12e52cad718723636a96042f9399634392285c44)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] gh-127146: Emscripten: more regular stack overflow skips (GH-136708) (#136712)
Miss Islington (bot) [Wed, 16 Jul 2025 15:54:04 +0000 (17:54 +0200)] 
[3.14] gh-127146: Emscripten: more regular stack overflow skips (GH-136708) (#136712)

Makes the Emscripten stack overflow skip message consistent with WASI,
and replaces some ad-hoc skips.
(cherry picked from commit c730952aa64b790c75c437cb63a1242dc08c2e97)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] Add `.gram` file to the `.editorconfig` (GH-136680) (#136714)
Miss Islington (bot) [Wed, 16 Jul 2025 15:01:44 +0000 (17:01 +0200)] 
[3.14] Add `.gram` file to the `.editorconfig` (GH-136680) (#136714)

Add `.gram` file to the `.editorconfig` (GH-136680)
(cherry picked from commit 2f0db9b05f0598548c0c136571c31065ecf961e5)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.14] gh-136523: Fix wave.Wave_write emitting an unraisable when open raises (GH...
Miss Islington (bot) [Wed, 16 Jul 2025 07:26:52 +0000 (09:26 +0200)] 
[3.14] gh-136523: Fix wave.Wave_write emitting an unraisable when open raises (GH-136529) (GH-136606)

(cherry picked from commit 171de05b4884d1353044417ea51a4efcb55ba633)

Co-authored-by: Sachin Shah <39803835+inventshah@users.noreply.github.com>
4 months ago[3.14] gh-127146: Report uid in Emscripten + node as native uid (GH-136509) (#136699)
Miss Islington (bot) [Wed, 16 Jul 2025 04:50:51 +0000 (06:50 +0200)] 
[3.14] gh-127146: Report uid in Emscripten + node as native uid (GH-136509) (#136699)

Corrects the handling of getuid on emscripten, which was consistently reporting as 0.
(cherry picked from commit e81c4e84b3a8688a367099e3adf9b2fcf914447f)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] Fix the doctest.testmod() docstring (GH-136675) (GH-136690)
Miss Islington (bot) [Tue, 15 Jul 2025 17:07:01 +0000 (19:07 +0200)] 
[3.14] Fix the doctest.testmod() docstring (GH-136675) (GH-136690)

__test__ = None is not supported since Python 2.4.
(cherry picked from commit cb59eaefeda5ff44ac0c742bff2b8afc023be313)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.14] Fix index entry and anchor for module.__test__ (GH-136674) (GH-136688)
Miss Islington (bot) [Tue, 15 Jul 2025 15:58:52 +0000 (17:58 +0200)] 
[3.14] Fix index entry and anchor for module.__test__ (GH-136674) (GH-136688)

It was "doctest.module attribute". Now it is "module attribute".
(cherry picked from commit 7689407fa4406ab79d7e9e02363f50be4ec35b5e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.14] gh-136396: Include instrumentation when creating new copies of the bytecode...
Miss Islington (bot) [Tue, 15 Jul 2025 15:10:37 +0000 (17:10 +0200)] 
[3.14] gh-136396: Include instrumentation when creating new copies of the bytecode (GH-136525) (GH-136657)

Previously, we assumed that instrumentation would happen for all copies of
the bytecode if the instrumentation version on the code object didn't match
the per-interpreter instrumentation version. That assumption was incorrect:
instrumentation will exit early if there are no new "events," even if there
is an instrumentation version mismatch.

To fix this, include the instrumented opcodes when creating new copies of
the bytecode, rather than replacing them with their uninstrumented variants.
I don't think we have to worry about races between instrumentation and creating
new copies of the bytecode: instrumentation and new bytecode creation cannot happen
concurrently. Instrumentation requires that either the world is stopped or the
code object's per-object lock is held and new bytecode creation requires holding
the code object's per-object lock.
(cherry picked from commit d995922198304a6de19ac1bec3e36d1e886d8468)

Co-authored-by: mpage <mpage@meta.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
4 months ago[3.14] gh-136682: Remove incorrect statement that `os.path.samestat` accepts file...
Miss Islington (bot) [Tue, 15 Jul 2025 12:59:38 +0000 (14:59 +0200)] 
[3.14] gh-136682: Remove incorrect statement that `os.path.samestat` accepts file-like objects (GH-136683) (#136684)

gh-136682: Remove incorrect statement that `os.path.samestat` accepts file-like objects (GH-136683)
(cherry picked from commit 7e10a103dfe52feb0ef3d541e08abc2640838101)

Co-authored-by: Ran Benita <ran@unusedvar.com>
4 months ago[3.14] gh-72570: mention the incompatibility of XOFs with HMAC (GH-136676) (#136678)
Miss Islington (bot) [Tue, 15 Jul 2025 12:09:54 +0000 (14:09 +0200)] 
[3.14] gh-72570: mention the incompatibility of XOFs with HMAC (GH-136676) (#136678)

gh-72570: mention the incompatibility of XOFs with HMAC (GH-136676)
(cherry picked from commit a02cf19deed353d1e0e7564468f10aced61c12e8)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 months ago[3.14] GH-132661: Add ``string.templatelib.convert()`` (GH-135217) (#136671)
Miss Islington (bot) [Tue, 15 Jul 2025 10:22:24 +0000 (12:22 +0200)] 
[3.14] GH-132661: Add ``string.templatelib.convert()`` (GH-135217) (#136671)

GH-132661: Add ``string.templatelib.convert()`` (GH-135217)
(cherry picked from commit 5b969fd64502a6e2ba6513e2b18beaeae58b8aa1)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 months ago[3.14] gh-131189: Fix "msvcrt" import warning on Linux when "_ctypes" is not availabl...
Miss Islington (bot) [Tue, 15 Jul 2025 08:12:45 +0000 (10:12 +0200)] 
[3.14] gh-131189: Fix "msvcrt" import warning on Linux when "_ctypes" is not available. (GH-131201) (GH-136668)

Fix "msvcrt" import warning on Linux when "_ctypes" is not available.

On Linux, compiling without "libffi" causes a
"No module named 'msvcrt'" warning when launching PyREPL.
(cherry picked from commit f320c951c3220aa6727b581216463e8b3f8bcd6b)

Co-authored-by: Dzmitry Plashchynski <plashchynski@gmail.com>
4 months ago[3.14] gh-136663: fix signatures of PyFloat_Pack/Unpack in docs (GH-136664) (#136666)
Miss Islington (bot) [Tue, 15 Jul 2025 05:36:47 +0000 (07:36 +0200)] 
[3.14] gh-136663: fix signatures of PyFloat_Pack/Unpack in docs (GH-136664) (#136666)

gh-136663: fix signatures of PyFloat_Pack/Unpack in docs (GH-136664)
(cherry picked from commit e4654e0b3e7d802c8fe984cf39a36a42b67de1ad)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
4 months ago[3.14] gh-116738: Make grp module thread-safe (GH-135434) (#136658)
Miss Islington (bot) [Tue, 15 Jul 2025 05:33:33 +0000 (07:33 +0200)] 
[3.14] gh-116738: Make grp module thread-safe (GH-135434) (#136658)

gh-116738: Make grp module thread-safe (GH-135434)

Make grp module methods getgrgid() and getgrnam() thread-safe when the GIL is disabled and getgrgid_r()/getgrnam_r() C APIs are not available.
---------
(cherry picked from commit 9363703bd3bf86e363c14a02e3d729caf1e29f44)

Co-authored-by: Alper <alperyoney@fb.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
4 months ago[3.14] Partially revert "gh-101100: Fix sphinx warnings in `library/email.parser...
Miss Islington (bot) [Mon, 14 Jul 2025 10:19:23 +0000 (12:19 +0200)] 
[3.14] Partially revert "gh-101100: Fix sphinx warnings in `library/email.parser.rst` (GH-136475)" (GH-136629) (#136646)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.14] gh-127146: Emscripten: Fix test_open_undecodable_uri by setting `-sTEXTDECODER...
Miss Islington (bot) [Mon, 14 Jul 2025 02:49:36 +0000 (04:49 +0200)] 
[3.14] gh-127146: Emscripten: Fix test_open_undecodable_uri by setting `-sTEXTDECODER=2` (GH-136624) (#136631)

Removes the JS text decoder fallback and gets rid of the bugs due to the differences
in behavior on invalid utf8 strings. See https://github.com/emscripten-core/emscripten/issues/24690.
(cherry picked from commit 283b05052338dd735cd4927011afc3735d9c6c7c)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] gh-135256: Simplify parsing parameters in Argument Clinic (GH-135257) (1219141...
Miss Islington (bot) [Sun, 13 Jul 2025 20:52:02 +0000 (22:52 +0200)] 
[3.14] gh-135256: Simplify parsing parameters in Argument Clinic (GH-135257) (121914136635)

(cherry picked from commit b74fb8e220a50a9580320dfd398a16995b845c69)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.14] gh-127971: fix off-by-one read beyond the end of a string during search (GH...
Miss Islington (bot) [Sun, 13 Jul 2025 13:58:03 +0000 (15:58 +0200)] 
[3.14] gh-127971: fix off-by-one read beyond the end of a string during search (GH-132574) (#136628)

gh-127971: fix off-by-one read beyond the end of a string during search (GH-132574)
(cherry picked from commit 85ec3b3b503ffd5b7e45f8b3fa2cec0c10e4bef0)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
4 months ago[3.14] gh-42237: Link to complete list of codec aliases (GH-136625) (#136626)
Miss Islington (bot) [Sun, 13 Jul 2025 13:19:23 +0000 (15:19 +0200)] 
[3.14] gh-42237: Link to complete list of codec aliases (GH-136625) (#136626)

gh-42237: Link to complete list of codec aliases (GH-136625)

Closes GH-42237
(cherry picked from commit a93d9aaf62bb2565e9eec00a2a8d06a91305127b)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.14] gh-132346: Docs: Clarify that reference counts aren't stable between versions...
Miss Islington (bot) [Sun, 13 Jul 2025 09:17:48 +0000 (11:17 +0200)] 
[3.14] gh-132346: Docs: Clarify that reference counts aren't stable between versions (GH-132352) (GH-136613)

gh-132346: Docs: Clarify that reference counts aren't stable between versions (GH-132352)
(cherry picked from commit 3dbe02ccd3eefc48ac9fa14427bb4cdb82d1ebae)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
4 months ago[3.14] gh-134833: improve docs for `del s[i:j]` in `Mutable Sequence Types` (GH-13483...
Miss Islington (bot) [Sun, 13 Jul 2025 06:58:45 +0000 (08:58 +0200)] 
[3.14] gh-134833: improve docs for `del s[i:j]` in `Mutable Sequence Types` (GH-134834) (#136608)

gh-134833: improve docs for `del s[i:j]` in `Mutable Sequence Types` (GH-134834)
(cherry picked from commit 609d5adc7cc241da8fe314a64ddd2c8a883ee8b7)

Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>