]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 weeks agoPython 3.13.8 v3.13.8
Thomas Wouters [Tue, 7 Oct 2025 12:01:38 +0000 (14:01 +0200)] 
Python 3.13.8

4 weeks ago[3.13] gh-139436: Remove link to the PDF downloads (GH-139142) (#139427)
Miss Islington (bot) [Tue, 7 Oct 2025 11:34:51 +0000 (13:34 +0200)] 
[3.13] gh-139436: Remove link to the PDF downloads (GH-139142) (#139427)

(cherry picked from commit 6b5f15698a436591f7c305c576a2d366c38d9997)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 weeks ago[3.13] gh-63161: Add more tests for source encoding (GH-139440) (#139443)
Miss Islington (bot) [Tue, 7 Oct 2025 11:34:08 +0000 (13:34 +0200)] 
[3.13] gh-63161: Add more tests for source encoding (GH-139440) (#139443)

(cherry picked from commit b2f5ad0c6d7cfd249c41bfbcdd0a75a9f21f1e72)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.13] gh-139283: correctly handle `size` limit in `cursor.fetchmany()` (GH-139296...
Bénédikt Tran [Tue, 7 Oct 2025 11:33:40 +0000 (13:33 +0200)] 
[3.13] gh-139283: correctly handle `size` limit in `cursor.fetchmany()` (GH-139296) (#139444)

Passing a negative or zero size to `cursor.fetchmany()` made it fetch all rows
instead of none.

While this could be considered a security vulnerability, it was decided to treat
this issue as a regular bug as passing a non-sanitized *size* value in the first
place is not recommended.
(cherry picked from commit bc172ee8307431caf4c89612e9e454081635191f)

4 weeks ago[3.13] gh-139327: fix some reference leaks in `sqlite3` error branches (GH-139328...
Miss Islington (bot) [Tue, 7 Oct 2025 11:32:51 +0000 (13:32 +0200)] 
[3.13] gh-139327: fix some reference leaks in `sqlite3` error branches (GH-139328) (#139472)

(cherry picked from commit d0a3eff9d6e72e209da0236fb1ea1f8c18938eaa)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 weeks ago[3.13] gh-124111: Update macOS installer to use Tcl/Tk 8.6.17. (GH-139682) (#139684)
Miss Islington (bot) [Tue, 7 Oct 2025 05:18:49 +0000 (07:18 +0200)] 
[3.13] gh-124111: Update macOS installer to use Tcl/Tk 8.6.17. (GH-139682) (#139684)

(cherry picked from commit 6d804e4efb8ed2ebeb9cef9577945c46c0038178)
Co-authored-by: Ned Deily <nad@python.org>
4 weeks ago[3.13] gh-139573: Update macOS installer to use OpenSSL 3.0.18 (GH-139575) (#139681)
Miss Islington (bot) [Tue, 7 Oct 2025 03:41:39 +0000 (05:41 +0200)] 
[3.13] gh-139573: Update macOS installer to use OpenSSL 3.0.18 (GH-139575) (#139681)

Co-authored-by: Zachary Ware <zach@python.org>
4 weeks ago[3.13] gh-118767: remove bool(NotImplemented) from pending-removal document (GH-13952...
Jost Migenda [Mon, 6 Oct 2025 21:28:57 +0000 (22:28 +0100)] 
[3.13] gh-118767: remove bool(NotImplemented) from pending-removal document (GH-139526) (#139677)

4 weeks ago[3.13] gh-138854: Skip test_script_shadowing_stdlib_cwd_failure on AIX (GH-138855...
Miss Islington (bot) [Mon, 6 Oct 2025 18:05:07 +0000 (20:05 +0200)] 
[3.13] gh-138854: Skip test_script_shadowing_stdlib_cwd_failure on AIX (GH-138855) (GH-139675)

gh-138854: Skip test_script_shadowing_stdlib_cwd_failure on AIX (GH-138855)
(cherry picked from commit 171f787a297ec4b02cfe8b3ebab8374018391f20)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
4 weeks ago[3.13] gh-133210: Fix `test_inspect` without docstrings (GH-139651) (#139670)
Miss Islington (bot) [Mon, 6 Oct 2025 17:13:08 +0000 (19:13 +0200)] 
[3.13] gh-133210: Fix `test_inspect` without docstrings (GH-139651) (#139670)

gh-133210: Fix `test_inspect` without docstrings (GH-139651)
(cherry picked from commit 7c70cc5c23971ef448ea59827c6e6ae310157356)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 weeks ago[3.13] gh-133210: Fix `test_pydoc` without docstrings (GH-139654) (#139666)
Miss Islington (bot) [Mon, 6 Oct 2025 15:14:04 +0000 (17:14 +0200)] 
[3.13] gh-133210: Fix `test_pydoc` without docstrings (GH-139654) (#139666)

gh-133210: Fix `test_pydoc` without docstrings (GH-139654)
(cherry picked from commit 708de26e31b65cd3ae768882c8da59284917a80d)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
4 weeks ago[3.13] gh-139400: Make sure that parent parsers outlive their subparsers in `pyexpat...
Sebastian Pipping [Mon, 6 Oct 2025 13:17:37 +0000 (15:17 +0200)] 
[3.13] gh-139400: Make sure that parent parsers outlive their subparsers in `pyexpat` (GH-139403) (GH-139608)

Within libexpat, a parser created via `XML_ExternalEntityParserCreate`
is relying on its parent parser throughout its entire lifetime.
Prior to this fix, is was possible for the parent parser to be
garbage-collected too early.

(cherry picked from commit 6edb2ddb5f3695cf4938979d645f31d7fba43ec8)

4 weeks ago[3.13] gh-116488: Mention `dict.get` in the data structures tutorial (GH-139643)...
Miss Islington (bot) [Mon, 6 Oct 2025 13:11:49 +0000 (15:11 +0200)] 
[3.13] gh-116488: Mention `dict.get` in the data structures tutorial (GH-139643) (GH-139656)

gh-116488: Mention `dict.get` in the data structures tutorial (GH-139643)
(cherry picked from commit 69cfad0b3e1e2805914cb647cce4c7c2bfed5910)

Co-authored-by: Cycloctane <Cycloctane@outlook.com>
4 weeks ago[3.13] gh-139624: Skip problematic locales on AIX in test_date_locale2 (GH-139625...
Miss Islington (bot) [Mon, 6 Oct 2025 10:49:50 +0000 (12:49 +0200)] 
[3.13] gh-139624: Skip problematic locales on AIX in test_date_locale2 (GH-139625) (GH-139645)

(cherry picked from commit 6f3dae0dc5ccd47b2b8a6e052244353d8c37e59b)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
4 weeks ago[3.13] gh-137242: Allow Android testbed to take all Python command-line options ...
Miss Islington (bot) [Mon, 6 Oct 2025 06:25:58 +0000 (08:25 +0200)] 
[3.13] gh-137242: Allow Android testbed to take all Python command-line options (GH-138805) (#139638)

Modifies the Android test runner to ensure that all valid Python command line
options are preserved when running the test suite.
(cherry picked from commit a9b0506d8db1aff8318759ed9324be56bf33eb31)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
4 weeks ago[3.13] gh-105812: Use the ``:deco:`` role in place of manual decorator markup (GH...
Adam Turner [Sun, 5 Oct 2025 20:28:30 +0000 (21:28 +0100)] 
[3.13] gh-105812: Use the ``:deco:`` role in place of manual decorator markup (GH-139619) (#139628)

4 weeks ago[3.13] Replace ambiguous word "pound" by "hash" in `difflib` docs (GH-139601) (#139617)
Miss Islington (bot) [Sun, 5 Oct 2025 17:18:11 +0000 (19:18 +0200)] 
[3.13] Replace ambiguous word "pound" by "hash" in `difflib` docs (GH-139601) (#139617)

Replace ambiguous word "pound" by "hash" in `difflib` docs (GH-139601)
(cherry picked from commit dadbb2662a405a34763db0298025f6af06342849)

Co-authored-by: George Ogden <38294960+George-Ogden@users.noreply.github.com>
4 weeks ago[3.13] gh-139310: skip `test_aead_aes_gcm` for Linux kernel between 6.16.0 and 6...
Miss Islington (bot) [Sun, 5 Oct 2025 08:52:06 +0000 (10:52 +0200)] 
[3.13] gh-139310: skip `test_aead_aes_gcm` for Linux kernel between 6.16.0 and 6.17.x (GH-139552) (#139593)

gh-139310: skip `test_aead_aes_gcm` for Linux kernel between 6.16.0 and 6.17.x (GH-139552)

Currently, Fedora 42 uses a custom Linux Kernel 6.16.9 that backported an upstream change
from 6.17-rc7 [1,3] but not its subsequent fix [2]. Until the issue is resolved upstream,
we skip the failing test `test_socket.test_aead_aes_gcm` for kernel versions between 6.16
and 6.17.x.

[1] https://github.com/torvalds/linux/commit/1b34cbbf4f011a121ef7b2d7d6e6920a036d5285
[2] https://github.com/torvalds/linux/commit/d0ca0df179c4b21e2a6c4a4fb637aa8fa14575cb
[3] https://gitlab.com/cki-project/kernel-ark/-/commit/45bcf60fe49b37daab1acee57b27211ad1574042
(cherry picked from commit 41712c4e095b2cc988febfe3887616c2779c6210)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 weeks ago[3.13] gh-139573: Update Windows builds to use OpenSSL 3.0.18 (GH-139587)
Miss Islington (bot) [Sun, 5 Oct 2025 01:53:16 +0000 (03:53 +0200)] 
[3.13] gh-139573: Update Windows builds to use OpenSSL 3.0.18 (GH-139587)

(cherry picked from commit 063cef9999d7490e62cb2ad2711634a992c090fb)

4 weeks ago[3.13] gh-139573: Update OpenSSL in CI (GH-139585)
Zachary Ware [Sun, 5 Oct 2025 01:52:08 +0000 (20:52 -0500)] 
[3.13] gh-139573: Update OpenSSL in CI (GH-139585)

(cherry picked from commit 98e748b3a0d97bd2c785efc63693f971113b3b63)

4 weeks ago[3.13] gh-139573: Update Android to OpenSSL 3.0.18 (GH-139562) (#139584)
Russell Keith-Magee [Sun, 5 Oct 2025 01:16:05 +0000 (09:16 +0800)] 
[3.13] gh-139573: Update Android to OpenSSL 3.0.18 (GH-139562) (#139584)

Update Android to OpenSSL 3.0.18.
(cherry picked from commit 0f0fc5a16368ea45541137cff6b90d63bad5eb26)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
4 weeks ago[3.13] gh-138703: clarify data buffer requirement of `asyncio.StreamWriter.write...
Miss Islington (bot) [Sat, 4 Oct 2025 16:42:03 +0000 (18:42 +0200)] 
[3.13] gh-138703: clarify data buffer requirement of `asyncio.StreamWriter.write` (GH-139564) (#139571)

gh-138703: clarify data buffer requirement of `asyncio.StreamWriter.write` (GH-139564)
(cherry picked from commit 0b2168275e8ec491fe7ea6f8c662e804437dfdab)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 weeks ago[3.13] gh-139495: Fix `hashlib.file_digest()` versionchanged description of `Blocking...
Alex Willmer [Fri, 3 Oct 2025 00:17:55 +0000 (01:17 +0100)] 
[3.13] gh-139495: Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError` (GH-139496) (#139528)

* Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError`

The sentence was missing a negation and contradicted the other two
descriptions in the same commit. I believe code behaviour is correct.

* fixup! Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError`

* Remove unncessary NEWS.d entry
(cherry picked from commit fb114cf49742a3679d56aa4ac3f341839c641221)

5 weeks ago[3.13] gh-135329: Use longer timeout in pyrepl test_repl_eio() (#139503) (#139507)
Victor Stinner [Thu, 2 Oct 2025 15:08:42 +0000 (17:08 +0200)] 
[3.13] gh-135329: Use longer timeout in pyrepl test_repl_eio() (#139503) (#139507)

gh-135329: Use longer timeout in pyrepl test_repl_eio() (#139503)

Replace hardcoded 5 seconds with support.SHORT_TIMEOUT.

Fix the following error on slow CI such as GitHub Action UBSan:

test test_pyrepl failed -- Traceback (most recent call last):
  File "Lib/test/test_pyrepl/test_unix_console.py", line 362, in test_repl_eio
    _, err = proc.communicate(timeout=5)  # sleep for pty to settle
             ~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "Lib/subprocess.py", line 1219, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
                     ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Lib/subprocess.py", line 2126, in _communicate
    self._check_timeout(endtime, orig_timeout, stdout, stderr)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Lib/subprocess.py", line 1266, in _check_timeout
    raise TimeoutExpired(
    ...<2 lines>...
            stderr=b''.join(stderr_seq) if stderr_seq else None)
subprocess.TimeoutExpired: Command '[...]' timed out after 5 seconds

(cherry picked from commit c985822d86892cd0a978e6e63945be3c0e59217c)

5 weeks ago[3.13] gh-139487: add missing imports for standalone doctest `Enum` examples (GH...
Miss Islington (bot) [Thu, 2 Oct 2025 12:43:33 +0000 (14:43 +0200)] 
[3.13] gh-139487: add missing imports for standalone doctest `Enum` examples (GH-139488) (#139494)

gh-139487: add missing imports for standalone doctest `Enum` examples (GH-139488)
(cherry picked from commit f3d7faeafa9618b38980813f22d0a64f7b2bd441)

Co-authored-by: Peter <35064951+ttw225@users.noreply.github.com>
5 weeks ago[3.13] gh-139210: Move gh-139210 patch NEWS file to correct section (GH-139469) ...
Miss Islington (bot) [Wed, 1 Oct 2025 08:59:48 +0000 (10:59 +0200)] 
[3.13] gh-139210: Move gh-139210 patch NEWS file to correct section (GH-139469) (GH-139470)

(cherry picked from commit d936dbeb1f1ebb4291a035dae88be78722c51d34)

Co-authored-by: Ken Jin <kenjin@python.org>
5 weeks ago[3.13] Document that `PyInterpreterState_GetDict` returns a borrowed reference (GH...
Miss Islington (bot) [Wed, 1 Oct 2025 05:56:39 +0000 (07:56 +0200)] 
[3.13] Document that `PyInterpreterState_GetDict` returns a borrowed reference (GH-139451) (#139464)

Document that `PyInterpreterState_GetDict` returns a borrowed reference (GH-139451)
(cherry picked from commit 80cdf3ef74f6622899c1c82af1e08492e4ab7a00)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
5 weeks ago[3.13] gh-139210: Fix use-after-free in xml.etree.ElementTree.iterparse() (GH-139211...
Miss Islington (bot) [Tue, 30 Sep 2025 18:14:44 +0000 (20:14 +0200)] 
[3.13] gh-139210: Fix use-after-free in xml.etree.ElementTree.iterparse() (GH-139211) (GH-139456)

(cherry picked from commit c86eb4d3ac5984efc1ea920ba643e3c4f02fdee8)

Co-authored-by: Ken Jin <kenjin@python.org>
5 weeks ago[3.13] gh-130567: Enable previously skipped locale tests on FreeBSD and macOS (GH...
Miss Islington (bot) [Tue, 30 Sep 2025 15:53:45 +0000 (17:53 +0200)] 
[3.13] gh-130567: Enable previously skipped locale tests on FreeBSD and macOS (GH-138652) (GH-139422)

(cherry picked from commit 1b8dcdacc75caa8175f89c7e739e45d856ebf511)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 weeks ago[3.13] gh-139146: Check `calloc()` results in `_testembed.c::test_pre_initialization_...
Miss Islington (bot) [Mon, 29 Sep 2025 11:03:01 +0000 (13:03 +0200)] 
[3.13] gh-139146: Check `calloc()` results in `_testembed.c::test_pre_initialization_sys_options` (GH-139147) (#139414)

gh-139146: Check `calloc()` results in `_testembed.c::test_pre_initialization_sys_options` (GH-139147)
(cherry picked from commit 9c6a1f847b648747414600f2cde18f3837505537)

Reported by: Dmitrii Chuprov <cheese@altlinux.org>

Signed-off-by: Denis Sergeev <zeff@altlinux.org>
Co-authored-by: Denis Sergeev <zeff@altlinux.org>
5 weeks ago[3.13] gh-78319: Fix implementation of IMAP APPEND UTF8 (GH-9436) (GH-139407)
Miss Islington (bot) [Mon, 29 Sep 2025 06:25:51 +0000 (08:25 +0200)] 
[3.13] gh-78319: Fix implementation of IMAP APPEND UTF8 (GH-9436) (GH-139407)

gh-78319: Fix implementation of IMAP APPEND UTF8 (GH-9436)

Make UTF8 support for the IMAP APPEND command RFC 6855 compliant.
(cherry picked from commit 408154d64a7b3d43b05f44ea5c4cdf781bdd1352)

Co-authored-by: Gordon Messmer <gordon.messmer@gmail.com>
5 weeks ago[3.13] gh-139312: Update bundled libexpat to 2.7.3 (GH-139319) (#139377)
Miss Islington (bot) [Sat, 27 Sep 2025 08:19:09 +0000 (10:19 +0200)] 
[3.13] gh-139312: Update bundled libexpat to 2.7.3 (GH-139319) (#139377)

gh-139312: Update bundled libexpat to 2.7.3 (GH-139319)

+ Blurb
+ Update sbom.spdx.json
(cherry picked from commit 48d0d0dd9733eae4935f2ebd31bef786d8074fc8)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
6 weeks ago[3.13] gh-139289: Lazy import rlcompleter to fix the refleak (GH-139305) (#139357)
Tian Gao [Fri, 26 Sep 2025 14:50:33 +0000 (22:50 +0800)] 
[3.13] gh-139289: Lazy import rlcompleter to fix the refleak (GH-139305) (#139357)

(cherry picked from commit 8288f3693f50058ad9b9fe04e01f5dad902d8bad)

6 weeks ago[3.13] Remove erroneous text from What’s New (#139343)
Rafael Fontenelle [Fri, 26 Sep 2025 11:36:01 +0000 (08:36 -0300)] 
[3.13] Remove erroneous text from What’s New (#139343)

6 weeks ago[3.13] gh-115119: Defer `--with-system-libmpdec` removal to 3.16 (GH-139318) (#139348)
Miss Islington (bot) [Fri, 26 Sep 2025 11:27:57 +0000 (13:27 +0200)] 
[3.13] gh-115119: Defer `--with-system-libmpdec` removal to 3.16 (GH-139318) (#139348)

gh-115119: Defer `--with-system-libmpdec` removal to 3.16 (GH-139318)
(cherry picked from commit 0aab07ccf79f335e3afa8021ddcbcfb8afa4d70c)

Co-authored-by: sobolevn <mail@sobolevn.me>
6 weeks ago[3.13] gh-127502: Fix typo in XML security notes (GH-139335) (#139345)
Miss Islington (bot) [Fri, 26 Sep 2025 10:08:59 +0000 (12:08 +0200)] 
[3.13] gh-127502: Fix typo in XML security notes (GH-139335) (#139345)

gh-127502: Fix typo in XML security notes (GH-139335)
(cherry picked from commit 6fa1e552e06063b668e02540ba1c31a4d87bbb17)

Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
6 weeks ago[3.13] gh-139330: Check expat version/checksum in SBOM with refresh.sh
Miss Islington (bot) [Thu, 25 Sep 2025 18:05:09 +0000 (20:05 +0200)] 
[3.13] gh-139330: Check expat version/checksum in SBOM with refresh.sh

gh-139330: Check expat version/checksum in SBOM with refresh.sh

Check expat version/checksum in SBOM with refresh.sh
(cherry picked from commit 89b5571025a5316ea3855c8e595a5f3c3ae11f8f)

Co-authored-by: Seth Michael Larson <seth@python.org>
6 weeks ago[3.13] gh-130567: Fix possible crash in locale.strxfrm() (GH-138940) (GH-139266)
Miss Islington (bot) [Wed, 24 Sep 2025 11:48:08 +0000 (13:48 +0200)] 
[3.13] gh-130567: Fix possible crash in locale.strxfrm() (GH-138940) (GH-139266)

On some macOS versions there was an off-by-one error in wcsxfrm() which
caused writing past the end of the array if its size was not calculated
by running wcsxfrm() first.
(cherry picked from commit 5854cf38a25ab8b0c6ab0296098166014f77caa3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
6 weeks ago[3.13] Fix the reference to unicode specification (#139138) (#139285)
Karolina Surma [Wed, 24 Sep 2025 08:36:37 +0000 (10:36 +0200)] 
[3.13] Fix the reference to unicode specification (#139138) (#139285)

(cherry picked from commit b36dee855dd61f6ac37208866c3c4c21429a587a)

6 weeks ago[3.13] gh-138860: Lazy import rlcompleter in pdb to avoid deadlock in… (#139281)
Tian Gao [Wed, 24 Sep 2025 06:07:50 +0000 (14:07 +0800)] 
[3.13] gh-138860: Lazy import rlcompleter in pdb to avoid deadlock in… (#139281)

[3.13] gh-138860: Lazy import rlcompleter in pdb to avoid deadlock in subprocess (GH-139185)
(cherry picked from commit c8624cd36746b17d8f991cde63705e9419e940de)

6 weeks ago[3.13] gh-139208: Fix regrtest --fast-ci --verbose (GH-139240) (#139261)
Miss Islington (bot) [Tue, 23 Sep 2025 14:32:19 +0000 (16:32 +0200)] 
[3.13] gh-139208: Fix regrtest --fast-ci --verbose (GH-139240) (#139261)

gh-139208: Fix regrtest --fast-ci --verbose (GH-139240)

Don't ignore the --verbose option anymore.
(cherry picked from commit dd683f8f341dd0c95ac4f1363d92d141ea5b3842)

Co-authored-by: Victor Stinner <vstinner@python.org>
6 weeks ago[3.13] Revert "gh-136006: fix `Py_NAN` expansion on Solaris systems (GH-136575) ...
Eloisa Perez-Bennetts [Mon, 22 Sep 2025 14:18:11 +0000 (16:18 +0200)] 
[3.13] Revert "gh-136006: fix `Py_NAN` expansion on Solaris systems (GH-136575) (#138734)" (#139239)

This reverts commit df349036b3f912e539643d91b84cbce32e4a1051 as discussed in https://github.com/python/cpython/pull/138733#issuecomment-3317818806

6 weeks ago[3.13] `Doc/library/os.rst`: Remove spurious parenthesis (GH-139205) (GH-139218)
Miss Islington (bot) [Sun, 21 Sep 2025 19:05:42 +0000 (21:05 +0200)] 
[3.13] `Doc/library/os.rst`: Remove spurious parenthesis (GH-139205) (GH-139218)

`Doc/library/os.rst`: Remove spurious parenthesis (GH-139205)
(cherry picked from commit 9c3d09b984374292d1d8552f53c98f445f8556dd)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
6 weeks ago[3.13] gh-138092: Correct the documented signature of ``mmap.flush`` (GH-138671)...
Miss Islington (bot) [Sun, 21 Sep 2025 11:05:10 +0000 (13:05 +0200)] 
[3.13] gh-138092: Correct the documented signature of ``mmap.flush`` (GH-138671) (#139203)

6 weeks ago[3.13] Make sure the ``:keyword:`` role works for ``case`` (GH-138878) (#139201)
Miss Islington (bot) [Sun, 21 Sep 2025 10:58:06 +0000 (12:58 +0200)] 
[3.13] Make sure the ``:keyword:`` role works for ``case`` (GH-138878) (#139201)

7 weeks ago[3.13] gh-118803: Fixup a few references in the 3.13 branch to the intended removal...
Alex Waygood [Fri, 19 Sep 2025 17:51:39 +0000 (18:51 +0100)] 
[3.13] gh-118803: Fixup a few references in the 3.13 branch to the intended removal date for `ByteString` (#139171)

7 weeks ago[3.13] gh-112729: Correctly fail when the process is out of memory during interpreter...
Peter Bierma [Fri, 19 Sep 2025 15:09:44 +0000 (11:09 -0400)] 
[3.13] gh-112729: Correctly fail when the process is out of memory during interpreter creation (GH-139164) (GH-139169)

* gh-112729: Correctly fail when the process is out of memory during interpreter creation (GH-139164)

(cherry picked from commit d06113c7a7cac76a28847702685e601b79f71bf8)

7 weeks ago[3.13] gh-139076: Fix regression in pydoc not showing extension functions (GH-139077...
Miss Islington (bot) [Fri, 19 Sep 2025 13:38:20 +0000 (15:38 +0200)] 
[3.13] gh-139076: Fix regression in pydoc not showing extension functions (GH-139077) (GH-139161)

Fix a bug in the pydoc module that was hiding functions in a Python
module if they were implemented in an extension module and the module did
not have __all__.
(cherry picked from commit 7257b24140ac1b39fb8cfd4610134ec79575a396)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 weeks ago[3.13] gh-118803: Improve documentation around `ByteString` deprecation (#139115...
Alex Waygood [Thu, 18 Sep 2025 18:35:30 +0000 (19:35 +0100)] 
[3.13] gh-118803: Improve documentation around `ByteString` deprecation (#139115) (#139137)

7 weeks ago[3.13] gh-82916: Don't fail when importing from / with sys.pycache_prefix set (GH...
Miss Islington (bot) [Thu, 18 Sep 2025 13:37:39 +0000 (15:37 +0200)] 
[3.13] gh-82916: Don't fail when importing from / with sys.pycache_prefix set (GH-30456) (GH-137905)

(cherry picked from commit d8a9466e29f59f81aacf1959b835862bcd47b731)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 weeks ago[3.13] Document `Py_AddPendingCall()` change with subinterpreters in 3.12 (GH-139117...
Miss Islington (bot) [Thu, 18 Sep 2025 12:17:06 +0000 (14:17 +0200)] 
[3.13] Document `Py_AddPendingCall()` change with subinterpreters in 3.12 (GH-139117) (GH-139119)

Document `Py_AddPendingCall()` change with subinterpreters in 3.12 (GH-139117)

Prior to 3.9, Py_AddPendingCall() would always run pending calls in the main interpreter, but then each interpreter got their own ceval state, and they were scheduled for any interpreter. In GH-104813, this was undone, so Py_AddPendingCall() would always schedule for the main interpreter.
(cherry picked from commit 89ff88be89328964dbc50a474a84c566fe920b46)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
7 weeks ago[3.13] gh-138633: synchronize documented signatures of SSL objects with runtime ones...
Bénédikt Tran [Thu, 18 Sep 2025 12:07:06 +0000 (14:07 +0200)] 
[3.13] gh-138633: synchronize documented signatures of SSL objects with runtime ones (GH-138639, GH-138648) (#138647)

(cherry picked from commit 4dd36f3a38496494ff64ee8315a1589490bb472a)
(cherry picked from commit 4ef51fa75c17d4f027f2b73ff92be7a8b53eeb4f)

7 weeks ago[3.13] gh-137376: Add note on top-level `global` declarations (GH-137707) (#138022)
Miss Islington (bot) [Thu, 18 Sep 2025 12:02:17 +0000 (14:02 +0200)] 
[3.13] gh-137376: Add note on top-level `global` declarations (GH-137707) (#138022)

(cherry picked from commit 9f05f98730bbc36f4ad173845458827c4df879f6)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
7 weeks ago[3.13] gh-136006: fix `Py_NAN` expansion on Solaris systems (GH-136575) (#138734)
Bénédikt Tran [Thu, 18 Sep 2025 11:47:12 +0000 (13:47 +0200)] 
[3.13] gh-136006: fix `Py_NAN` expansion on Solaris systems (GH-136575) (#138734)

On Solaris, `Py_NAN` may expand as a function address instead of a floating-point number.
This amends commit 7a3b03509e5e3e72d8c47137579cccb52548a318.
(cherry picked from commit d54b1091d43b9d8f0da0ba081565bccca3f138fd)

7 weeks ago[3.13] gh-138008: Fix segfaults in _ctypes due to invalid argtypes (GH-138285) (...
Petr Viktorin [Thu, 18 Sep 2025 11:46:05 +0000 (13:46 +0200)] 
[3.13] gh-138008: Fix segfaults in _ctypes due to invalid argtypes (GH-138285) (#138746)

(cherry picked from commit 1ce05537a3ebaf1e5c54505b2272d61bb6cf5de0)

Signed-off-by: Nguyen Viet Dung <29406816+magnified103@users.noreply.github.com>
Signed-off-by: Nguyen Viet Dung <dung@ekluster.com>
Co-authored-by: Dung Nguyen <dung@ekluster.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>
7 weeks ago[3.13] Make Android streams respect the unbuffered (`-u`) option (GH-138806) (#139110)
Miss Islington (bot) [Thu, 18 Sep 2025 11:45:03 +0000 (13:45 +0200)] 
[3.13] Make Android streams respect the unbuffered (`-u`) option (GH-138806) (#139110)

Android pipes stdout/stderr to the log, which means every write to the log
becomes a separate log line. As a result, most practical uses of stdout/stderr
should be buffered; but it doesn't hurt to preserve unbuffered handling in case
it's useful.
(cherry picked from commit 0ac377ff23672ae7e2451f4cdfbe37c4efd464e7)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
7 weeks ago[3.13] gh-138871: Clarify NameError exception in 'del' (GH-138881) (#138904)
Miss Islington (bot) [Thu, 18 Sep 2025 11:43:24 +0000 (13:43 +0200)] 
[3.13] gh-138871: Clarify NameError exception in 'del' (GH-138881) (#138904)

(cherry picked from commit 481588ad4ccd2aff7ca3bac43379da0ce3b1c6d5)

Co-authored-by: Kian Eliasi <kian.elbo@gmail.com>
7 weeks ago[3.13] gh-138998: Upgrade vendored expat to 2.7.2 (GH-138999) (#139025)
Miss Islington (bot) [Thu, 18 Sep 2025 11:42:42 +0000 (13:42 +0200)] 
[3.13] gh-138998: Upgrade vendored expat to 2.7.2 (GH-138999) (#139025)

(cherry picked from commit 64c876dd6812ade19cb7a0c619111d30f0b2b860)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
7 weeks ago[3.13] GH-139067: Add example for `argparse`'s `append` action (GH-131389) (#139069)
Miss Islington (bot) [Wed, 17 Sep 2025 16:35:37 +0000 (18:35 +0200)] 
[3.13] GH-139067: Add example for `argparse`'s `append` action (GH-131389) (#139069)

GH-139067: Add example for `argparse`'s `append` action (GH-131389)
(cherry picked from commit 101fd33065638c94f413447a7bcff09d54831a4a)

Co-authored-by: Moshe Kaplan <mosheekaplan@gmail.com>
7 weeks ago[3.13] gh-138736: Fix sqlite3.Connection.blobopen 'row' parameter type and naming...
Erlend E. Aasland [Wed, 17 Sep 2025 16:26:10 +0000 (17:26 +0100)] 
[3.13] gh-138736: Fix sqlite3.Connection.blobopen 'row' parameter type and naming (#138738) (#139063)

The 'row' parameter represents a ROWID. Clarify this in docs and docstrings.

(cherry picked from commit 8eb106240f5d70baeabd4ad137de6213dd8cfb30)

Co-authored-by: chiri <chirizxc@proton.me>
7 weeks ago[3.13] gh-134466: Don't run when termios is inaccessible (GH-138911) (GH-139030)
Łukasz Langa [Wed, 17 Sep 2025 16:25:40 +0000 (17:25 +0100)] 
[3.13] gh-134466: Don't run when termios is inaccessible (GH-138911) (GH-139030)

Without the ability to set required capabilities, the REPL cannot
function properly (syntax highlighting and multiline editing can't
work).

We refuse to work in this degraded state.
(cherry picked from commit 2fc7004d5437e7bb0a1f5b962be441ef0ee7434b)

7 weeks ago[3.13] gh-132558: Improve `argparse` docs on combining `type` and `choices` (GH-13382...
Miss Islington (bot) [Wed, 17 Sep 2025 16:10:04 +0000 (18:10 +0200)] 
[3.13] gh-132558: Improve `argparse` docs on combining `type` and `choices` (GH-133827) (#139058)

gh-132558: Improve `argparse` docs on combining `type` and `choices` (GH-133827)
(cherry picked from commit dd0840bf67e194ab64f340b8a7fbda24cb25e177)

Co-authored-by: Hans Then <hans.then@gmail.com>
Co-authored-by: Savannah Bailey <savannahostrowski@gmail.com>
7 weeks ago[3.13] gh-129368: In PyRun C API docs, clarify what a "start token" is (GH-129935...
Miss Islington (bot) [Wed, 17 Sep 2025 16:05:29 +0000 (18:05 +0200)] 
[3.13] gh-129368: In PyRun C API docs, clarify what a "start token" is (GH-129935) (#139043)

(cherry picked from commit e1eca8b308a585af45e9ebf4f605c9f67b7115d8)

Co-authored-by: Rajhans Jadhao <rajhans.jadhao@gmail.com>
7 weeks ago[3.13] gh-135629: rewrite language reference section on except* to improve clarity...
Miss Islington (bot) [Wed, 17 Sep 2025 16:00:53 +0000 (18:00 +0200)] 
[3.13] gh-135629: rewrite language reference section on except* to improve clarity (GH-136150) (#139060)

gh-135629: rewrite language reference section on except* to improve clarity (GH-136150)
(cherry picked from commit a651ec95241c25161d525499a739f01bfe527895)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
7 weeks ago[3.13] gh-137988: Fix const description in argparse.add_argument() docs (GH-138315...
Miss Islington (bot) [Wed, 17 Sep 2025 15:54:23 +0000 (17:54 +0200)] 
[3.13] gh-137988: Fix const description in argparse.add_argument() docs (GH-138315) (#139052)

Co-authored-by: PrinceNaroliya <naroliyaprince@gmail.com>
Co-authored-by: Savannah Bailey <savannahostrowski@gmail.com>
7 weeks ago[3.13] gh-138952: Document platform.machine() output casing inconsistency across...
Miss Islington (bot) [Wed, 17 Sep 2025 15:05:56 +0000 (17:05 +0200)] 
[3.13] gh-138952:  Document platform.machine() output casing inconsistency across platforms (GH-138962) (#139046)

(cherry picked from commit dd15a2e11ea5d16ad42050a2723dec0e400ea394)

Co-authored-by: Aniket <148300120+Aniketsy@users.noreply.github.com>
Co-authored-by: AN Long <aisk@users.noreply.github.com>
7 weeks agogh-138896: Fix error installing C runtime on non-updated Windows machines (GH-138932)
Miss Islington (bot) [Wed, 17 Sep 2025 13:54:59 +0000 (15:54 +0200)] 
gh-138896: Fix error installing C runtime on non-updated Windows machines (GH-138932)

(cherry picked from commit 76b22978bcca4a9607523ba36b9c04ec3ba119bd)

Co-authored-by: adang1345 <adang1345@gmail.com>
7 weeks ago[3.13] gh-139006: Doc: Clarify html.escape function description (GH-139016) (#139037)
Miss Islington (bot) [Wed, 17 Sep 2025 13:54:16 +0000 (15:54 +0200)] 
[3.13] gh-139006: Doc: Clarify html.escape function description (GH-139016) (#139037)

gh-139006: Doc: Clarify html.escape function description (GH-139016)
(cherry picked from commit 81c975bcfc1ac0533f9489a37e501ad5d3bdb4eb)

Doc: Clarify html.escape function description (GH-139006)

Co-authored-by: PrinceNaroliya <naroliyaprince@gmail.com>
7 weeks agoAdds support for building with VisualStudioVersion = 18.0 (GH-138980)
Miss Islington (bot) [Wed, 17 Sep 2025 13:37:28 +0000 (15:37 +0200)] 
Adds support for building with VisualStudioVersion = 18.0 (GH-138980)

(cherry picked from commit 6920fa4bcddad4abb46a3ae40e16f13566d6cf26)

Co-authored-by: Steve Dower <steve.dower@python.org>
7 weeks ago[3.13] Synced docs and docstring for `sysconfig.get_platform` (GH-135530) (#138975)
Miss Islington (bot) [Wed, 17 Sep 2025 13:22:36 +0000 (15:22 +0200)] 
[3.13] Synced docs and docstring  for `sysconfig.get_platform` (GH-135530) (#138975)

(cherry picked from commit 01cc53295cca6834de77be79368c25b890bab8fc)

Co-authored-by: ivan <ivandietert@gmail.com>
Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
Co-authored-by: Ned Deily <nad@python.org>
7 weeks ago[3.13] gh-138966: Add description for `gi_suspended` attribute (GH-139008) (GH-139019)
Miss Islington (bot) [Wed, 17 Sep 2025 08:42:13 +0000 (10:42 +0200)] 
[3.13] gh-138966: Add description for `gi_suspended` attribute (GH-139008) (GH-139019)

gh-138966: Add description for `gi_suspended` attribute (GH-139008)
(cherry picked from commit c025576a8f0822ec42527e80eb7a02700316d100)

Co-authored-by: Donghoon Nam <54799053+codenamenam@users.noreply.github.com>
7 weeks ago[3.13] gh-135329: prevent infinite traceback loop on Ctrl-C for strace (#138974)
Łukasz Langa [Tue, 16 Sep 2025 13:17:36 +0000 (14:17 +0100)] 
[3.13] gh-135329: prevent infinite traceback loop on Ctrl-C for strace (#138974)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: dura0ok <slpmcf@gmail.com>
Co-authored-by: graymon <greyschwinger@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit b9dbf6acb34fd407d52899a6c154a1c57c9a424b)

7 weeks ago[3.13] gh-138163: skip failures if tests are run with `SCHED_BATCH` on glibc (GH...
Miss Islington (bot) [Tue, 16 Sep 2025 08:27:19 +0000 (10:27 +0200)] 
[3.13] gh-138163: skip failures if tests are run with `SCHED_BATCH` on glibc (GH-138576) (GH-138819)

(cherry picked from commit 492941459acb5b5a104d96414288601d2e2b7e6f)

This backport omits SCHED_DEADLINE, which was added in 3.14.

---------

Co-authored-by: jxes993409 <68891412+jxes993409@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
7 weeks ago[3.13] gh-128636: Fix crash in PyREPL when os.environ is overwritten with an invalid...
Łukasz Langa [Mon, 15 Sep 2025 22:53:51 +0000 (23:53 +0100)] 
[3.13] gh-128636: Fix crash in PyREPL when os.environ is overwritten with an invalid value for macOS (GH-138089) (GH-138942)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
(cherry picked from commit 8ef7735c536e0ffe4a60224e59b7587288f53e9e)

7 weeks ago[3.13] gh-137490: Fix signal.sigwaitinfo() on NetBSD (GH-137523) (GH-138936)
Miss Islington (bot) [Mon, 15 Sep 2025 16:43:32 +0000 (18:43 +0200)] 
[3.13] gh-137490: Fix signal.sigwaitinfo() on NetBSD (GH-137523) (GH-138936)

Handle ECANCELED in the same way as EINTR to work around the Posix
violation in the NetBSD's implementation.
(cherry picked from commit 07d0b95b05dfaf5832f44c2fbc956761f9e29571)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 weeks ago[3.13] gh-131189: Fix "msvcrt" import warning on Linux when "_ctypes" is not availabl...
Miss Islington (bot) [Mon, 15 Sep 2025 16:29:33 +0000 (18:29 +0200)] 
[3.13] gh-131189: Fix "msvcrt" import warning on Linux when "_ctypes" is not available. (GH-131201) (GH-138934)

gh-131189: Fix "msvcrt" import warning on Linux when "_ctypes" is not available. (GH-131201)

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

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

Co-authored-by: Dzmitry Plashchynski <plashchynski@gmail.com>
7 weeks ago[3.13] gh-138779: Use the dev_t converter for st_rdev (GH-138780) (GH-138927)
Miss Islington (bot) [Mon, 15 Sep 2025 14:29:57 +0000 (16:29 +0200)] 
[3.13] gh-138779: Use the dev_t converter for st_rdev (GH-138780) (GH-138927)

This allows to support device numbers larger than 2**63-1.
(cherry picked from commit 43013f72f0aadc5ee428aa5bdf6d949b4e79779a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 weeks ago[3.13] gh-137017: Ensure `Thread.is_alive()` only returns False after the underlying...
Miss Islington (bot) [Mon, 15 Sep 2025 13:28:05 +0000 (15:28 +0200)] 
[3.13] gh-137017: Ensure `Thread.is_alive()` only returns False after the underlying OS thread exits (gh-137315) (gh-138917)

(cherry picked from commit aa9ceb17215af21ed6618d6f7ccb5bf57ca57101)

Co-authored-by: Abdul <abdulrasheedibrahim47@gmail.com>
Co-authored-by: Sam Gross <colesbury@gmail.com>
7 weeks ago[3.13] gh-138902: Fix generator send arg name (GH-138905) (#138913)
Miss Islington (bot) [Mon, 15 Sep 2025 11:35:22 +0000 (13:35 +0200)] 
[3.13] gh-138902: Fix generator send arg name (GH-138905) (#138913)

gh-138902: Fix generator send arg name (GH-138905)
(cherry picked from commit cb07bd24eed43a0ac182e664398398164089f294)

Co-authored-by: Marat Khagazheev <marathagazeev@gmail.com>
Co-authored-by: marat <khagazheev@artlebedev.ru>
7 weeks ago[3.13] gh-138669: Increase test coverage for difflib (GH-138670) (#138818)
Miss Islington (bot) [Sun, 14 Sep 2025 19:42:05 +0000 (21:42 +0200)] 
[3.13] gh-138669: Increase test coverage for difflib (GH-138670) (#138818)

gh-138669: Increase test coverage for difflib (GH-138670)
(cherry picked from commit 44991619ba04a98c5878ee5bbc38d2e47cbd22c7)

Co-authored-by: Jan-Eric Nitschke <47750513+JanEricNitschke@users.noreply.github.com>
7 weeks ago[3.13] gh-71648: Optimize PNG files (GH-138842) (#138852)
Stan Ulbrych [Sun, 14 Sep 2025 15:29:59 +0000 (16:29 +0100)] 
[3.13] gh-71648: Optimize PNG files (GH-138842) (#138852)

* Only keep > 1 kb savings
(cherry picked from commit 2e8f64c9317a327a2be1ab8031844ef3967c1040)

7 weeks ago[3.13] gh-71810: Fix _PyLong_AsByteArray() undefined behavior (GH-138873) (#138884)
Miss Islington (bot) [Sun, 14 Sep 2025 09:49:23 +0000 (11:49 +0200)] 
[3.13] gh-71810: Fix _PyLong_AsByteArray() undefined behavior (GH-138873) (#138884)

gh-71810: Fix _PyLong_AsByteArray() undefined behavior (GH-138873)

Don't read p[-1] when p is an empty string: when n==0.
(cherry picked from commit 8b5ce31c2b44d9bf82e6119e90a52dd530bfd1db)

Co-authored-by: Victor Stinner <vstinner@python.org>
8 weeks ago[3.13] gh-138005: Document that CSV `skipinitialspace=True` and `delimiter=' '` requi...
Miss Islington (bot) [Thu, 11 Sep 2025 15:18:42 +0000 (17:18 +0200)] 
[3.13] gh-138005: Document that CSV `skipinitialspace=True` and `delimiter=' '` require quotation for empty fields (GH-138006) (#138799)

Co-authored-by: Maurycy Pawłowski-Wieroński <5383+maurycy@users.noreply.github.com>
8 weeks ago[3.13] gh-138479: Ensure that `__typing_subst__` returns a tuple (GH-138482) (GH...
Peter Bierma [Thu, 11 Sep 2025 11:08:57 +0000 (07:08 -0400)] 
[3.13] gh-138479: Ensure that `__typing_subst__` returns a tuple (GH-138482) (GH-138786)

* gh-138479: Ensure that `__typing_subst__` returns a tuple (GH-138482)

Raise an exception if __typing_subst__ returns a non-tuple object.

(cherry picked from commit 1da989be74eaa94590ec28e750e5352de1ead227)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 weeks ago[3.13] gh-71810: Fix corner case (length==0) for int.to_bytes() (GH-138739) (#138783)
Miss Islington (bot) [Thu, 11 Sep 2025 10:53:27 +0000 (12:53 +0200)] 
[3.13] gh-71810: Fix corner case (length==0) for int.to_bytes() (GH-138739) (#138783)

gh-71810: Fix corner case (length==0) for int.to_bytes() (GH-138739)

```pycon
>>> (0).to_bytes(0, 'big', signed=True)
b''
>>> (-1).to_bytes(0, 'big', signed=True)  # was b''
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    (-1).to_bytes(0, 'big', signed=True)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
OverflowError: int too big to convert
```
(cherry picked from commit 011179a79a0d7b93ce074b25b0819e96b6dd3315)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 weeks ago[3.13] gh-138432: Improved invalid path checking in zoneinfo.reset_tzpath() (GH-13843...
Serhiy Storchaka [Thu, 11 Sep 2025 07:35:39 +0000 (10:35 +0300)] 
[3.13] gh-138432: Improved invalid path checking in zoneinfo.reset_tzpath() (GH-138433) (GH-138778)

* Improve error messages for path-like relative paths and path-like bytes paths.
* TZPATH is now always a tuple of strings.
(cherry picked from commit 859aecc33b82f45e5b7ae30138d28f2a2f33a575)

Co-authored-by: Stephen Morton <git@tungol.org>
8 weeks ago[3.13] gh-134163: Fix an infinite loop when the process runs out of memory in a ...
yihong [Wed, 10 Sep 2025 16:54:42 +0000 (00:54 +0800)] 
[3.13] gh-134163: Fix an infinite loop when the process runs out of memory in a `try` block (GH-138491)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
8 weeks ago[3.13] gh-138744: GitHub Actions: pin to `windows-2022` (GH-138743) (#138753)
Hugo van Kemenade [Wed, 10 Sep 2025 16:15:22 +0000 (19:15 +0300)] 
[3.13] gh-138744: GitHub Actions: pin to `windows-2022` (GH-138743) (#138753)

8 weeks ago[3.13] gh-138729: Cover `inspect.formatannotationrelativeto` with tests (GH-138730...
sobolevn [Wed, 10 Sep 2025 14:42:49 +0000 (17:42 +0300)] 
[3.13] gh-138729: Cover `inspect.formatannotationrelativeto` with tests (GH-138730) (#138748)

(cherry picked from commit f5fa336579d124e389b1c36a5431e7908aaf5e53)

8 weeks ago[3.13] gh-90548: Skip NODEV portion of test_makedev when linked to musl (GH-138713)
Miss Islington (bot) [Tue, 9 Sep 2025 20:01:53 +0000 (22:01 +0200)] 
[3.13] gh-90548: Skip NODEV portion of test_makedev when linked to musl (GH-138713)

(cherry picked from commit bbe00d53e9f598b012470cf077357cbbcbee737f)

8 weeks ago[3.13] Add impl-detail block for PyLong_FromLong docs (GH-126422) (#138695)
Miss Islington (bot) [Tue, 9 Sep 2025 09:30:44 +0000 (11:30 +0200)] 
[3.13] Add impl-detail block for PyLong_FromLong docs (GH-126422) (#138695)

Add impl-detail block for PyLong_FromLong docs (GH-126422)
(cherry picked from commit fd2e3d163340a29fc3ad1e9be3289fee64979dbd)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
8 weeks ago[3.13] gh-137242: Add a --no-randomize option, and use it in Android CI (GH-138649...
Russell Keith-Magee [Tue, 9 Sep 2025 08:53:01 +0000 (16:53 +0800)] 
[3.13] gh-137242: Add a --no-randomize option, and use it in Android CI (GH-138649) (#138685)

Adds a --no-randomize option to the CI runner, so that randomisation can be easily
disabled for --fast-ci and --slow-ci configurations on single-threaded testing platforms
like Android, iOS, and Emscripten.

---------
(cherry picked from commit 01895d233b4370e0c99f16c01a57cfd73c434b28)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Malcolm Smith <smith@chaquo.com>
8 weeks ago[3.13] gh-126631: gh-137996: fix pre-loading of `__main__` (GH-135295) (#138609)
Gregory P. Smith [Mon, 8 Sep 2025 18:13:23 +0000 (11:13 -0700)] 
[3.13] gh-126631: gh-137996: fix pre-loading of `__main__` (GH-135295) (#138609)

gh-126631: gh-137996: fix pre-loading of `__main__`

The `main_path` parameter was renamed `init_main_from_name`, update the
forkserver code accordingly.  This was leading to slower startup times when people
were trying to preload the main module.

---------
(cherry picked from commit 0912b3a6dbd226bea79eb8d70d5a06230804d4cb)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
8 weeks ago[3.13] gh-107194: Improved language of list.index in tutorial (gh-138518) (#138528)
Miss Islington (bot) [Mon, 8 Sep 2025 15:01:01 +0000 (17:01 +0200)] 
[3.13] gh-107194: Improved language of list.index in tutorial (gh-138518) (#138528)

Co-authored-by: Ric <11750904+ricsatjr@users.noreply.github.com>
8 weeks ago[3.13] gh-138659: Typo in the gc module docstring (GH-138660) (#138663)
Miss Islington (bot) [Mon, 8 Sep 2025 14:39:43 +0000 (16:39 +0200)] 
[3.13] gh-138659: Typo in the gc module docstring (GH-138660) (#138663)

gh-138659: Typo in the gc module docstring (GH-138660)

docs(gc): fix typo in get_threshold() docstring

Removes a duplicate "the" from the docstring for the `gc.get_threshold()` function.
(cherry picked from commit c006a623e73d2368ec653e19c769706885161053)

Co-authored-by: Aalaap Dey <65075436+axdeyy@users.noreply.github.com>
8 weeks ago[3.13] gh-138644: Update c-api docs of `PyInterpreterState` about PEP-684 (GH-138651...
Miss Islington (bot) [Mon, 8 Sep 2025 13:52:45 +0000 (15:52 +0200)] 
[3.13] gh-138644: Update c-api docs of `PyInterpreterState` about PEP-684 (GH-138651) (#138658)

gh-138644: Update c-api docs of `PyInterpreterState` about PEP-684 (GH-138651)
(cherry picked from commit 4f0c267b40e52b83b2e1515aa0dd74eda31ae18a)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
8 weeks ago[3.13] gh-105487: Fix `__dir__` entries of `GenericAlias` (GH-138578) (#138640)
sobolevn [Mon, 8 Sep 2025 10:03:03 +0000 (13:03 +0300)] 
[3.13] gh-105487: Fix `__dir__` entries of `GenericAlias` (GH-138578) (#138640)

(cherry picked from commit b0420b505e6c9bbc8418e0f6240835ea777137b5)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
2 months ago[3.13] gh-138584: Increase test coverage for `collections.UserList` (GH-138590) ...
Miss Islington (bot) [Sun, 7 Sep 2025 09:52:35 +0000 (11:52 +0200)] 
[3.13] gh-138584: Increase test coverage for `collections.UserList` (GH-138590) (#138611)

gh-138584: Increase test coverage for `collections.UserList` (GH-138590)

Some common tests in `test.list_tests.CommonTest` explicitly tested `list`
instead of testing the underlying list-like type defined in `type2test`.

---------
(cherry picked from commit d7b9ea5cab984497526fcc0b988e4eb5988c1e88)

Co-authored-by: dbXD320 <devanshbaghla320@gmail.com>
Co-authored-by: Devansh Baghla <devanshbaghla34@gmail.com>
2 months ago[3.13] gh-138556: Fix old link in gc docs (#138596)
Spider84pr [Sun, 7 Sep 2025 07:53:56 +0000 (10:53 +0300)] 
[3.13] gh-138556: Fix old link in gc docs  (#138596)

2 months ago[3.13] gh-118981: multiprocessing.popen_spawn_posix, fix potential hang (gh-118982...
Miss Islington (bot) [Sun, 7 Sep 2025 07:41:54 +0000 (09:41 +0200)] 
[3.13] gh-118981: multiprocessing.popen_spawn_posix, fix potential hang (gh-118982) (#138606)

gh-118981: multiprocessing.popen_spawn_posix, fix potential hang (gh-118982)

fix potential hang.

It can happen that the child crashes right in the beginning for whatever reason. In this case, the parent will hang when writing into the pipe, because the child fd is not closed yet.

The normal pattern is to close the child fds right after the child proc is forked/executed/spawned, so when the child dies, then also the pipes will be closed, and there will be no hang (the parent gets SIGPIPE instead).
(cherry picked from commit 8ed5a2b56cc6a8635e586c641b0b837669f6677b)

Co-authored-by: Albert Zeyer <albzey@gmail.com>