]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 weeks ago[3.15] gh-150636: Clarify difference between copy.copy() and the copy() methods ...
Miss Islington (bot) [Sun, 31 May 2026 12:16:58 +0000 (14:16 +0200)] 
[3.15] gh-150636: Clarify difference between copy.copy() and the copy() methods (GH-150637) (GH-150665)

(cherry picked from commit 1de909b32411fc1c4d4c42b4f8221b86096c6353)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
4 weeks ago[3.15] Correct frexp() docs for zero and non-finite numbers (GH-149753) (GH-150652)
Miss Islington (bot) [Sun, 31 May 2026 10:04:18 +0000 (12:04 +0200)] 
[3.15] Correct frexp() docs for zero and non-finite numbers (GH-149753) (GH-150652)

0.5 <= abs(m) < 1 is only true for finite nonzero numbers
(cherry picked from commit 5b5ffce05c211a5b0b74cd95eeb4c463614ee136)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
4 weeks ago[3.15] gh-131178: Fix mimetypes CLI docs, mention that errors go to stdout (GH-149683...
Miss Islington (bot) [Sun, 31 May 2026 08:14:15 +0000 (10:14 +0200)] 
[3.15] gh-131178: Fix mimetypes CLI docs, mention that errors go to stdout (GH-149683) (#150655)

gh-131178: Fix mimetypes CLI docs, mention that errors go to stdout (GH-149683)
(cherry picked from commit 2b94b923943a1f75cdbd5a5e4e2eb5f93eb43e23)

Co-authored-by: htjworld <116538001+htjworld@users.noreply.github.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
4 weeks ago[3.15] gh-150524: Remove outdated note in binascii.a2b_hex() documentation (GH-150525...
Miss Islington (bot) [Sun, 31 May 2026 07:52:55 +0000 (09:52 +0200)] 
[3.15] gh-150524: Remove outdated note in binascii.a2b_hex() documentation (GH-150525) (GH-150627)

bytes.fromhex() accepts ASCII bytes and bytes-like objects as input since 3.14
(cherry picked from commit af10734907d2d7df4c4d754174804aec7c5d6a72)

Co-authored-by: Joshix-1 <57299889+Joshix-1@users.noreply.github.com>
4 weeks ago[3.15] gh-117291: Explain usage of null bytes in Array(c_char).value (GH-117292)...
Miss Islington (bot) [Sun, 31 May 2026 07:28:45 +0000 (09:28 +0200)] 
[3.15] gh-117291: Explain usage of null bytes in Array(c_char).value (GH-117292) (GH-150649)

(cherry picked from commit 73d8e9a47cc13ce1b9b1bdfdeaa958639b144f55)

Co-authored-by: Patrick Rauscher <prauscher@prauscher.de>
4 weeks ago[3.15] gh-149857: Clarify multiprocessing Process argument wording (GH-149919) (...
Miss Islington (bot) [Sun, 31 May 2026 04:22:11 +0000 (06:22 +0200)] 
[3.15] gh-149857: Clarify multiprocessing Process argument wording (GH-149919) (#149933)

gh-149857: Clarify multiprocessing Process argument wording (GH-149919)

Use consistent 'picklable' wording
(cherry picked from commit 1bab6c919212cbac9be9e37bbd4d85865051f17f)

Co-authored-by: Mani Salahmand <78011313+ManiSalahmand@users.noreply.github.com>
4 weeks ago[3.15] gh-141444:fix broken URLs and examples in urllib.request.rst (GH-144863) ...
Miss Islington (bot) [Sun, 31 May 2026 04:08:20 +0000 (06:08 +0200)] 
[3.15] gh-141444:fix broken URLs and examples in urllib.request.rst (GH-144863) (#150642)

gh-141444:fix broken URLs and examples in urllib.request.rst (GH-144863)

* Doc: fix broken URLs and examples in urllib.request.rst (gh-141444)

* Doc: update urllib.request examples to handle gzip compression

---------
(cherry picked from commit 0f1f7c7889873deb7c2e2c3f18695bf636e7752c)

Co-authored-by: Paper Moon <tangyuan0821@email.cn>
Co-authored-by: Senthil Kumaran <senthil@python.org>
4 weeks ago[3.15] gh-150406: Check result of PyThread_allocate_lock() for netdb_lock (GH-150407...
Miss Islington (bot) [Sat, 30 May 2026 17:15:02 +0000 (19:15 +0200)] 
[3.15] gh-150406: Check result of PyThread_allocate_lock() for netdb_lock (GH-150407) (GH-150616)

(cherry picked from commit 1e18c45495185cb547d43c3dd4c1cbdd8482867b)

Co-authored-by: Thomas Kowalski <thom.kowa@gmail.com>
4 weeks ago[3.15] gh-129851: Fix the documentation for -m command (GH-129862) (GH-150614)
Miss Islington (bot) [Sat, 30 May 2026 17:03:58 +0000 (19:03 +0200)] 
[3.15] gh-129851: Fix the documentation for -m command (GH-129862) (GH-150614)

(cherry picked from commit 9baa7c63bee1ad2b243f16109a3fd206a1f13a6a)

Co-authored-by: Dhruv Singla <68206552+d-s-dc@users.noreply.github.com>
4 weeks ago[3.15] gh-135898: Add section to free-threading howto about memory usage (GH-143279...
Miss Islington (bot) [Sat, 30 May 2026 10:49:26 +0000 (12:49 +0200)] 
[3.15] gh-135898: Add section to free-threading howto about memory usage (GH-143279) (#150607)

gh-135898: Add section to free-threading howto about memory usage (GH-143279)
(cherry picked from commit 62a45fa91c64bd1e1ad46ed66c07b65a7971042e)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
4 weeks ago[3.15] gh-150501: Correct `inspect.getattr_static` docs signature (GH-150504) (#150601)
Miss Islington (bot) [Sat, 30 May 2026 09:25:38 +0000 (11:25 +0200)] 
[3.15] gh-150501: Correct `inspect.getattr_static` docs signature (GH-150504) (#150601)

gh-150501: Correct `inspect.getattr_static` docs signature (GH-150504)
(cherry picked from commit 678fd8452cc2d7f9a50cb5d4e5ae44a60b724248)

Co-authored-by: Jonathan Dung <jonathandung@yahoo.com>
4 weeks ago[3.15] gh-149489: Fix ElementTree serialization to HTML (GH-149490) (GH-150595)
Serhiy Storchaka [Fri, 29 May 2026 21:48:10 +0000 (00:48 +0300)] 
[3.15] gh-149489: Fix ElementTree serialization to HTML (GH-149490) (GH-150595)

* The content of comments, processing instructions and elements "xmp",
  "iframe", "noembed", "noframes", and "plaintext" is no longer escaped.
* The "plaintext" element no longer have the closing tag.
* Add support of empty attributes (with value None).
(cherry picked from commit bcd29e466f55d8b4e3849ed6ada8ce86a46f5072)

4 weeks ago[3.15] gh-149056: Properly pass array_hook in json.load() to json.loads() (GH-149057...
Miss Islington (bot) [Fri, 29 May 2026 21:30:50 +0000 (23:30 +0200)] 
[3.15] gh-149056: Properly pass array_hook in json.load() to json.loads() (GH-149057) (GH-150591)

(cherry picked from commit f87d9605d3f9489d33aaf97a97fa9cb81cd7cc40)

Co-authored-by: Thomas Kowalski <thom.kowa@gmail.com>
4 weeks ago[3.15] gh-150403: Document frozendict in language reference Mappings section (GH...
Miss Islington (bot) [Fri, 29 May 2026 19:48:48 +0000 (21:48 +0200)] 
[3.15] gh-150403: Document frozendict in language reference Mappings section (GH-150404) (GH-150590)

(cherry picked from commit 779694faba3e80b944f528a56e9b756b55637541)

Co-authored-by: Oral Ersoy Dokumacı <oral.ersoy.dokumaci@gmail.com>
4 weeks ago[3.15] Add a security warning about `pydoc`'s HTTP server (#150573)
Miss Islington (bot) [Fri, 29 May 2026 19:07:29 +0000 (21:07 +0200)] 
[3.15] Add a security warning about `pydoc`'s HTTP server (#150573)

(cherry picked from commit 5535c1f9c08e929f96fa5d798277e3a2c91ed12a)

Co-authored-by: Stan Ulbrych <stan@python.org>
4 weeks ago[3.15] gh-150107: Fix asyncio sendfile fallback ignoring non-zero offset (GH-150270...
Miss Islington (bot) [Fri, 29 May 2026 13:10:56 +0000 (15:10 +0200)] 
[3.15] gh-150107: Fix asyncio sendfile fallback ignoring non-zero offset (GH-150270) (#150570)

gh-150107: Fix asyncio sendfile fallback ignoring non-zero offset (GH-150270)
(cherry picked from commit c72d5ea638731ec29723ded2d26ec7f997f06f17)

Co-authored-by: Grant Herman <grantlouisherman041@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 weeks ago[3.15] gh-141984: Reword docs on "enclosed" atom grammar (GH-148622) (GH-150552)
Petr Viktorin [Fri, 29 May 2026 08:09:38 +0000 (10:09 +0200)] 
[3.15] gh-141984: Reword docs on "enclosed" atom grammar (GH-148622) (GH-150552)

Reorganize and reword the docs on atoms in parentheses, brackets and braces:
parenthesized groups, list/set/dict/tuple displays, and comprehensions.
(Generator expressions and yield atoms are left for later.)

In the spirit of better matching the underlying grammar, *comprehensions* are
covered separately from non-comprehension displays. Also, parenthesized forms
(with a single expression) and tuple displays are separated.
All sections are rewritten to start with simple cases and build up to the full
formal grammar.

(cherry picked from commit 55f25183263b9a52fa246817344cdb32d6c3d722)

Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 weeks ago[3.15] gh-149029: Update SQLite to 3.53.1 for binary releases (GH-149767) (#150559)
Miss Islington (bot) [Thu, 28 May 2026 22:57:04 +0000 (00:57 +0200)] 
[3.15] gh-149029: Update SQLite to 3.53.1 for binary releases (GH-149767) (#150559)

(cherry picked from commit 9242700c149c490c56d2a415b395b5f51d94a49a)

Co-authored-by: Adam Johnson <me@adamj.eu>
Co-authored-by: Ned Deily <nad@python.org>
4 weeks ago[3.15] gh-150046: Fix `test_add_python_opts` to ignore `PYTHON*` env vars (GH-150089...
Miss Islington (bot) [Thu, 28 May 2026 17:15:27 +0000 (19:15 +0200)] 
[3.15] gh-150046: Fix `test_add_python_opts` to ignore `PYTHON*` env vars (GH-150089) (#150561)

gh-150046: Fix `test_add_python_opts` to ignore `PYTHON*` env vars (GH-150089)

Avoid the runtime environment from affecting the tests' behaviours,
which notably checks the warning filters which can be controlled by
various PYTHON environment variables.
(cherry picked from commit ef2246f788832a64ba7c5215c8e72f8e539e59b4)

Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
4 weeks ago[3.15] Add prominent crash warning to `ctypes` docs (GH-150410) (GH-150547)
Miss Islington (bot) [Thu, 28 May 2026 10:23:56 +0000 (12:23 +0200)] 
[3.15] Add prominent crash warning to `ctypes` docs (GH-150410) (GH-150547)

(cherry picked from commit b53f6ca850b500621474e82931c3e7216d9a1cb1)

Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 weeks ago[3.15] gh-84353: Preserve non-UTF-8 filenames when appending to ZipFile (GH-150091...
Miss Islington (bot) [Wed, 27 May 2026 21:47:03 +0000 (23:47 +0200)] 
[3.15] gh-84353: Preserve non-UTF-8 filenames when appending to ZipFile (GH-150091) (GH-150527)

Preserve non-UTF-8 filenames when appending to a ZipFile.

---------
(cherry picked from commit 24c6bbc92b6dd0ce9b7ff799049498299f70f97d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 weeks ago[3.15] gh-149861: Fix rule in match statement `case_block` PEG grammar (GH-149908)
Miss Islington (bot) [Wed, 27 May 2026 15:24:47 +0000 (17:24 +0200)] 
[3.15] gh-149861: Fix rule in match statement `case_block` PEG grammar (GH-149908)

(cherry picked from commit 99c254e2f79a4197524bef61bf0d12251ee273e6)

Co-authored-by: Ivy Xu <fakeshadow1337@gmail.com>
4 weeks ago[3.15] gh-150389: Make perf profiler tests resilient (GH-150437) (#150515)
Miss Islington (bot) [Wed, 27 May 2026 12:52:48 +0000 (14:52 +0200)] 
[3.15] gh-150389: Make perf profiler tests resilient (GH-150437) (#150515)

4 weeks ago[3.15] gh-149571: Fix the C implementation of Element.itertext() (GH-149929) (GH...
Miss Islington (bot) [Wed, 27 May 2026 10:52:02 +0000 (12:52 +0200)] 
[3.15] gh-149571: Fix the C implementation of Element.itertext() (GH-149929) (GH-150509)

It no longer emits text for comments and processing instructions.
(cherry picked from commit 7de4fcd44585f572acbcee23f5c7018b2b3f0983)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 weeks ago[3.15] gh-150175: Fix ThreadingMock call_count race condition (GH-150176) (#150182)
Miss Islington (bot) [Tue, 26 May 2026 19:46:16 +0000 (21:46 +0200)] 
[3.15] gh-150175: Fix ThreadingMock call_count race condition (GH-150176) (#150182)

gh-150175: Fix ThreadingMock call_count race condition (GH-150176)

ThreadingMock._increment_mock_call() was not thread-safe.
Multiple threads calling the mock simultaneously could lose
increments due to race conditions on call_count and other
attributes.

Fix by overriding _increment_mock_call in ThreadingMixin
and wrapping it with the existing _mock_calls_events_lock.
(cherry picked from commit 388e023fe1197c1ffed374520ed45df4ac72b8f5)

Co-authored-by: saisneha196 <156835592+saisneha196@users.noreply.github.com>
5 weeks ago[3.15] gh-88726: Stop using non-standard charset names eucgb2312_cn and big5_tw in...
Miss Islington (bot) [Tue, 26 May 2026 19:21:36 +0000 (21:21 +0200)] 
[3.15] gh-88726: Stop using non-standard charset names eucgb2312_cn and big5_tw in email (GH-149959) (GH-150491)

(cherry picked from commit 5e467f4331d4cb7a8e2986c27af7eb68ccaccb37)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 weeks ago[3.15] gh-148557: Use em-config to locate trampoline clang (GH-148556) (#150481)
Miss Islington (bot) [Tue, 26 May 2026 17:05:11 +0000 (19:05 +0200)] 
[3.15] gh-148557: Use em-config to locate trampoline clang (GH-148556) (#150481)

When CC is wrapped by ccache, the Emscripten trampoline rule cannot derive the
matching clang path by treating CC as a single executable path. Query the active
LLVM toolchain path with em-config instead.
(cherry picked from commit 1310d2c25242041f0a218012426fba14e756eef8)

Co-authored-by: Clément Péron <peron.clem@gmail.com>
5 weeks ago[3.15] gh-150443: Exclude explicit dup3 and pipe2 checks on iOS builds. (GH-150444...
Miss Islington (bot) [Tue, 26 May 2026 04:03:35 +0000 (06:03 +0200)] 
[3.15] gh-150443: Exclude explicit dup3 and pipe2 checks on iOS builds. (GH-150444) (#150446)

Exclude explicit dup3 and pipe2 checks on iOS builds.
(cherry picked from commit 629da5c914b4407e01c1dc06cbcbd8dce825fef3)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
5 weeks ago[3.15] gh-149931: Fix memory leaks on failed realloc (GH-149932) (#150439)
Miss Islington (bot) [Tue, 26 May 2026 01:04:49 +0000 (03:04 +0200)] 
[3.15] gh-149931: Fix memory leaks on failed realloc (GH-149932) (#150439)

5 weeks ago[3.15] gh-149619: Harden _remote_debugging error paths (GH-150349) (#150434)
Miss Islington (bot) [Mon, 25 May 2026 23:15:56 +0000 (01:15 +0200)] 
[3.15] gh-149619: Harden _remote_debugging error paths (GH-150349) (#150434)

gh-149619: Harden _remote_debugging error paths (GH-150349)
(cherry picked from commit a5be25d3bdc1b3cbc9638a3249c0e3db5a97ebc6)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
5 weeks ago[3.15] gh-149619: Harden _remote_debugging error paths (GH-150349) (#150435)
Pablo Galindo Salgado [Mon, 25 May 2026 23:02:37 +0000 (00:02 +0100)] 
[3.15] gh-149619: Harden _remote_debugging error paths (GH-150349) (#150435)

(cherry picked from commit a5be25d3bdc1b3cbc9638a3249c0e3db5a97ebc6)

5 weeks ago[3.15] gh-150387: Fix hang in test_run_failed_script_live on slow buildbots (GH-15040...
Miss Islington (bot) [Mon, 25 May 2026 18:46:19 +0000 (20:46 +0200)] 
[3.15] gh-150387: Fix hang in test_run_failed_script_live on slow buildbots (GH-150405) (#150420)

5 weeks ago[3.15] gh-80198: Improve test_pwd and test_grp (GH-150380) (GH-150398)
Serhiy Storchaka [Mon, 25 May 2026 18:43:23 +0000 (21:43 +0300)] 
[3.15] gh-80198: Improve test_pwd and test_grp (GH-150380) (GH-150398)

Fix tests for non-existing names and ids when getpwall()/getgrall()
don't return all users/groups.

Add tests for out-of-range uids, integer float ids, bytes names,
null-terminated names, names with surrogates, empty names, excessive
arguments.
(cherry picked from commit 46e8f7a9e794bfb0fdc5ee82348623eb2b91a0b5)

5 weeks ago[3.15] gh-149156: Fix perf trampoline crash after fork (GH-150347) (#150394)
Miss Islington (bot) [Mon, 25 May 2026 18:19:22 +0000 (20:19 +0200)] 
[3.15] gh-149156: Fix perf trampoline crash after fork (GH-150347) (#150394)

5 weeks ago[3.15] gh-145896: Fix typos and stale docstrings in the traceback module (GH-145897...
Miss Islington (bot) [Mon, 25 May 2026 10:13:01 +0000 (12:13 +0200)] 
[3.15] gh-145896: Fix typos and stale docstrings in the traceback module (GH-145897) (GH-150383)

(cherry picked from commit 832afeddcea78e40d39c47cd1893f8137e588e72)

Co-authored-by: devdanzin <74280297+devdanzin@users.noreply.github.com>
5 weeks ago[3.15] gh-150374: Fix double release of import lock in lazy import reification (GH...
Miss Islington (bot) [Mon, 25 May 2026 09:36:22 +0000 (11:36 +0200)] 
[3.15] gh-150374: Fix double release of import lock in lazy import reification (GH-150376) (#150378)

gh-150374: Fix double release of import lock in lazy import reification (GH-150376)
(cherry picked from commit 5498eba545e950c7550c924f2e458c740a689c69)

Co-authored-by: pengyu lee <lipengyu@kylinos.cn>
5 weeks ago[3.15] gh-150285: Fix too long docstrings in some Python modules (GH-150366) (GH...
Miss Islington (bot) [Mon, 25 May 2026 08:19:36 +0000 (10:19 +0200)] 
[3.15] gh-150285: Fix too long docstrings in some Python modules (GH-150366) (GH-150375)

(cherry picked from commit 01c6d3d76bf222d8b847c97e0a3d3fad0c1b1fe3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 weeks ago[3.15] gh-150285: Fix too long docstrings in _wmi.exec_query (GH-150373) (GH-150377)
Miss Islington (bot) [Mon, 25 May 2026 08:19:05 +0000 (10:19 +0200)] 
[3.15] gh-150285: Fix too long docstrings in _wmi.exec_query (GH-150373) (GH-150377)

(cherry picked from commit fbeafc062e55a52ba7369c36be0b3eb34eabb560)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 weeks ago[3.15] gh-149449: Fix use-after-free in `_PyUnicode_GetNameCAPI` (GH-150323) (#150352)
Miss Islington (bot) [Mon, 25 May 2026 07:05:24 +0000 (09:05 +0200)] 
[3.15] gh-149449: Fix use-after-free in `_PyUnicode_GetNameCAPI` (GH-150323) (#150352)

gh-149449: Fix use-after-free in `_PyUnicode_GetNameCAPI` (GH-150323)
(cherry picked from commit 43c60ec2fddd316a4a6b7b6c68eae7cb66df0850)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 weeks ago[3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH...
Serhiy Storchaka [Sun, 24 May 2026 19:31:19 +0000 (22:31 +0300)] 
[3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350)

(cherry picked from commit 287c98f4cb40c15d638651de4b29ae98b92589aa)

5 weeks ago[3.15] gh-110704: Recommend `distclean` target over `clean` when source tree is not...
Miss Islington (bot) [Sun, 24 May 2026 15:47:29 +0000 (17:47 +0200)] 
[3.15] gh-110704: Recommend `distclean` target over `clean` when source tree is not clean (GH-112610) (#150342)

gh-110704: Recommend `distclean` target over `clean` when source tree is not clean (GH-112610)

Recommend `distclean` target over `clean` when source tree is not clean
(cherry picked from commit 34631058f2aec6752ebfc50d40958b247532f536)

Co-authored-by: James <6125322+SnoopJ@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
5 weeks ago[3.15] gh-150285: Fix too long docstrings in the os module (GH-150296) (GH-150341)
Serhiy Storchaka [Sun, 24 May 2026 13:53:29 +0000 (16:53 +0300)] 
[3.15] gh-150285: Fix too long docstrings in the os module (GH-150296) (GH-150341)

(cherry picked from commit a5cb7c34dd25aaa639a512f0dbbaaa6c9e03f1a1)

5 weeks ago[3.15] gh-150285: Fix too long docstrings in the sqlite3 module (GH-150290) (GH-150340)
Miss Islington (bot) [Sun, 24 May 2026 13:43:38 +0000 (15:43 +0200)] 
[3.15] gh-150285: Fix too long docstrings in the sqlite3 module (GH-150290) (GH-150340)

(cherry picked from commit 0466560b310fa74c38270328d66d6a16df95ec34)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 weeks ago[3.15] gh-150285: Fix too long docstrings in the pyexpat module (GH-150294) (GH-150337)
Miss Islington (bot) [Sun, 24 May 2026 13:41:40 +0000 (15:41 +0200)] 
[3.15] gh-150285: Fix too long docstrings in the pyexpat module (GH-150294) (GH-150337)

(cherry picked from commit 9da7923835a4c72e738551bbd78b8179a81286ad)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 weeks ago[3.15] gh-149619: Fix `_remote_debugging` permissions error on Linux (GH-150012)...
Miss Islington (bot) [Sun, 24 May 2026 13:39:29 +0000 (15:39 +0200)] 
[3.15] gh-149619: Fix `_remote_debugging` permissions error on Linux (GH-150012) (#150339)

gh-149619: Fix `_remote_debugging` permissions error on Linux (GH-150012)

When running profiling on Linux without sudo, attempts to read
process memory would fail with the misleading error 'Failed to find
the PyRuntime section in process <pid> on Linux platform'.

The actual issue is a permissions error because profiling was not
run with sudo. We were clearing the exception on Linux when trying
to read memory, instead, we should bubble up the permissions error
and show it properly.
(cherry picked from commit 0563890872b3c63f94953e983fe396615b708540)

Co-authored-by: ivonastojanovic <80911834+ivonastojanovic@users.noreply.github.com>
5 weeks ago[3.15] gh-149018: Use `XML_SetHashSalt16Bytes` in `pyexpat`/`_elementtree` when possi...
Miss Islington (bot) [Sun, 24 May 2026 13:36:30 +0000 (15:36 +0200)] 
[3.15] gh-149018: Use `XML_SetHashSalt16Bytes` in `pyexpat`/`_elementtree` when possible (#149645)

(cherry picked from commit 24b8f12544468e4cedf5bfbe25442fcd495391e4)

Co-authored-by: Stan Ulbrych <stan@python.org>
5 weeks ago[3.15] gh-150285: Fix too long docstrings in builtins (GH-150293) (GH-150336)
Miss Islington (bot) [Sun, 24 May 2026 13:24:57 +0000 (15:24 +0200)] 
[3.15] gh-150285: Fix too long docstrings in builtins (GH-150293) (GH-150336)

(cherry picked from commit e1e06be11908ddb6935e8df35f972879dd1bc3d8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 weeks ago[3.15] gh-150285: Fix too long docstrings in the zstd module (GH-150291) (GH-150335)
Miss Islington (bot) [Sun, 24 May 2026 13:24:34 +0000 (15:24 +0200)] 
[3.15] gh-150285: Fix too long docstrings in the zstd module (GH-150291) (GH-150335)

(cherry picked from commit 9fceb1c0c5c5ad527bc257b115bcf45995daf631)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 weeks ago[3.15] gh-150285: Fix too long docstrings in the decimal module (GH-150288) (GH-150333)
Miss Islington (bot) [Sun, 24 May 2026 13:24:08 +0000 (15:24 +0200)] 
[3.15] gh-150285: Fix too long docstrings in the decimal module (GH-150288) (GH-150333)

(cherry picked from commit 6bed57a3b659a34c4a7d75e76f4fe840f762bf7f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 weeks ago[3.15] gh-150285: Fix too long docstrings in the io module (GH-150287) (GH-150332)
Miss Islington (bot) [Sun, 24 May 2026 13:23:45 +0000 (15:23 +0200)] 
[3.15] gh-150285: Fix too long docstrings in the io module (GH-150287) (GH-150332)

(cherry picked from commit 160dc74122ed4e31540b2ef2c77bda122b02c94a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 weeks ago[3.15] gh-150285: Fix too long docstrings in the curses module (GH-150286) (GH-150331)
Miss Islington (bot) [Sun, 24 May 2026 13:23:25 +0000 (15:23 +0200)] 
[3.15] gh-150285: Fix too long docstrings in the curses module (GH-150286) (GH-150331)

(cherry picked from commit 4c0fe2d134f6ddaa4c705ffba073d9d5874b7fe4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 weeks ago[3.15] gh-150285: Fix too long docstrings in the _remote_debugging module (GH-150289...
Miss Islington (bot) [Sun, 24 May 2026 13:09:13 +0000 (15:09 +0200)] 
[3.15] gh-150285: Fix too long docstrings in the _remote_debugging module (GH-150289) (#150334)

gh-150285: Fix too long docstrings in the _remote_debugging module (GH-150289)
(cherry picked from commit cdc499ae775e5204ef6bbb0a63bb00e85b0b6b72)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 weeks ago[3.15] gh-148932: Docs / `profiling.sampling` Windows limitations (GH-150272) (#150330)
Miss Islington (bot) [Sun, 24 May 2026 12:02:45 +0000 (14:02 +0200)] 
[3.15] gh-148932: Docs / `profiling.sampling` Windows limitations (GH-150272) (#150330)

gh-148932: Docs / `profiling.sampling` Windows limitations (GH-150272)
(cherry picked from commit 0f32750fe26428de5e439803cf57f51847c81ce8)

Co-authored-by: Eduardo Villalpando Mello <eduardo.villalpando.mello@gmail.com>
5 weeks ago[3.15] gh-149335: Avoid JIT trace buffer asserts with overhead above `FITNESS_INITIAL...
Miss Islington (bot) [Sun, 24 May 2026 07:18:58 +0000 (09:18 +0200)] 
[3.15] gh-149335: Avoid JIT trace buffer asserts with overhead above `FITNESS_INITIAL` (GH-149633) (#150245)

gh-149335: Avoid JIT trace buffer asserts with overhead above `FITNESS_INITIAL` (GH-149633)
(cherry picked from commit 441af3a93426c5e7e3c056fee27e6f4505988584)

Co-authored-by: Hai Zhu <haiizhu@outlook.com>
5 weeks ago[3.15] gh-150178: Fix refcount leaks in hamt allocation failure paths (GH-150179...
Miss Islington (bot) [Sat, 23 May 2026 19:27:27 +0000 (21:27 +0200)] 
[3.15] gh-150178: Fix refcount leaks in hamt allocation failure paths (GH-150179) (#150303)

gh-150178: Fix refcount leaks in hamt allocation failure paths (GH-150179)
(cherry picked from commit 32823af153b76b7042fbce28ea8a6e0c3c4f1ca8)

Co-authored-by: pengyu lee <lipengyu@kylinos.cn>
5 weeks ago[3.15] gh-150258: Show relative percentage on Tachyon flamegraph (GH-150266) (#150312)
Miss Islington (bot) [Sat, 23 May 2026 15:30:19 +0000 (17:30 +0200)] 
[3.15] gh-150258: Show relative percentage on Tachyon flamegraph (GH-150266) (#150312)

gh-150258: Show relative percentage on Tachyon flamegraph (GH-150266)

When running profiling, users rarely care about the global percentage of
the runtime. Often, they want to select a function and measure child
percentages relative to that.

This PR updates the flamegraph tooltips to show both "Percentage" and
"Relative Percentage" when the user clicks a specific function.
(cherry picked from commit fad06746051f6bd95a255d49e38ebf049e965109)

Co-authored-by: Eduardo Villalpando Mello <eduardovil@microsoft.com>
5 weeks ago[3.15] gh-149816: add missing critical section on self in buffered_iternext (GH-15029...
Miss Islington (bot) [Sat, 23 May 2026 09:25:56 +0000 (11:25 +0200)] 
[3.15] gh-149816: add missing critical section on self in buffered_iternext (GH-150295) (#150305)

gh-149816: add missing critical section on self in buffered_iternext (GH-150295)
(cherry picked from commit e8545ed3eafbf349b51ea308126a67dc70416a62)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 weeks ago[3.15] gh-148450: `abc.register` needs to update `type_version` when `tp_flags` is...
Miss Islington (bot) [Sat, 23 May 2026 08:53:12 +0000 (10:53 +0200)] 
[3.15] gh-148450: `abc.register` needs to update `type_version` when `tp_flags` is changed (GH-148623) (#150300)

gh-148450: `abc.register` needs to update `type_version` when `tp_flags` is changed (GH-148623)
(cherry picked from commit e7eaed56149aa08f7fd5012784cc1deef8e483de)

Co-authored-by: Hai Zhu <haiizhu@outlook.com>
5 weeks ago[3.15] gh-150232: update Thread group parameter doc (GH-150283) (#150297)
Miss Islington (bot) [Sat, 23 May 2026 08:34:48 +0000 (10:34 +0200)] 
[3.15] gh-150232: update Thread group parameter doc (GH-150283) (#150297)

gh-150232: update Thread group parameter doc (GH-150283)
(cherry picked from commit 82191c6d2cdacad6751262a40a44d2cd6d390977)

Co-authored-by: My-ABC <569817555@qq.com>
5 weeks ago[3.15] gh-146452: Fix pickle segfault on concurrent mutation of dict in pickle (GH...
Miss Islington (bot) [Sat, 23 May 2026 07:33:21 +0000 (09:33 +0200)] 
[3.15] gh-146452: Fix pickle segfault on concurrent mutation of dict in pickle (GH-146470) (#150292)

gh-146452: Fix pickle segfault on concurrent mutation of dict in pickle (GH-146470)
(cherry picked from commit e62a61177f8b793d787e337034a740ca75c1ab44)

Co-authored-by: Farhan Saif <fsaif@uic.edu>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 weeks ago[3.15] Revert "[3.15] gh-146452: Improve locking granularity in pickle's batch_dict_e...
Victor Stinner [Sat, 23 May 2026 06:57:27 +0000 (08:57 +0200)] 
[3.15] Revert "[3.15] gh-146452: Improve locking granularity in pickle's batch_dict_exact and fix race condition (GH-150025) (#150039)" (#150262)

Revert "[3.15] gh-146452: Improve locking granularity in pickle's batch_dict_exact and fix race condition (GH-150025) (#150039)"

This reverts commit 66ade2861fec1d6c18998710938a1c71fde5f76b.

5 weeks ago[3.15] gh-82907: Document mtime=0 for reproducible tarfile gzip output (GH-150269...
Miss Islington (bot) [Fri, 22 May 2026 21:17:51 +0000 (23:17 +0200)] 
[3.15] gh-82907: Document mtime=0 for reproducible tarfile gzip output (GH-150269) (GH-150271)

(cherry picked from commit 9df2b6ccc719b0bc0167da65b72b57f9da39398b)

Co-authored-by: Omkar Kabde <omkarkabde@gmail.com>
5 weeks ago[3.15] gh-149189: Revert "Modern defaults for `pprint` (GH-149190)" (GH-150249) ...
Miss Islington (bot) [Fri, 22 May 2026 20:49:36 +0000 (22:49 +0200)] 
[3.15] gh-149189: Revert "Modern defaults for `pprint` (GH-149190)" (GH-150249) (#150268)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
5 weeks ago[3.15] gh-148829: Make sentinels' repr and module customizable (GH-149654) (#150092)
Miss Islington (bot) [Fri, 22 May 2026 14:44:34 +0000 (16:44 +0200)] 
[3.15] gh-148829: Make sentinels' repr and module customizable (GH-149654) (#150092)

Implementation of python/peps#4968.
(cherry picked from commit 08218030a507b2ef38db9696216bf3eb24d9a6a1)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
5 weeks ago[3.15] CI: Move Homebrew dependencies into Brewfile (GH-148335) (#149882)
Miss Islington (bot) [Fri, 22 May 2026 14:44:08 +0000 (16:44 +0200)] 
[3.15] CI: Move Homebrew dependencies into Brewfile (GH-148335) (#149882)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Brett Cannon <brett@python.org>
5 weeks ago[3.15] gh-149902: Remove dead packaging docs link and add a new section for external...
Miss Islington (bot) [Fri, 22 May 2026 11:40:49 +0000 (13:40 +0200)] 
[3.15] gh-149902: Remove dead packaging docs link and add a new section for external resources (GH-150030) (#150241)

Co-authored-by: Mia Albert <micha@2231puppy.tech>
Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
5 weeks ago[3.15] gh-137571: Protect against possible UnboundLocalError in gzip._GzipReader...
Miss Islington (bot) [Fri, 22 May 2026 09:46:14 +0000 (11:46 +0200)] 
[3.15] gh-137571: Protect against possible UnboundLocalError in gzip._GzipReader.read() (GH-150222) (GH-150229)

This has not been observed in practice, but we cannot be 100% sure that
it will not happen with some weird gzip data.
(cherry picked from commit 28eac9a7263ad8dcfa9b536aa238549131857e0f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 weeks ago[3.15] gh-133998: Fix gzip file creation when time is out of range (GH-134278) (GH...
Miss Islington (bot) [Fri, 22 May 2026 07:48:42 +0000 (09:48 +0200)] 
[3.15] gh-133998: Fix gzip file creation when time is out of range (GH-134278) (GH-150221)

(cherry picked from commit 1daad8a1630c9ee011f6ff3796c4e7aef243463b)

Co-authored-by: adang1345 <adang1345@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 weeks ago[3.15] gh-149995: Update typing.py docstrings and documentation (GH-149996) (#150215)
Miss Islington (bot) [Fri, 22 May 2026 06:41:43 +0000 (08:41 +0200)] 
[3.15] gh-149995: Update typing.py docstrings and documentation (GH-149996) (#150215)

gh-149995: Update typing.py docstrings and documentation (GH-149996)

Some of these docstrings read as if they were written when typing.py was
first written, and things have evolved since then.

A few motivations:
- Call protocols protocols instead of ABCs. They are also ABCs, but the fact
  they are protocols is more relevant to typing.
- Avoid recommending direct use of .__annotations__ and steer users to
  annotationlib instead.
- For TypedDict, mention NotRequired before total=False since it is more
  general and probably more frequently useful.
- For overloads, mention runtime use first instead of stub use. I think early on
  there was talk of allowing overload only in stubs, but it is now heavily used at
  runtime too and that's more likely to be relevant to users.
(cherry picked from commit f159419ae2ef1aebbd90ce9427b55e27738c960c)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
5 weeks ago[3.15] gh-148294: Make configure find g++ correctly (GH-150212)
Miss Islington (bot) [Fri, 22 May 2026 02:18:28 +0000 (04:18 +0200)] 
[3.15] gh-148294: Make configure find g++ correctly (GH-150212)

The `AC_PATH_TOOL` calls had included a duplicated argument, causing a "`PATH`"
consisting of `notfound` to be searched instead of `$PATH`.
(cherry picked from commit c613f72eeef83340cb369287f7c1a195e086d1d5)

Co-authored-by: sendaoYan <yansendao@126.com>
5 weeks ago[3.15] gh-149819: fix .pth and .start file processing in subprocess when inheriting...
Miss Islington (bot) [Thu, 21 May 2026 22:31:41 +0000 (00:31 +0200)] 
[3.15] gh-149819: fix .pth and .start file processing in subprocess when inheriting PYTHONPATH (GH-150177) (#150202)

gh-149819: fix .pth and .start file processing in subprocess when inheriting PYTHONPATH (GH-150177)

* gh-149819: Fix .pth files not loaded in Python subprocesses

After PR gh-149583 (Fix double evaluation of .pth and .site files in
venvs), .pth files are no longer loaded in subprocesses started with
subprocess.run([sys.executable, ...]).  The root cause: main() seeds
known_paths from removeduppaths() with all sys.path entries inherited
from the parent process.  addsitedir() then skips .pth processing for
every directory already in known_paths.

Fix:
- main(): call removeduppaths() for dedup but start known_paths as a
  fresh empty set, so that addsitedir() processes .pth files in every
  site-packages directory regardless of inherited sys.path.
- addsitedir(): move known_paths.add() before the sys.path.append and
  guard the append with 'sitedir not in sys.path' to avoid creating
  duplicate entries when called with a fresh known_paths.

This preserves the gh-75723 dedup guarantee while allowing subprocesses
to load .pth files.

* Fill out the tests for GH#149888

* Extend _make_start() and _make_pth() to take an optional `basedir` which is used instead of
 `site.tmpdir` if given.
* Add test_pth_processed_when_sitedir_already_on_path() to test the core GH#149819 bug: .pth files
  in subprocesses aren't handled if PYTHONPATH pointing to the .pth directory is inherited.
* Similarly add test_start_processed_when_sitedir_already_on_path() to verify that .start files in
  the same circumstances are also now processed.

* Update Lib/site.py

* Oops!  Remove redundant code

---------
(cherry picked from commit 3c298e2e385fc6f462abaada2fd680deb1a2b58e)

Co-authored-by: Barry Warsaw <barry@python.org>
Co-authored-by: BugBounty Mind <bugbounty-mind@deepseek.tui>
Co-authored-by: scoder <stefan_ml@behnel.de>
5 weeks ago[3.15] gh-107398: Fix tarfile stream mode exception when process the file with the...
Miss Islington (bot) [Thu, 21 May 2026 20:02:10 +0000 (22:02 +0200)] 
[3.15] gh-107398: Fix tarfile stream mode exception when process the file with the gzip extra field (GH-126304) (GH-150199)

(cherry picked from commit 65f99329edf5d0df3ee14d9a242e1a4c8b842211)

Co-authored-by: Nadeshiko Manju <me@manjusaka.me>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 weeks ago[3.15] gh-149219: Test `frozendict` in `Lib/test/test_crossinterp.py` (GH-149220...
Miss Islington (bot) [Thu, 21 May 2026 15:22:24 +0000 (17:22 +0200)] 
[3.15] gh-149219: Test `frozendict` in `Lib/test/test_crossinterp.py` (GH-149220) (#150186)

gh-149219: Test `frozendict` in `Lib/test/test_crossinterp.py` (GH-149220)
(cherry picked from commit c35b0f2b624ecc4d649a808acdb07a7fbcea60ac)

Co-authored-by: sobolevn <mail@sobolevn.me>
5 weeks ago[3.15] gh-149981: Test lazy import corner cases with module-level `__getattr__` ...
sobolevn [Thu, 21 May 2026 09:53:00 +0000 (12:53 +0300)] 
[3.15] gh-149981: Test lazy import corner cases with module-level `__getattr__` (GH-149982) (#150185)

(cherry picked from commit 6dbf4ba403cd38d0219d3c7514f61c2ac8f6a74f)

5 weeks ago[3.15] Add summary table to the `unicodedata` doc (GH-149957) (#150161)
Miss Islington (bot) [Wed, 20 May 2026 20:10:21 +0000 (22:10 +0200)] 
[3.15] Add summary table to the `unicodedata` doc (GH-149957) (#150161)

(cherry picked from commit 87a879f4d0ec2e545e84c898c5ce452a6c87b09e)

Co-authored-by: Stan Ulbrych <stan@python.org>
5 weeks ago[3.15] gh-134261: ZipFile - Don't rely on local time for reproducible builds & tests...
Miss Islington (bot) [Wed, 20 May 2026 19:49:13 +0000 (21:49 +0200)] 
[3.15] gh-134261: ZipFile - Don't rely on local time for reproducible builds & tests (GH-134264) (#150137)

gh-134261: ZipFile - Don't rely on local time for reproducible builds & tests (GH-134264)

---------
(cherry picked from commit 9dcf94e906906ff39c7955227c2b044b515ee162)

Co-authored-by: Caleb <23644849+ctrlaltf2@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
5 weeks ago[3.15] gh-143387: Add news blurb for importlib.metadata highlighting the change....
Miss Islington (bot) [Wed, 20 May 2026 19:48:04 +0000 (21:48 +0200)] 
[3.15] gh-143387: Add news blurb for importlib.metadata highlighting the change. (GH-150169) (#150171)

gh-143387: Add news blurb for importlib.metadata highlighting the change. (GH-150169)
(cherry picked from commit cb3b4b98d8d141c9de0462a0fa7e227a2104c1c7)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
5 weeks ago[3.15] PEP 810 - Update some error strings (GH-150126) (#150135)
Miss Islington (bot) [Wed, 20 May 2026 15:17:28 +0000 (17:17 +0200)] 
[3.15] PEP 810 - Update some error strings (GH-150126) (#150135)

5 weeks ago[3.15] gh-150146: Fix NULL dereference in `_Py_subs_parameters` (GH-150147) (#150153)
Miss Islington (bot) [Wed, 20 May 2026 13:55:30 +0000 (15:55 +0200)] 
[3.15] gh-150146: Fix NULL dereference in `_Py_subs_parameters` (GH-150147) (#150153)

gh-150146: Fix NULL dereference in `_Py_subs_parameters` (GH-150147)
(cherry picked from commit f621ba16b72510e1abc9646a844a632df4ac275c)

Co-authored-by: sobolevn <mail@sobolevn.me>
5 weeks ago[3.15] gh-150034: Print JSONL filename when profiling finishes (GH-150035) (#150151)
Miss Islington (bot) [Wed, 20 May 2026 12:00:49 +0000 (14:00 +0200)] 
[3.15] gh-150034: Print JSONL filename when profiling finishes (GH-150035) (#150151)

5 weeks ago[3.15] gh-149584: Fix excessive overhead in the Tachyon profiler regarding the cache...
Miss Islington (bot) [Wed, 20 May 2026 11:59:10 +0000 (13:59 +0200)] 
[3.15] gh-149584: Fix excessive overhead in the Tachyon profiler regarding the cache behavior (GH-149649) (#150152)

5 weeks ago[3.15] gh-149807: Fix hash(frozendict): compute (key, value) pair hash (GH-149841...
Miss Islington (bot) [Wed, 20 May 2026 11:51:54 +0000 (13:51 +0200)] 
[3.15] gh-149807: Fix hash(frozendict): compute (key, value) pair hash (GH-149841) (#150149)

gh-149807: Fix hash(frozendict): compute (key, value) pair hash (GH-149841)
(cherry picked from commit 244300162d2e863a0588d1754e224d68931ada37)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 weeks ago[3.15] gh-148260: Use at least 1 MiB stack size on musl (GH-149993) (#150150)
Miss Islington (bot) [Wed, 20 May 2026 11:48:24 +0000 (13:48 +0200)] 
[3.15] gh-148260: Use at least 1 MiB stack size on musl (GH-149993) (#150150)

gh-148260: Use at least 1 MiB stack size on musl (GH-149993)

On Linux when Python is linked to the musl C library, use a thread
stack size of at least 1 MiB instead of musl default which is 128
kiB.
(cherry picked from commit df6c157e51430e8e7458012417c534ad8c33119f)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 weeks ago[3.15] gh-143387: Update docs to reflect the behavior and note the changed version...
Miss Islington (bot) [Wed, 20 May 2026 01:03:47 +0000 (03:03 +0200)] 
[3.15] gh-143387: Update docs to reflect the behavior and note the changed version. (GH-150095) (#150106)

gh-143387: Update docs to reflect the behavior and note the changed version. (GH-150095)
(cherry picked from commit 192796cfd4793cd7c9e88261795394ab016d5984)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
5 weeks ago[3.15] gh-72088: clarify `inspect.ismethod` and `inspect.isfunction` (and related...
Miss Islington (bot) [Wed, 20 May 2026 01:00:54 +0000 (03:00 +0200)] 
[3.15] gh-72088: clarify `inspect.ismethod` and `inspect.isfunction` (and related) usage with class-level access (GH-150013) (GH-150119)

(cherry picked from commit 0aa59ce2d4f007a9d19740eb2f6230ed302096f7)

Co-authored-by: Stefanie Molin <24376333+stefmolin@users.noreply.github.com>
Co-authored-by: CHINMAY <89741289+Das-Chinmay@users.noreply.github.com>
5 weeks ago[3.15] gh-134887: Add references to `locale` module for locale-aware number formattin...
Miss Islington (bot) [Wed, 20 May 2026 00:54:59 +0000 (02:54 +0200)] 
[3.15] gh-134887: Add references to `locale` module for locale-aware number formatting references in `string` module docs (GH-134888) (GH-150120)

(cherry picked from commit 47723af4e74ae1a65108837fe15795e2f70f9d02)

Co-authored-by: Stefanie Molin <24376333+stefmolin@users.noreply.github.com>
5 weeks ago[3.15] gh-150042: queue.SimpleQueue.put: fix minor refleak. (GH-150043) (GH-150127)
Miss Islington (bot) [Wed, 20 May 2026 00:46:42 +0000 (02:46 +0200)] 
[3.15] gh-150042: queue.SimpleQueue.put: fix minor refleak. (GH-150043) (GH-150127)

If queue.SimpleQueue.put can't handoff the item to a
waiting thread, and fails to allocate memory when adding
the item to a ringbuf, it would leak a reference.  Fixed.
(cherry picked from commit 79088e0d82931c21fa72eadc416a18b7b0fdf9c1)

Co-authored-by: larryhastings <larry@hastings.org>
6 weeks ago[3.15] gh-150114: Reduce memory usage of test_free_threading.test_iteration (gh-15011...
Miss Islington (bot) [Tue, 19 May 2026 22:05:19 +0000 (00:05 +0200)] 
[3.15] gh-150114: Reduce memory usage of test_free_threading.test_iteration (gh-150115) (#150124)

Reduce NUMITEMS from 100000 to 5000. Peak RSS for the full
test_free_threading suite drops from ~850 MB to ~175 MB.

(cherry picked from commit 61f12211fc40aef4a2dcccb9c94aae8108042edb)

Co-authored-by: Sam Gross <colesbury@gmail.com>
6 weeks ago[3.15] gh-150052: Resolve un-loaded lazily loaded submodules via module.__getattr__...
Dino Viehland [Tue, 19 May 2026 21:23:30 +0000 (14:23 -0700)] 
[3.15] gh-150052: Resolve un-loaded lazily loaded submodules via module.__getattr__ instead of publishing lazy values (#150055)

6 weeks ago[3.15] gh-149983: Fix PyErr_NoMemory call without GIL in winconsoleio.c (GH-149984...
Miss Islington (bot) [Tue, 19 May 2026 21:11:13 +0000 (23:11 +0200)] 
[3.15] gh-149983: Fix PyErr_NoMemory call without GIL in winconsoleio.c (GH-149984) (GH-150113)

(cherry picked from commit 3d2aa899bad1c0e274640dc0c4323f1744e73435)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
6 weeks ago[3.15] gh-124111: Keep tests passing for Tcl prior to 9.0 (GH-150102)
Miss Islington (bot) [Tue, 19 May 2026 20:57:21 +0000 (22:57 +0200)] 
[3.15] gh-124111: Keep tests passing for Tcl prior to 9.0 (GH-150102)

Also disables the UWP build in CI, since it was breaking (and is no longer released).
(cherry picked from commit ec9ce3ee98c68f235be6d075fa4bbd8f56d20256)

Co-authored-by: Steve Dower <steve.dower@python.org>
6 weeks ago[3.15] gh-149945: Fix potential OOM for gzip with large header (GH-149979) (GH-150093)
Miss Islington (bot) [Tue, 19 May 2026 20:38:47 +0000 (22:38 +0200)] 
[3.15] gh-149945: Fix potential OOM for gzip with large header (GH-149979) (GH-150093)

Do not read the whole filename and comment to memory for calculating the CRC.
(cherry picked from commit 51a5715df9c56f616944cf1b39323bd6ae009143)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 weeks ago[3.15] gh-69619: Clarify whitespace definition in str.strip docs (#150049)
Miss Islington (bot) [Tue, 19 May 2026 17:48:48 +0000 (19:48 +0200)] 
[3.15] gh-69619: Clarify whitespace definition in str.strip docs (#150049)

(cherry picked from commit 17eb17d43f66a0f7985fca05c7c9684bc01fabcd)

Co-authored-by: Daniil <d.mayorov@innopolis.university>
6 weeks ago[3.15] gh-146581: Update docs for dangerous filenames in ZIP files (GH-149994) (GH...
Miss Islington (bot) [Tue, 19 May 2026 08:44:35 +0000 (10:44 +0200)] 
[3.15] gh-146581: Update docs for dangerous filenames in ZIP files (GH-149994) (GH-150064)

gh-146581: Update docs for dangerous filenames in ZIP files (GH-149994)
(cherry picked from commit ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Sebastian Gassner <sebastian.gassner@gmail.com>
6 weeks ago[3.15] gh-86533: Restore os.makedirs() ability to apply *mode* recursively (GH-150011...
Miss Islington (bot) [Tue, 19 May 2026 05:10:01 +0000 (07:10 +0200)] 
[3.15] gh-86533: Restore os.makedirs() ability to apply *mode* recursively (GH-150011) (#150036)

bpo-42367: Restore os.makedirs() and pathlib.mkdir() ability to apply *mode* recursively via a new parent_mode= keyword argument.
(cherry picked from commit 9770e32ce07110f0c8c7a381604ec9a490028eed)

+ Make Path.mkdir parent_mode tests umask-independent

test_mkdir_with_parent_mode, test_mkdir_parent_mode_deep_hierarchy and
test_mkdir_parent_mode_same_as_mode assert exact directory mode bits but
did not pin the process umask.  On buildbots running with a restrictive
umask (e.g. 0o077) the 0o755 leaf was masked down to 0o700, failing the
assertions.  Wrap them in os_helper.temp_umask(0o022), matching the
other umask-aware mkdir tests in this file.

---------

Co-authored-by: nessita <124304+nessita@users.noreply.github.com>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 weeks ago[3.15] gh-149816: fix `dict.clear()` race on split-table dict with non-embedded value...
Miss Islington (bot) [Tue, 19 May 2026 04:42:25 +0000 (06:42 +0200)] 
[3.15] gh-149816: fix `dict.clear()` race on split-table dict with non-embedded values (GH-149914) (#150000)

gh-149816: fix `dict.clear()` race on split-table dict with non-embedded values (GH-149914)
(cherry picked from commit 169285470630b697c5e6e0e4c8091c31f25ffb04)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
6 weeks ago[3.15] gh-149816: fix thread safety of deletion of list slice (GH-149936) (#150003)
Miss Islington (bot) [Tue, 19 May 2026 04:41:43 +0000 (06:41 +0200)] 
[3.15] gh-149816: fix thread safety of deletion of list slice (GH-149936) (#150003)

gh-149816: fix thread safety of deletion of list slice (GH-149936)
(cherry picked from commit 00ea77613b942a9e08df6e3eb74b2ccd37641ba6)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
6 weeks ago[3.15] gh-148587: Make sys.lazy_modules match PEP and keep internal lazy submodules...
Dino Viehland [Tue, 19 May 2026 00:53:54 +0000 (17:53 -0700)] 
[3.15] gh-148587: Make sys.lazy_modules match PEP and keep internal lazy submodules tra… (#150014)

Make sys.lazy_modules match PEP and keep internal lazy submodules tracking internal

6 weeks ago[3.15] gh-146452: Improve locking granularity in pickle's batch_dict_exact and fix...
Miss Islington (bot) [Mon, 18 May 2026 23:53:57 +0000 (01:53 +0200)] 
[3.15] gh-146452: Improve locking granularity in pickle's batch_dict_exact and fix race condition (GH-150025) (#150039)

gh-146452: Improve locking granularity in pickle's batch_dict_exact and fix race condition (GH-150025)

Remove assertion that could fail in rare race condition.

Replace the coarse critical section wrapping the entire function with
fine-grained sections covering only PyDict_Next + Py_INCREF.
Also handle PyDict_Next returning 0 in the single-item fast path.
(cherry picked from commit 57a0e570d36f41b953a91bbaf4262a5d05d0391b)

Co-authored-by: Saul Cooperman <58375603+scopreon@users.noreply.github.com>
6 weeks ago[3.15] gh-149590: Remove faulthandler_traverse (GH-150023) (#150037)
Miss Islington (bot) [Mon, 18 May 2026 23:28:04 +0000 (01:28 +0200)] 
[3.15] gh-149590: Remove faulthandler_traverse (GH-150023) (#150037)

gh-149590: Remove faulthandler_traverse (GH-150023)

`faulthandler_traverse` visits Python objects owned by `_PyRuntime`, not
by the module instance. With multi-phase init allowing multiple module
instances, each instance's GC traversal decrements `gc_refs` on the same
runtime-owned objects, driving it negative when two instances are
collected simultaneously.
(cherry picked from commit 56737483c2ffdaadfec648fd38d409c6b10941c0)

Co-authored-by: Armaan Vakharia <43391096+armaan-v924@users.noreply.github.com>