]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 months ago[3.13] gh-137056: Fix DTrace build support on NetBSD (GH-137057) (#137445)
Serhiy Storchaka [Wed, 6 Aug 2025 13:02:26 +0000 (16:02 +0300)] 
[3.13] gh-137056: Fix DTrace build support on NetBSD (GH-137057) (#137445)

(cherry picked from commit 54a5fdffc8e20f111e7a7d2df352e8be057177ff)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
3 months ago[3.13] gh-137134: Update SQLite to 3.50.4 for binary releases (GH-137135) (#137455)
Hugo van Kemenade [Wed, 6 Aug 2025 12:59:55 +0000 (15:59 +0300)] 
[3.13] gh-137134: Update SQLite to 3.50.4 for binary releases (GH-137135) (#137455)

gh-137134: Update SQLite to 3.50.4 for binary releases (GH-137135)

* Update SQLite to 3.50.3 for binary releases.
* macOS and Windows news entries. what about Android?
* update sbom hash
* newline fix via regen-sbom
* news wording
* Update SQLite to 3.50.4 for binary releases.
* update 3.50.4.0.tar.gz hash in sbom & regen-sbom to fix whitespace
* Postpone to a separate PR the build-installer changes to support additional hash types

(cherry picked from commit 532c37695d03f84fc6d12f891d26b901ef402ac4)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Ned Deily <nad@python.org>
3 months ago[3.13] gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415) (#137461)
Miss Islington (bot) [Wed, 6 Aug 2025 12:59:11 +0000 (14:59 +0200)] 
[3.13] gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415) (#137461)

gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415)

Fix name of the Python encoding in Unicode errors of the code page
codec: use "cp65000" and "cp65001" instead of "CP_UTF7" and "CP_UTF8"
which are not valid Python code names.
(cherry picked from commit ce1b747ff68754635b7b12870dfc527184ee3b39)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 months ago[3.13] gh-137450: macOS installer shell path management improvements (GH-137451)...
Miss Islington (bot) [Wed, 6 Aug 2025 11:43:54 +0000 (13:43 +0200)] 
[3.13] gh-137450: macOS installer shell path management improvements (GH-137451) (#137452)

Separate the installer `Shell profile updater` postinstall script from the `Update Shell Profile.command` to enable more robust error handling.
(cherry picked from commit 781eb1a688e0575a38c79575493f3ff83208a33e)

Co-authored-by: Ned Deily <nad@python.org>
3 months ago[3.13] gh-81325: Support path-like objects with streaming TarFile (GH-137188) (#137366)
Miss Islington (bot) [Tue, 5 Aug 2025 21:17:12 +0000 (23:17 +0200)] 
[3.13] gh-81325: Support path-like objects with streaming TarFile (GH-137188) (#137366)

Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
3 months ago[3.13] Docs: add dunder and walrus to the glossary (GH-137430) (#137435)
Miss Islington (bot) [Tue, 5 Aug 2025 21:16:59 +0000 (23:16 +0200)] 
[3.13] Docs: add dunder and walrus to the glossary (GH-137430) (#137435)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
3 months ago[3.13] gh-136823: Update documentation on excluded headers in Python.h (GH-136824...
Miss Islington (bot) [Tue, 5 Aug 2025 21:16:24 +0000 (23:16 +0200)] 
[3.13] gh-136823: Update documentation on excluded headers in Python.h (GH-136824) (#137438)

Co-authored-by: Sina Zel taat <111974143+SZeltaat@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
3 months ago[3.13] GH-136155: Use ``sphinxext-opengraph`` v0.12.0 (GH-137393) (#137432)
Miss Islington (bot) [Tue, 5 Aug 2025 20:21:10 +0000 (22:21 +0200)] 
[3.13] GH-136155: Use ``sphinxext-opengraph`` v0.12.0 (GH-137393) (#137432)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
3 months ago[3.13] gh-123441: Correct the supported languages of the iso-8859-4 codec (GH-137034...
Miss Islington (bot) [Tue, 5 Aug 2025 15:02:57 +0000 (17:02 +0200)] 
[3.13] gh-123441: Correct the supported languages of the iso-8859-4 codec (GH-137034) (GH-137418)

(cherry picked from commit 525784aa65d35a5609aba53c873a9a3a578f992b)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 months ago[3.13] gh-122450: Expand documentation for ``Rational`` and ``Fraction`` (#136800...
Sergey B Kirpichev [Tue, 5 Aug 2025 13:54:31 +0000 (16:54 +0300)] 
[3.13] gh-122450: Expand documentation for ``Rational`` and ``Fraction`` (#136800) (#137367)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 months ago[3.13] gh-135244: generate UUID random Node ID with a CSPRNG as per RFC 9562, §6...
Bénédikt Tran [Tue, 5 Aug 2025 09:01:07 +0000 (11:01 +0200)] 
[3.13] gh-135244: generate UUID random Node ID with a CSPRNG as per RFC 9562, §6.10.3 (GH-135226) (#137408)

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

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

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

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

Co-authored-by: LamentXU <108666168+LamentXU123@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
3 months ago[3.13] gh-137397: Skip test_os_open on NetBSD due to indefinite hang (GH-137398)...
Miss Islington (bot) [Tue, 5 Aug 2025 08:55:53 +0000 (10:55 +0200)] 
[3.13] gh-137397: Skip test_os_open on NetBSD due to indefinite hang (GH-137398) (#137407)

gh-137397: Skip test_os_open on NetBSD due to indefinite hang (GH-137398)
(cherry picked from commit 7f416c867445dd94d11ee9df5f1a2d9d6eb8d883)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
3 months ago[3.13] gh-132710: only use stable `_uuid.generate_time_safe()` to deduce MAC address...
Bénédikt Tran [Tue, 5 Aug 2025 07:56:03 +0000 (09:56 +0200)] 
[3.13] gh-132710: only use stable `_uuid.generate_time_safe()` to deduce MAC address (GH-132901) (#134704)

This commit includes the original commit and the NEWS entry that was added separately.

(cherry picked from commit 3bffada46728e51f84c41ecbb0d3722595693e63)
(cherry picked from commit 9eb84d83e00070cec3cfe78f1d0c7a7a0fbef30f)

3 months ago[3.13] gh-132124: improve safety nets for creating AF_UNIX socket files (GH-134085...
Miss Islington (bot) [Mon, 4 Aug 2025 14:38:49 +0000 (16:38 +0200)] 
[3.13] gh-132124: improve safety nets for creating AF_UNIX socket files (GH-134085) (#134448)

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

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

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* rename warn -> _warn for the 3.13.x backport

* Update Misc/NEWS.d/next/Library/2025-05-16-12-40-37.gh-issue-132124.T_5Odx.rst

---------

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
3 months ago[3.13] gh-130077: Properly match full soft keywords in the parser (GH-135317) (#135399)
Pablo Galindo Salgado [Mon, 4 Aug 2025 14:18:05 +0000 (15:18 +0100)] 
[3.13] gh-130077: Properly match full soft keywords in the parser (GH-135317) (#135399)

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

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Remove line the main-branch commit removed

---------

Co-authored-by: Petr Viktorin <encukou@gmail.com>
3 months ago[3.13] gh-137194: Fix requires_debug_ranges when _testcpi doesn't exist (GH-137195...
Miss Islington (bot) [Mon, 4 Aug 2025 13:22:15 +0000 (15:22 +0200)] 
[3.13] gh-137194: Fix requires_debug_ranges when _testcpi doesn't exist (GH-137195) (GH-137275)

(cherry picked from commit 0282eef880c8c8db782a2088b0257250e0f76d48)

Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
3 months ago[3.13] gh-135839: Fix `module_traverse` and `module_clear` in subinterp modules ...
sobolevn [Mon, 4 Aug 2025 12:34:47 +0000 (15:34 +0300)] 
[3.13] gh-135839: Fix `module_traverse` and `module_clear` in subinterp modules (GH-135937) (GH-135943)

(cherry picked from commit bcc2cbaa7f112323939e853ed69fd82f19568ccf)

3 months ago[3.13] Remove Alex Waygood as a codeowner for pre-commit config (#137372) (#137374)
Alex Waygood [Mon, 4 Aug 2025 10:40:56 +0000 (11:40 +0100)] 
[3.13] Remove Alex Waygood as a codeowner for pre-commit config (#137372) (#137374)

3 months ago[3.13] Fix typo in `Lib/test/test_ast/test_ast.py` (GH-136767) (#137356)
Brian Schubert [Mon, 4 Aug 2025 05:56:07 +0000 (01:56 -0400)] 
[3.13] Fix typo in `Lib/test/test_ast/test_ast.py` (GH-136767) (#137356)

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

Co-authored-by: Hunter Hogan <hunterhogan@users.noreply.github.com>
3 months ago[3.13] gh-137257: Upgrade bundled pip to 25.2 (GH-137258) (GH-137362)
Miss Islington (bot) [Mon, 4 Aug 2025 02:23:25 +0000 (04:23 +0200)] 
[3.13] gh-137257: Upgrade bundled pip to 25.2 (GH-137258) (GH-137362)

gh-137257: Upgrade bundled pip to 25.2 (GH-137258)
(cherry picked from commit 506542b5966073203f0da71a487de24e596b7979)

Co-authored-by: Richard Si <sichard26@gmail.com>
3 months ago[3.13] Doc: fix duplicated words (GH-136086) (#137357)
Brian Schubert [Sun, 3 Aug 2025 22:41:47 +0000 (18:41 -0400)] 
[3.13] Doc: fix duplicated words (GH-136086) (#137357)

(cherry picked from commit 698bab5a4031c8f54e04e1dd42bcbe3e4564eba5)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
3 months ago[3.13] GH-136155: Use ``sphinxext-opengraph`` v0.11.0 (GH-137348) (#137350)
Miss Islington (bot) [Sun, 3 Aug 2025 18:39:39 +0000 (20:39 +0200)] 
[3.13] GH-136155: Use ``sphinxext-opengraph`` v0.11.0 (GH-137348) (#137350)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
3 months ago[3.13] gh-137341: Remove more word duplications (GH-137342) (GH-137347)
Serhiy Storchaka [Sun, 3 Aug 2025 17:24:26 +0000 (20:24 +0300)] 
[3.13] gh-137341: Remove more word duplications (GH-137342) (GH-137347)

(cherry picked from commit 1612dcbafe763014deefd679fe75ac5831a14a43)

3 months ago[3.13] gh-137314: Fix incorrect treatment of format specs in raw fstrings (GH-137328...
Miss Islington (bot) [Sun, 3 Aug 2025 16:58:49 +0000 (18:58 +0200)] 
[3.13] gh-137314: Fix incorrect treatment of format specs in raw fstrings (GH-137328) (#137345)

gh-137314: Fix incorrect treatment of format specs in raw fstrings (GH-137328)
(cherry picked from commit 0153d82a5ab0c6ac16c046bdd4438ea11b58d59d)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 months agoDoc: remove unused images (GH-137323)
Miss Islington (bot) [Sun, 3 Aug 2025 05:28:52 +0000 (07:28 +0200)] 
Doc: remove unused images (GH-137323)

(cherry picked from commit f195c2803002d4a4827c61171d8c327e230842b6)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
3 months ago[3.13] gh-135444: fix `asyncio.DatagramTransport.sendto` to account for datagram...
Miss Islington (bot) [Sun, 3 Aug 2025 04:48:53 +0000 (06:48 +0200)] 
[3.13] gh-135444: fix `asyncio.DatagramTransport.sendto` to account for datagram header size when data cannot be sent (GH-135445) (#137246)

gh-135444: fix `asyncio.DatagramTransport.sendto` to account for datagram header size when data cannot be sent (GH-135445)
(cherry picked from commit e3ea8613519bd08aa6ce7d142403e644ae32d843)

Co-authored-by: Justin Bronder <jsbronder@cold-front.org>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
3 months ago[3.13] gh-135755: Document __future__.* and CO_* as proper Sphinx objects (GH-135980...
Petr Viktorin [Sat, 2 Aug 2025 14:19:20 +0000 (16:19 +0200)] 
[3.13] gh-135755: Document __future__.* and CO_* as proper Sphinx objects (GH-135980) (GH-136371)

* Turn the __future__ table to list-table.
  This'll make it easier to add entries that need longer markup
* Semantic markup for __future__ feature descriptions.
* Document CO_* C macros.
(cherry picked from commit 2468aafe984fdf923811ef0c6969e3d6c1b92a82)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
3 months ago[3.13] gh-137273: Fix debug assertion failure in locale.setlocale() on Windows (GH...
Miss Islington (bot) [Fri, 1 Aug 2025 15:06:16 +0000 (17:06 +0200)] 
[3.13] gh-137273: Fix debug assertion failure in locale.setlocale() on Windows (GH-137300) (GH-137306)

It happened when there were at least 16 characters after dot in the
locale name.
(cherry picked from commit 718e0c89ba0610bba048245028ac133bbf2d44c2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 months ago[3.13] GH-111758: Merge TSan and UBSan reusable GHA workflows (#136820) (GH-137029)
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) [Fri, 1 Aug 2025 13:00:48 +0000 (15:00 +0200)] 
[3.13] GH-111758: Merge TSan and UBSan reusable GHA workflows (#136820) (GH-137029)

(cherry picked from commit 65d2c51c10425dcfacc0a13810d58c41240d7ff9)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
3 months ago[3.13] GH-133136: Revise QSBR to reduce excess memory held (gh-135473) (gh-136480)
Neil Schemenauer [Wed, 30 Jul 2025 18:06:44 +0000 (11:06 -0700)] 
[3.13] GH-133136: Revise QSBR to reduce excess memory held (gh-135473) (gh-136480)

The free threading build uses QSBR to delay the freeing of dictionary
keys and list arrays when the objects are accessed by multiple threads
in order to allow concurrent reads to proceed with holding the object
lock. The requests are processed in batches to reduce execution
overhead, but for large memory blocks this can lead to excess memory
usage.

Take into account the size of the memory block when deciding when to
process QSBR requests.

Also track the amount of memory being held by QSBR for mimalloc pages.
Advance the write sequence if this memory exceeds a limit.  Advancing
the sequence will allow it to be freed more quickly.

Process the held QSBR items from the "eval breaker", rather than from
`_PyMem_FreeDelayed()`.  This gives a higher chance that the global read
sequence has advanced enough so that items can be freed.

(cherry picked from commit 113de8545ffe74a4a1dddb9351fa1cbd3562b621)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Co-authored-by: Sam Gross <colesbury@gmail.com>
3 months ago[3.13] GH-116738: document thread-safety of bisect (GH-136555) (#137222)
Miss Islington (bot) [Wed, 30 Jul 2025 11:50:39 +0000 (13:50 +0200)] 
[3.13] GH-116738: document thread-safety of bisect (GH-136555) (#137222)

* GH-116738: document thread-safety of bisect (GH-136555)
(cherry picked from commit 5236b0281b91a874b14cf15f3fdef9b7beffb22f)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
3 months ago[3.13] gh-137183: Document that `array.array` typecode `w` is new in 3.13 (GH-137184...
Miss Islington (bot) [Tue, 29 Jul 2025 16:45:08 +0000 (18:45 +0200)] 
[3.13] gh-137183: Document that `array.array` typecode `w` is new in 3.13 (GH-137184) (GH-137209)

(cherry picked from commit 0b4e13c2658c5a267fc50ee045ffb7b6408b2e3b)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
3 months ago[3.13] gh-130577: tarfile now validates archives to ensure member offsets are non...
Miss Islington (bot) [Mon, 28 Jul 2025 15:59:33 +0000 (17:59 +0200)] 
[3.13] gh-130577: tarfile now validates archives to ensure member offsets are non-negative (GH-137027) (#137170)

gh-130577: tarfile now validates archives to ensure member offsets are non-negative (GH-137027)
(cherry picked from commit 7040aa54f14676938970e10c5f74ea93cd56aa38)

Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
3 months ago[3.13] gh-136759: revert rename `lock.h` to `pylock.h` (GH-137041) (#137075) (#137166)
Kumar Aditya [Mon, 28 Jul 2025 12:19:32 +0000 (17:49 +0530)] 
[3.13] gh-136759: revert rename `lock.h` to `pylock.h` (GH-137041) (#137075) (#137166)

Revert "[3.13] gh-136759: rename `lock.h` to `pylock.h` (GH-137041) (#137075)"

This reverts commit 74503acba7d6c563aeef307ccf2d0cee141838b0.

3 months ago[3.13] gh-119711: describe `create_datagram_endpoint`'s behavior in asyncio when...
Miss Islington (bot) [Mon, 28 Jul 2025 11:03:08 +0000 (13:03 +0200)] 
[3.13] gh-119711: describe `create_datagram_endpoint`'s behavior in asyncio when `local_addr` is `None` (GH-136913) (#137163)

gh-119711: describe `create_datagram_endpoint`'s behavior in asyncio when `local_addr` is `None` (GH-136913)
(cherry picked from commit 1481384141342479b3ba4b89f653b4e5bef0d272)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
3 months ago[3.13] gh-84559: improve What's New entry for `multiprocessing` startmethod changes...
Brian Schubert [Mon, 28 Jul 2025 01:12:16 +0000 (21:12 -0400)] 
[3.13] gh-84559: improve What's New entry for `multiprocessing` startmethod changes (GH-128173) (#137156)

[3.13] gh-84559: improve What's New entry for `multiprocessing` start method changes (GH-128173)
(cherry picked from commit b8c313a41c411331c603bbda28048b2a3f4a2ab4)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 months ago[3.13] gh-136992: Add "None" as valid `SameSite` value as per RFC 6265bis (GH-137040...
Miss Islington (bot) [Sun, 27 Jul 2025 20:08:46 +0000 (22:08 +0200)] 
[3.13] gh-136992: Add "None" as valid `SameSite` value as per RFC 6265bis (GH-137040) (#137141)

gh-136992: Add "None" as valid `SameSite` value as per RFC 6265bis (GH-137040)

The "SameSite" attribute defined in RFC 6265bis [1] allows the "Strict", "Lax" and "None"
enforcement modes. We already documented "Strict" and "Lax" as being valid values
but "None" was missing from the list. While the RFC has not been formally approved,
modern browsers support the "None" value [2, 3] thereby making sense to document it.

[1]: https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis
[2]: https://developers.google.com/search/blog/2020/01/get-ready-for-new-samesitenone-secure
[3]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie#none

---------
(cherry picked from commit ae8b7d710020dfd336edd399fa35525dfe8fc049)

Co-authored-by: Iqra Khan <iqraakhan2519@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
3 months ago[3.13] gh-132898: Add a note in `multiprocessing.Process` docs about creating a proce...
Miss Islington (bot) [Sun, 27 Jul 2025 20:05:39 +0000 (22:05 +0200)] 
[3.13] gh-132898: Add a note in `multiprocessing.Process` docs about creating a process in a REPL (GH-137118) (#137155)

gh-132898: Add a note in `multiprocessing.Process` docs about creating a process in a REPL (GH-137118)

* Reword, expand, and clarify the limitation, highlighting the REPL case.
* Mention in the high level Process description.
* added a pointer to the GH issue from the doc note

---------
(cherry picked from commit 4e40f2bea7edfa5ba7e2e0e6159d9da9dfe4aa97)

Co-authored-by: Duprat <yduprat@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
3 months ago[3.13] gh-136278: Document codecs.escape_encode() and codecs.escape_decode() (GH...
Miss Islington (bot) [Sun, 27 Jul 2025 16:44:25 +0000 (18:44 +0200)] 
[3.13] gh-136278: Document codecs.escape_encode() and codecs.escape_decode() (GH-136314) (#137150)

gh-136278: Document codecs.escape_encode() and codecs.escape_decode() (GH-136314)

Closes GH-136278
(cherry picked from commit 6784ef7da7cbf1a944fd0685630ced54e4a0066c)

Co-authored-by: Toshaksha <147024929+Toshaksha@users.noreply.github.com>
3 months ago[3.13] gh-134698: Hold a lock when the thread state is detached in ssl (GH-134724...
Gregory P. Smith [Sun, 27 Jul 2025 15:30:25 +0000 (08:30 -0700)] 
[3.13] gh-134698: Hold a lock when the thread state is detached in ssl (GH-134724) (#137126)

Lock when the thread state is detached.
(cherry picked from commit e047a35b23c1aa69ab8d5da56f36319cec4d36b8) or really from the 3.14 backport fd565fdfc9c0001900d03d627e2fda83f1bcca90

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
3 months ago[3.13] gh-126662: naming consistency for `signal.ItimerError` (GH-126712) (#137123)
Miss Islington (bot) [Sun, 27 Jul 2025 04:28:21 +0000 (06:28 +0200)] 
[3.13] gh-126662: naming consistency for `signal.ItimerError` (GH-126712) (#137123)

gh-126662: naming consistency for `signal.ItimerError` (GH-126712)
(cherry picked from commit d5fa437dfb50e2e47632cdc994e3257608688f30)

Co-authored-by: Stephen Morton <git@tungol.org>
3 months ago[3.13] Link to plaintext for "show source" links (GH-137131) (#137133)
Miss Islington (bot) [Sun, 27 Jul 2025 01:55:51 +0000 (03:55 +0200)] 
[3.13] Link to plaintext for "show source" links (GH-137131) (#137133)

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

3 months ago[3.13] gh-130522: Fix unraisable TypeError in threading at interpreter shutdown ...
Miss Islington (bot) [Fri, 25 Jul 2025 15:14:27 +0000 (17:14 +0200)] 
[3.13] gh-130522: Fix unraisable TypeError in threading at interpreter shutdown (GH-131537) (GH-137106)

gh-130522: Fix unraisable TypeError in threading at interpreter shutdown (GH-131537)
(cherry picked from commit cb93b6fc5ea525f8075cb53ec373356fec63903a)

Co-authored-by: Tyler Kennedy <tk@tkte.ch>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
3 months ago[3.13] Fix Queue.shutdown docs for condition to unblock a join (gh-137088) (gh-137102)
Miss Islington (bot) [Fri, 25 Jul 2025 14:48:28 +0000 (16:48 +0200)] 
[3.13] Fix Queue.shutdown docs for condition to unblock a join (gh-137088) (gh-137102)

3 months ago[3.13] Fix docs for Queue.shutdown (gh-137028) (gh-137081)
Miss Islington (bot) [Thu, 24 Jul 2025 17:54:42 +0000 (19:54 +0200)] 
[3.13] Fix docs for Queue.shutdown (gh-137028) (gh-137081)

3 months ago[3.13] gh-136759: rename `lock.h` to `pylock.h` (GH-137041) (#137075)
AN Long [Thu, 24 Jul 2025 16:06:25 +0000 (01:06 +0900)] 
[3.13] gh-136759: rename `lock.h` to `pylock.h` (GH-137041) (#137075)

Rename `lock.h` to `pylock.h` to avoid conflicts with headers of other projects.
(cherry picked from commit ec02db5caa546cb4759999453bd6efc1d517b95c)

3 months ago[3.13] gh-136516: Mention installation artifacts as de-facto resources (GH-136419...
Miss Islington (bot) [Thu, 24 Jul 2025 07:01:12 +0000 (09:01 +0200)] 
[3.13] gh-136516: Mention installation artifacts as de-facto resources (GH-136419) (GH-137039)

Files like NUL on windows are, from `importlib.resources` point of
view, an artifact caused by installing to a filesystem directory.
Mention these.
(cherry picked from commit fac4964fdb2ae12969b485de496dd6d064fdbe99)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
3 months ago[3.13] gh-137043: mention `PyList_GET_ITEM` as unsafe borrowed API in free-threading...
Miss Islington (bot) [Wed, 23 Jul 2025 14:42:53 +0000 (16:42 +0200)] 
[3.13] gh-137043: mention `PyList_GET_ITEM` as unsafe borrowed API in free-threading docs (GH-137042) (#137046)

gh-137043: mention `PyList_GET_ITEM` as unsafe borrowed API in free-threading docs (GH-137042)
(cherry picked from commit 38b936cc9912fc6847265917f94af53f0bf228e9)

Co-authored-by: Guido Imperiale <crusaderky@gmail.com>
3 months ago[3.13] gh-136437: Convert more ``os.path`` functions to positional-only in the docs...
Miss Islington (bot) [Tue, 22 Jul 2025 13:44:36 +0000 (15:44 +0200)] 
[3.13] gh-136437: Convert more ``os.path`` functions to positional-only in the docs (GH-136970) (#137001)

Co-authored-by: sobolevn <mail@sobolevn.me>
3 months ago[3.13] gh-118350: Fix support of elements "textarea" and "title" in HTMLParser (GH...
Miss Islington (bot) [Tue, 22 Jul 2025 12:17:59 +0000 (14:17 +0200)] 
[3.13] gh-118350: Fix support of elements "textarea" and "title" in HTMLParser (GH-135310) (GH-136985)

(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>
3 months ago[3.13] gh-131531: Android test fixes (GH-136845) (#136963)
Miss Islington (bot) [Tue, 22 Jul 2025 11:27:02 +0000 (13:27 +0200)] 
[3.13] gh-131531: Android test fixes (GH-136845) (#136963)

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>
3 months ago[3.13] gh-135661: Fix parsing attributes with whitespaces around the "=" separator...
Miss Islington (bot) [Tue, 22 Jul 2025 09:56:10 +0000 (11:56 +0200)] 
[3.13] gh-135661: Fix parsing attributes with whitespaces around the "=" separator in HTMLParser (GH-136908) (GH-136918)

This fixes a regression introduced in GH-135930.
(cherry picked from commit dee650189497735edbc08a54edabb5b06ef1bd09)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 months ago[3.13] gh-136859: Improve `StrEnum` docs (GH-136864) (#136937)
Miss Islington (bot) [Tue, 22 Jul 2025 08:32:30 +0000 (10:32 +0200)] 
[3.13] gh-136859: Improve `StrEnum` docs (GH-136864) (#136937)

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>
3 months ago[3.13] gh-135468: Improve ``BaseHandler.http_error_default()`` parameter descriptions...
Miss Islington (bot) [Tue, 22 Jul 2025 08:29:59 +0000 (10:29 +0200)] 
[3.13] gh-135468: Improve ``BaseHandler.http_error_default()`` parameter descriptions (GH-136797) (#136826)

Co-authored-by: Valerio Gianella <49408327+valeriogianella@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
3 months ago[3.13] gh-136437: Document `os.path.dirname` as accepting only pos-only (GH-136946...
Miss Islington (bot) [Mon, 21 Jul 2025 18:28:55 +0000 (20:28 +0200)] 
[3.13] gh-136437: Document `os.path.dirname` as accepting only pos-only (GH-136946) (#136948)

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>
3 months ago[3.13] 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.13] gh-136437: Document some `os.path` functions as requiring pos-only (GH-136812) (#136945)

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>
3 months ago[3.13] Pedantic rewording of why relative importing doesn't work in main modules...
Miss Islington (bot) [Mon, 21 Jul 2025 16:58:32 +0000 (18:58 +0200)] 
[3.13] Pedantic rewording of why relative importing doesn't work in main modules (GH-136846) (#136941)

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>
3 months ago[3.13] gh-135148: Correctly handle f/t strings with comments and debug expressions...
Lysandros Nikolaou [Mon, 21 Jul 2025 14:54:29 +0000 (16:54 +0200)] 
[3.13] gh-135148: Correctly handle f/t strings with comments and debug expressions (#135198) (#136899)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 months ago[3.13] gh-134411: assert `PyLong_FromLong(x) != NULL` when `x` is known to be small...
Miss Islington (bot) [Mon, 21 Jul 2025 09:21:30 +0000 (11:21 +0200)] 
[3.13] gh-134411: assert `PyLong_FromLong(x) != NULL` when `x` is known to be small (GH-134415) (#136911)

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>
3 months ago[3.13] gh-136882: Update stale link in the basic logging tutorial. (GH-136885) (...
Miss Islington (bot) [Mon, 21 Jul 2025 09:04:28 +0000 (11:04 +0200)] 
[3.13] gh-136882: Update stale link in the basic logging tutorial. (GH-136885) (#136906)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 months ago[3.13] gh-86608: Improve and restructure tarfile examples (GH-121771) (#136867)
Miss Islington (bot) [Sun, 20 Jul 2025 13:16:26 +0000 (15:16 +0200)] 
[3.13] gh-86608: Improve and restructure tarfile examples (GH-121771) (#136867)

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>
3 months ago[3.13] gh-130655: gettext: Add fallback testcase (GH-136857) (#136863)
Miss Islington (bot) [Sun, 20 Jul 2025 12:30:09 +0000 (14:30 +0200)] 
[3.13] gh-130655: gettext: Add fallback testcase (GH-136857) (#136863)

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

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

Co-authored-by: Nacho Caballero <nachocab@gmail.com>
Co-authored-by: Nacho Caballero <nacho.caballero@astrazeneca.com>
3 months ago[3.13] Doc/c-api/memory.rst: extend --without-pymalloc doc with ASan information...
Miss Islington (bot) [Sun, 20 Jul 2025 08:55:40 +0000 (10:55 +0200)] 
[3.13] Doc/c-api/memory.rst: extend --without-pymalloc doc with ASan information (GH-136790) (#136799)

Extends 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).

(cherry picked from commit d19bb4471331ca2cb87b86e4c904bc9a2bafb044)

Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
3 months ago[3.13] gh-136764: improve comment in enum.verify.__call__ (GH-136774) (GH-136842)
Miss Islington (bot) [Sat, 19 Jul 2025 19:01:42 +0000 (21:01 +0200)] 
[3.13] gh-136764: improve comment in enum.verify.__call__ (GH-136774) (GH-136842)

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

Co-authored-by: Saurav Singh <sauravsinghshakya@yahoo.com>
3 months ago[3.13] gh-136752: Clarify documentation for ``IPv{N}Address.is_reserved`` (GH-136794...
Miss Islington (bot) [Sat, 19 Jul 2025 14:50:37 +0000 (16:50 +0200)] 
[3.13] gh-136752: Clarify documentation for ``IPv{N}Address.is_reserved`` (GH-136794) (#136828)

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>
3 months ago[3.13] gh-54732: Make argparse error caused by empty rows in option files explicit...
Miss Islington (bot) [Sat, 19 Jul 2025 14:28:57 +0000 (16:28 +0200)] 
[3.13] gh-54732: Make argparse error caused by empty rows in option files explicit (GH-136795) (#136819)

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>
3 months ago[3.13] gh-135730: Clarify multiprocessing.Queue close() documentation (GH-136803...
Miss Islington (bot) [Sat, 19 Jul 2025 12:58:08 +0000 (14:58 +0200)] 
[3.13] gh-135730: Clarify multiprocessing.Queue close() documentation (GH-136803) (GH-136807)

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>
3 months ago[3.13] gh-136769: Include fixed-width integers in the fundamental data types table...
Miss Islington (bot) [Sat, 19 Jul 2025 10:25:37 +0000 (12:25 +0200)] 
[3.13] gh-136769: Include fixed-width integers in the fundamental data types table (GH-136784) (#136786)

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>
3 months ago[3.13] Docs: Improve example for ``itertools.batched()`` (GH-136775) (#136779)
Miss Islington (bot) [Sat, 19 Jul 2025 09:35:48 +0000 (11:35 +0200)] 
[3.13] Docs: Improve example for ``itertools.batched()`` (GH-136775) (#136779)

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>
3 months ago[3.13] parser_generator.py typo - keywods -> keywords (GH-135014) (#136773)
Miss Islington (bot) [Sat, 19 Jul 2025 09:17:27 +0000 (11:17 +0200)] 
[3.13] parser_generator.py typo - keywods -> keywords (GH-135014) (#136773)

Co-authored-by: chemelnucfin <3982092+chemelnucfin@users.noreply.github.com>
3 months ago[3.13] gh-136697: Use the standard audit event format for sys.monitor… (#136750)
Tian Gao [Thu, 17 Jul 2025 18:43:20 +0000 (11:43 -0700)] 
[3.13] gh-136697: Use the standard audit event format for sys.monitor… (#136750)

* [3.13] 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>
3 months ago[3.13] Improved venv docs to indicate that isolation is the default. (GH-136698)...
Facundo Batista [Thu, 17 Jul 2025 10:25:31 +0000 (07:25 -0300)] 
[3.13] Improved venv docs to indicate that isolation is the default. (GH-136698) (GH-136725)

(cherry picked from commit 8e2f4b448380b4c835442534d566618f06e32573)

3 months ago[3.13] gh-126548: Add a thread-unsafety warning for `importlib.reload()` (GH-136704...
Miss Islington (bot) [Wed, 16 Jul 2025 16:40:22 +0000 (18:40 +0200)] 
[3.13] gh-126548: Add a thread-unsafety warning for `importlib.reload()` (GH-136704) (GH-136724)

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>
3 months ago[3.13] gh-136710: Fix bad indentation in `os.chdir` docstring (GH-136721)
Zachary Ware [Wed, 16 Jul 2025 16:33:46 +0000 (11:33 -0500)] 
[3.13] gh-136710: Fix bad indentation in `os.chdir` docstring (GH-136721)

(cherry picked from commit bde808ad6ba5eee8a6201983cf071449d7ce7e39)

Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
3 months ago[3.13] Add `.gram` file to the `.editorconfig` (GH-136680) (#136715)
sobolevn [Wed, 16 Jul 2025 15:05:47 +0000 (18:05 +0300)] 
[3.13] Add `.gram` file to the `.editorconfig` (GH-136680) (#136715)

(cherry picked from commit 2f0db9b05f0598548c0c136571c31065ecf961e5)

3 months ago[3.13] Fix the doctest.testmod() docstring (GH-136675) (GH-136691)
Miss Islington (bot) [Tue, 15 Jul 2025 17:04:57 +0000 (19:04 +0200)] 
[3.13] Fix the doctest.testmod() docstring (GH-136675) (GH-136691)

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

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

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 months ago[3.13] gh-136682: Remove incorrect statement that `os.path.samestat` accepts file...
Miss Islington (bot) [Tue, 15 Jul 2025 12:56:33 +0000 (14:56 +0200)] 
[3.13] gh-136682: Remove incorrect statement that `os.path.samestat` accepts file-like objects (GH-136683) (#136685)

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>
3 months ago[3.13] gh-72570: mention the incompatibility of XOFs with HMAC (GH-136676) (#136679)
Miss Islington (bot) [Tue, 15 Jul 2025 12:10:10 +0000 (14:10 +0200)] 
[3.13] gh-72570: mention the incompatibility of XOFs with HMAC (GH-136676) (#136679)

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>
3 months ago[3.13] gh-136663: fix signatures of PyFloat_Pack/Unpack in docs (GH-136664) (#136667)
Miss Islington (bot) [Tue, 15 Jul 2025 05:37:55 +0000 (07:37 +0200)] 
[3.13] gh-136663: fix signatures of PyFloat_Pack/Unpack in docs (GH-136664) (#136667)

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>
3 months ago[3.13] gh-130664: support '_' (just as ',') in Decimal's formatting (GH-132155) ...
Miss Islington (bot) [Mon, 14 Jul 2025 12:01:49 +0000 (14:01 +0200)] 
[3.13] gh-130664: support '_' (just as ',') in Decimal's formatting (GH-132155) (#136649)

gh-130664: support '_' (just as ',') in Decimal's formatting (GH-132155)
(cherry picked from commit e10fe81cc6ae0979938eb3925139d56a74c620e3)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
3 months ago[3.13] Partially revert "gh-101100: Fix sphinx warnings in `library/email.parser...
Miss Islington (bot) [Mon, 14 Jul 2025 10:19:40 +0000 (12:19 +0200)] 
[3.13] Partially revert "gh-101100: Fix sphinx warnings in `library/email.parser.rst` (GH-136475)" (GH-136629) (#136647)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
3 months ago[3.13] gh-127971: fix off-by-one read beyond the end of a string during search (...
Duane Griffin [Mon, 14 Jul 2025 09:50:22 +0000 (21:50 +1200)] 
[3.13] gh-127971: fix off-by-one read beyond the end of a string during search (#132574) (#136648)

(cherry picked from commit 85ec3b3b503ffd5b7e45f8b3fa2cec0c10e4bef0)

3 months ago[3.13] gh-109700: fix memory error handling in `PyDict_SetDefault` (#136338) (#136642)
Kumar Aditya [Mon, 14 Jul 2025 08:25:31 +0000 (13:55 +0530)] 
[3.13] gh-109700: fix memory error handling in `PyDict_SetDefault` (#136338) (#136642)

gh-109700: fix memory error handling in `PyDict_SetDefault` (#136338)

(cherry picked from commit d22e073d2b49313bbf42d40cbe74afa2b69385df)

3 months ago[3.13] gh-42237: Link to complete list of codec aliases (GH-136625) (#136627)
Miss Islington (bot) [Sun, 13 Jul 2025 13:19:28 +0000 (15:19 +0200)] 
[3.13] gh-42237: Link to complete list of codec aliases (GH-136625) (#136627)

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>
3 months ago[3.13] gh-132346: Docs: Clarify that reference counts aren't stable between versions...
Miss Islington (bot) [Sun, 13 Jul 2025 09:18:27 +0000 (11:18 +0200)] 
[3.13] gh-132346: Docs: Clarify that reference counts aren't stable between versions (GH-132352) (GH-136614)

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>
3 months ago[3.13] gh-136523: Fix wave.Wave_write emitting an unraisable when open raises (GH...
Miss Islington (bot) [Sun, 13 Jul 2025 06:13:01 +0000 (08:13 +0200)] 
[3.13] gh-136523: Fix wave.Wave_write emitting an unraisable when open raises (GH-136529) (GH-136607)

(cherry picked from commit 171de05b4884d1353044417ea51a4efcb55ba633)

Co-authored-by: Sachin Shah <39803835+inventshah@users.noreply.github.com>
3 months ago[3.13] gh-134833: improve docs for `del s[i:j]` in `Mutable Sequence Types` (GH-13483...
Miss Islington (bot) [Sun, 13 Jul 2025 06:03:33 +0000 (08:03 +0200)] 
[3.13] gh-134833: improve docs for `del s[i:j]` in `Mutable Sequence Types` (GH-134834) (#136609)

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>
3 months ago[3.13] gh-101100: Fix sphinx warnings in Doc/library/platform.rst (GH-136562) (GH...
Miss Islington (bot) [Sat, 12 Jul 2025 18:23:04 +0000 (20:23 +0200)] 
[3.13] gh-101100: Fix sphinx warnings in Doc/library/platform.rst (GH-136562) (GH-136598)

(cherry picked from commit 47b01da4ccedd9c00fad4325b3e87d7732abeb6d)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
3 months ago[3.13] gh-136549: Fix signature of threading.excepthook() (GH-136559) (GH-136590)
Miss Islington (bot) [Sat, 12 Jul 2025 16:16:19 +0000 (18:16 +0200)] 
[3.13] gh-136549: Fix signature of threading.excepthook() (GH-136559) (GH-136590)

(cherry picked from commit be2c3d284ecce67474a260b8c37e2f1e0628a9cf)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 months ago[3.13] gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `ind.__ind...
Bénédikt Tran [Sat, 12 Jul 2025 14:34:45 +0000 (16:34 +0200)] 
[3.13] gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `ind.__index__` has side-effects (GH-132379) (#136582)

(cherry picked from commit 5e1e21dee35b8e9066692d08033bbbdb562e2c28)

Co-authored-by: Bast <52266665+bast0006@users.noreply.github.com>
3 months ago[3.13] gh-134759: fix `UnboundLocalError` in `email.message.Message.get_payload`...
Miss Islington (bot) [Sat, 12 Jul 2025 13:52:54 +0000 (15:52 +0200)] 
[3.13] gh-134759: fix `UnboundLocalError` in `email.message.Message.get_payload` (GH-136071) (#136580)

gh-134759: fix `UnboundLocalError` in `email.message.Message.get_payload` (GH-136071)
(cherry picked from commit 25335d297b5248922a4c82183bcdf0c0ada8352b)

Co-authored-by: Kliment Lamonov <klimentlamonov@yandex.ru>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
3 months ago[3.13] gh-101100: Fix sphinx warnings in Doc/library/functools.rst (GH-136424) (GH...
Serhiy Storchaka [Fri, 11 Jul 2025 17:13:07 +0000 (20:13 +0300)] 
[3.13] gh-101100: Fix sphinx warnings in Doc/library/functools.rst (GH-136424) (GH-136554)

Add index entries and anchors for cache_info, cache_clear and register.
(cherry picked from commit 252e2f710ea376a38c4545dd758e03d331c1eaad)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
3 months ago[3.13] gh-130160: use `.. program::` directive for documenting `venv` CLI (GH-130699...
Miss Islington (bot) [Fri, 11 Jul 2025 17:04:03 +0000 (19:04 +0200)] 
[3.13] gh-130160: use `.. program::` directive for documenting `venv` CLI (GH-130699) (#136551)

gh-130160: use `.. program::` directive for documenting `venv` CLI (GH-130699)
(cherry picked from commit fb9f933b8eda6cdc1336582dc8709b759ced91af)

Co-authored-by: Kanishk Pachauri <itskanishkp.py@gmail.com>
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
3 months ago[3.13] gh-136541: Fix several problems of perf trampolines in x86_64 and aarch64...
Pablo Galindo Salgado [Fri, 11 Jul 2025 14:02:19 +0000 (15:02 +0100)] 
[3.13] gh-136541: Fix several problems of perf trampolines in x86_64 and aarch64 (GH-136500) (#136545)

This commit fixes the following problems:

* The x86_64 trampolines are not preserving frame pointers
* The hardcoded offsets to the code segment from the FDE only worked properly for x64_64
* The CIE data was not following conventions of aarch64
* The eh_frame for aarch64 was not fully correct
(cherry picked from commit 236f733d8ffb3d587e1167fa0a0248c24512e7fd)

3 months ago[3.13] gh-76637: Note that `undefined` Codec is for testing (GH-136531) (#136537)
Miss Islington (bot) [Fri, 11 Jul 2025 10:57:39 +0000 (12:57 +0200)] 
[3.13] gh-76637: Note that `undefined` Codec is for testing (GH-136531) (#136537)

gh-76637: Note that `undefined` Codec is for testing (GH-136531)

Closes GH-76637
(cherry picked from commit 975b57d945c84000949f241ded8f44413ecc6217)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 months ago[3.13] gh-101100: Fix sphinx warnings in `library/email.parser.rst` (GH-136475) ...
Miss Islington (bot) [Fri, 11 Jul 2025 09:43:52 +0000 (11:43 +0200)] 
[3.13] gh-101100: Fix sphinx warnings in `library/email.parser.rst` (GH-136475) (#136533)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
3 months ago[3.13] gh-52876: Implement missing parameter in `codecs.StreamReaderWriter` functions...
Miss Islington (bot) [Thu, 10 Jul 2025 16:06:34 +0000 (18:06 +0200)] 
[3.13] gh-52876: Implement missing parameter in `codecs.StreamReaderWriter` functions (GH-136498) (#136515)

gh-52876: Implement missing parameter in `codecs.StreamReaderWriter` functions (GH-136498)

Closes GH-52876
(cherry picked from commit 35e2c359703e076256c1249b74b87043972e04d6)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>