]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 days ago[3.14] Fix minor typo: 'web site' -> 'website' (GH-140561) (GH-140976)
Miss Islington (bot) [Tue, 4 Nov 2025 13:11:08 +0000 (14:11 +0100)] 
[3.14] Fix minor typo: 'web site' -> 'website' (GH-140561) (GH-140976)

(cherry picked from commit 08115d241a724a4769599993f654f77abcdebf5a)

Co-authored-by: commitWithTisha <tishaa1010@gmail.com>
3 days ago[3.14] gh-140797: Forbid capturing groups in re.Scanner lexicon patterns (GH-140944...
Miss Islington (bot) [Tue, 4 Nov 2025 11:21:33 +0000 (12:21 +0100)] 
[3.14] gh-140797: Forbid capturing groups in re.Scanner lexicon patterns (GH-140944) (GH-140982)

(cherry picked from commit fa9c3eefd475f0647a69bf3f49db8100848fb6a9)

Co-authored-by: Abhishek Tiwari <Abhi210@users.noreply.github.com>
3 days ago[3.14] gh-140815: Fix faulthandler for invalid/freed frame (GH-140921) (#140981)
Miss Islington (bot) [Tue, 4 Nov 2025 11:18:23 +0000 (12:18 +0100)] 
[3.14] gh-140815: Fix faulthandler for invalid/freed frame (GH-140921) (#140981)

gh-140815: Fix faulthandler for invalid/freed frame (GH-140921)

faulthandler now detects if a frame or a code object is invalid or
freed.

Add helper functions:

* _PyCode_SafeAddr2Line()
* _PyFrame_SafeGetCode()
* _PyFrame_SafeGetLasti()

_PyMem_IsPtrFreed() now detects pointers in [-0xff, 0xff] range
as freed.
(cherry picked from commit a84181c31bfc45a1d6bcb1296bd298ad612c54d0)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 days ago[3.14] Docs: Fix a typo in `idle.rst` (Chitespace -> Whitespace) (GH-140946) (#140953)
Miss Islington (bot) [Tue, 4 Nov 2025 08:02:10 +0000 (09:02 +0100)] 
[3.14] Docs: Fix a typo in `idle.rst` (Chitespace -> Whitespace) (GH-140946) (#140953)

Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>
3 days ago[3.14] Fix minor typos and wording in C API docs (GH-140955) (#140966)
Hugo van Kemenade [Tue, 4 Nov 2025 07:46:08 +0000 (09:46 +0200)] 
[3.14] Fix minor typos and wording in C API docs (GH-140955) (#140966)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 days ago[3.14] gh-140889: Test tailcall and JIT in CI (GH-140891) (GH-140962)
Ken Jin [Mon, 3 Nov 2025 19:53:10 +0000 (03:53 +0800)] 
[3.14] gh-140889: Test tailcall and JIT in CI (GH-140891) (GH-140962)

4 days ago[3.14] gh-133600: Run `Tools/wasm/wasi` on CI instead of deprecated `Tools/wasm/wasi...
Miss Islington (bot) [Mon, 3 Nov 2025 19:51:32 +0000 (20:51 +0100)] 
[3.14] gh-133600: Run `Tools/wasm/wasi` on CI instead of deprecated `Tools/wasm/wasi.py` (GH-140907) (#140964)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 days ago[3.14] gh-138151: Fix annotationlib handling of multiple nonlocals (GH-138164) (...
Miss Islington (bot) [Mon, 3 Nov 2025 15:52:01 +0000 (16:52 +0100)] 
[3.14] gh-138151: Fix annotationlib handling of multiple nonlocals (GH-138164) (#140949)

gh-138151: Fix annotationlib handling of multiple nonlocals (GH-138164)
(cherry picked from commit b1027d4762435b97546c122dd94290d707b3ff39)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
4 days ago[3.14] gh-140348: Fix using | on unusual objects plus Unions (GH-140383) (#140948)
Miss Islington (bot) [Mon, 3 Nov 2025 15:16:03 +0000 (16:16 +0100)] 
[3.14] gh-140348: Fix using | on unusual objects plus Unions (GH-140383) (#140948)

gh-140348: Fix using | on unusual objects plus Unions (GH-140383)
(cherry picked from commit 7a9437d98641e3c3749ab2fd9fb54eac7614f9af)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
4 days ago[3.14] Revert "gh-137969: Fix evaluation of `ref.evaluate(format=Format.FORWARDREF...
Jelle Zijlstra [Mon, 3 Nov 2025 14:07:22 +0000 (06:07 -0800)] 
[3.14] Revert "gh-137969: Fix evaluation of `ref.evaluate(format=Format.FORWARDREF)` objects (GH-138075) (#140929)" (GH-140931)

Revert "[3.14] gh-137969: Fix evaluation of `ref.evaluate(format=Format.FORWARDREF)` objects (GH-138075) (#140929)"

This reverts commit cdb6fe89ae3a4bfbffb91290dbf9db0c4af85cd5.

4 days ago[3.14] gh-140693: Improve `argparse` documentation about controlling color (GH-140737...
Miss Islington (bot) [Mon, 3 Nov 2025 05:08:47 +0000 (06:08 +0100)] 
[3.14] gh-140693: Improve `argparse` documentation about controlling color (GH-140737) (#140932)

gh-140693: Improve `argparse` documentation about controlling color (GH-140737)
(cherry picked from commit 31de83d5e2e17f4e9a37e08b384bab916e1da7c1)

Co-authored-by: Krishna Chaitanya <141550576+XChaitanyaX@users.noreply.github.com>
4 days ago[3.14] gh-137969: Fix evaluation of `ref.evaluate(format=Format.FORWARDREF)` objects...
Miss Islington (bot) [Mon, 3 Nov 2025 01:45:44 +0000 (02:45 +0100)] 
[3.14] gh-137969: Fix evaluation of `ref.evaluate(format=Format.FORWARDREF)` objects (GH-138075) (#140929)

gh-137969: Fix evaluation of `ref.evaluate(format=Format.FORWARDREF)` objects (GH-138075)
(cherry picked from commit 63e01d6bae9ddc9ff35aca2134945670eacef163)

Co-authored-by: dr-carlos <77367421+dr-carlos@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
4 days ago[3.14] gh-138425: Correctly partially evaluate global generics with undefined params...
Miss Islington (bot) [Sun, 2 Nov 2025 23:41:49 +0000 (00:41 +0100)] 
[3.14] gh-138425: Correctly partially evaluate global generics with undefined params in `ref.evaluate(format=Format.FORWARDREF)` (GH-138430) (#140927)

gh-138425: Correctly partially evaluate global generics with undefined params in `ref.evaluate(format=Format.FORWARDREF)` (GH-138430)
(cherry picked from commit e66f87ca73516efb4aec1f2f056d2a4efd73248a)

Co-authored-by: dr-carlos <77367421+dr-carlos@users.noreply.github.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
5 days ago[3.14] gh-135307: Fix email error when policy max_line_length is set to 0 or None...
Miss Islington (bot) [Sun, 2 Nov 2025 15:03:12 +0000 (16:03 +0100)] 
[3.14] gh-135307: Fix email error when policy max_line_length is set to 0 or None (GH-135367) (#140915)

gh-135307: Fix email error when policy max_line_length is set to 0 or None (GH-135367)
(cherry picked from commit 6d45cd8dbb07ae020ec07f2c3375dd06e52377f6)

RDM: Like the change made in a earlier PR to the folder, we can/must use 'maxlen' as a stand in for 'unlimited' when computing line lengths when max_line_length is 0 or None; otherwise the computation results in a traceback.

Co-authored-by: Jiucheng(Oliver) <git.jiucheng@gmail.com>
5 days ago[3.14] Docs: avoid informal formulation in `Doc/c-api/conversion.rst` (GH-140898...
Miss Islington (bot) [Sun, 2 Nov 2025 13:57:26 +0000 (14:57 +0100)] 
[3.14] Docs: avoid informal formulation in `Doc/c-api/conversion.rst` (GH-140898) (#140912)

Docs: avoid informal formulation in `Doc/c-api/conversion.rst` (GH-140898)
(cherry picked from commit 173cc53d9fdc596d7a19102fa407c829f9c71516)

Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
5 days ago[3.14] gh-90949: add Expat API to prevent XML deadly allocations (CVE-2025-59375...
Bénédikt Tran [Sun, 2 Nov 2025 09:33:36 +0000 (10:33 +0100)] 
[3.14] gh-90949: add Expat API to prevent XML deadly allocations (CVE-2025-59375) (GH-139234) (#139359)

* [3.14] gh-90949: add Expat API to prevent XML deadly allocations (CVE-2025-59375) (GH-139234)

Expose the XML Expat 2.7.2 mitigation APIs to disallow use of
disproportional amounts of dynamic memory from within an Expat
parser (see CVE-2025-59375 for instance).

The exposed APIs are available on Expat parsers, that is,
parsers created by `xml.parsers.expat.ParserCreate()`, as:

- `parser.SetAllocTrackerActivationThreshold(threshold)`, and
- `parser.SetAllocTrackerMaximumAmplification(max_factor)`.

(cherry picked from commit f04bea44c37793561d753dd4ca6e7cd658137553)
(cherry picked from commit 68a1778b7721f3fb853cd3aa674f7039c2a4df36)

5 days ago[3.14] Docs: fix some grammatical errors in `Doc/c-api/dict.rst` (GH-140899) (#140901)
Miss Islington (bot) [Sun, 2 Nov 2025 08:38:56 +0000 (09:38 +0100)] 
[3.14] Docs: fix some grammatical errors in `Doc/c-api/dict.rst` (GH-140899) (#140901)

Docs: fix some grammatical errors in `Doc/c-api/dict.rst` (GH-140899)
(cherry picked from commit d12cbf2865d2845d238f697ddace83face814972)

Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
6 days ago[3.14] gh-140104: Revert "Set next_instr properly in the JIT during exceptions (GH...
Ken Jin [Sat, 1 Nov 2025 18:41:01 +0000 (02:41 +0800)] 
[3.14] gh-140104: Revert "Set next_instr properly in the JIT during exceptions (GH-140233) (GH-140687)" (#140890)

Revert "[3.14] gh-140104: Set next_instr properly in the JIT during exceptions (GH-140233) (GH-140687)"

This reverts commit 2e216728038a03d387231f39ded091ec318ba61b.

6 days ago[3.14] gh-140312: Set lltrace on JIT debug builds (GH-140313) (#140887)
Miss Islington (bot) [Sat, 1 Nov 2025 16:49:35 +0000 (17:49 +0100)] 
[3.14] gh-140312: Set lltrace on JIT debug builds (GH-140313) (#140887)

gh-140312: Set lltrace on JIT debug builds (GH-140313)
(cherry picked from commit f701f98052e906af9a065d68bdf2398ef3b476d9)

Co-authored-by: Ken Jin <kenjin@python.org>
Co-authored-by: Mark Shannon <mark@hotpy.org>
6 days ago[3.14] gh-140874: Upgrade bundled pip to 25.3 (GH-140876) (gh-140881)
Miss Islington (bot) [Sat, 1 Nov 2025 11:21:51 +0000 (12:21 +0100)] 
[3.14] gh-140874: Upgrade bundled pip to 25.3 (GH-140876) (gh-140881)

gh-140874: Upgrade bundled pip to 25.3 (GH-140876)

Upgrade bundled pip to 25.3
(cherry picked from commit d440a0f96c6e87ee93810e0184068e90087af466)

Co-authored-by: Damian Shaw <damian.peter.shaw@gmail.com>
7 days ago[3.14] gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952) (GH...
Łukasz Langa [Fri, 31 Oct 2025 16:43:23 +0000 (17:43 +0100)] 
[3.14] gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952) (GH-140844)

(cherry picked from commit f029e8db626ddc6e3a3beea4eff511a71aaceb5c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 days ago[3.14] gh-137836: Support more RAWTEXT and PLAINTEXT elements in HTMLParser (GH-13783...
Miss Islington (bot) [Fri, 31 Oct 2025 16:13:13 +0000 (17:13 +0100)] 
[3.14] gh-137836: Support more RAWTEXT and PLAINTEXT elements in HTMLParser (GH-137837) (GH-140841)

* the "plaintext" element
* the RAWTEXT elements "xmp", "iframe", "noembed" and "noframes"
* optionally RAWTEXT (if scripting=True) element "noscript"
(cherry picked from commit a17c57eee5b5cc81390750d07e4800b19c0c3084)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 days ago[3.14] gh-138944: Fix `SyntaxError` message for invalid syntax following valid import...
Brian Schubert [Fri, 31 Oct 2025 10:26:40 +0000 (06:26 -0400)] 
[3.14] gh-138944: Fix `SyntaxError` message for invalid syntax following valid import-as statement (GH-138945) (#140646)

(cherry picked from commit 3dab11f888fda34c02734e4468d1acd4c36927fe)

8 days ago[3.14] Make printing log lines to the terminal a little cleaner when building WASI...
Miss Islington (bot) [Thu, 30 Oct 2025 18:02:10 +0000 (19:02 +0100)] 
[3.14] Make printing log lines to the terminal a little cleaner when building WASI (GH-140772) (GH-140804)

Make printing log lines to the terminal a little cleaner when building WASI (GH-140772)
(cherry picked from commit abd19eddee20a7d05266f11f6042a84b04d29664)

Co-authored-by: Brett Cannon <brett@python.org>
8 days ago[3.14] gh-140551: Fix dict crash if clear is called at lookup stage (GH-140558) ...
Mikhail Efimov [Thu, 30 Oct 2025 17:03:35 +0000 (20:03 +0300)] 
[3.14] gh-140551: Fix dict crash if clear is called at lookup stage (GH-140558) (#140743)

gh-140551: Fix `dict` crash if `clear` is called at `lookup` stage (#140558)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
8 days ago[3.14] GH-140768: Warn when the WASI SDK version doesn't match the supported version...
Miss Islington (bot) [Thu, 30 Oct 2025 17:01:22 +0000 (18:01 +0100)] 
[3.14] GH-140768: Warn when the WASI SDK version doesn't match the supported version (GH-140769) (GH-140801)

GH-140768: Warn when the WASI SDK version doesn't match the supported version (GH-140769)
(cherry picked from commit 95a3564869daa3cc083e4d4603f5f03ee5f53e31)

Co-authored-by: Brett Cannon <brett@python.org>
8 days ago[3.14] gh-137821: Fix wrongly tested json.decoder.scanstring (gh-140782)
Donghee Na [Thu, 30 Oct 2025 13:51:25 +0000 (22:51 +0900)] 
[3.14] gh-137821: Fix wrongly tested json.decoder.scanstring (gh-140782)

8 days ago[3.14] gh-131927: Do not emit PEP 765 warnings in ast.parse() (GH-139642) (GH-140786)
Miss Islington (bot) [Thu, 30 Oct 2025 11:25:34 +0000 (12:25 +0100)] 
[3.14] gh-131927: Do not emit PEP 765 warnings in ast.parse() (GH-139642) (GH-140786)

ast.parse() no longer emits syntax warnings for
return/break/continue in finally (see PEP-765) -- they are only
emitted during compilation.
(cherry picked from commit ad0a3f733b23e7fc69aff13055c7fac8ab9dcd66)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 days ago[3.14] gh-138162: Fix logging.LoggerAdapter with merge_extra=True and without the...
Miss Islington (bot) [Thu, 30 Oct 2025 11:19:27 +0000 (12:19 +0100)] 
[3.14] gh-138162: Fix logging.LoggerAdapter with merge_extra=True and without the extra argument (GH-140511) (GH-140784)

(cherry picked from commit 327dbbedffa3f2c95e70129a11974b83e27864f9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 days ago[3.14] gh-120057: add `os.reload_environ` to `__all__` (GH-140763) (#140773)
Miss Islington (bot) [Wed, 29 Oct 2025 22:22:20 +0000 (23:22 +0100)] 
[3.14] gh-120057: add `os.reload_environ` to `__all__` (GH-140763) (#140773)

Co-authored-by: Guo Ci <zguoci@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
9 days ago[3.14] gh-140082: Forward colorizing from libregrtest to unittest (GH-140083) (#140756)
Miss Islington (bot) [Wed, 29 Oct 2025 18:11:24 +0000 (19:11 +0100)] 
[3.14] gh-140082: Forward colorizing from libregrtest to unittest (GH-140083) (#140756)

gh-140082: Forward colorizing from libregrtest to unittest (GH-140083)

libregrtest redirects test output to a file as part of its operation.
When `unittest` checks to see if it should colorize with
`isatty(sys.stdout)` that fails resulting in no colorizing of the
unittest output.

Update `libregrtest` to set `FORCE_COLOR=1` when redirecting test output
so that unittest will do color printing.
(cherry picked from commit 6ff62ac4fbc3f17529823c146cc3a3f8c21eed42)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
9 days ago[3.14] gh-140228: Avoid making unnecessary syscalls in linecache for frozen modules...
Miss Islington (bot) [Wed, 29 Oct 2025 16:26:38 +0000 (17:26 +0100)] 
[3.14] gh-140228: Avoid making unnecessary syscalls in linecache for frozen modules (GH-140377) (#140738)

gh-140228: Avoid making unnecessary syscalls in linecache for frozen modules (GH-140377)
(cherry picked from commit c41f84ff61c52e3ff7ef86b0c66208b29613d23d)

Co-authored-by: tconley1428 <tconley1428@gmail.com>
9 days ago[3.14] gh-140576: Fixed crash produced by lexer in case of dedented zero byte (GH...
Miss Islington (bot) [Wed, 29 Oct 2025 13:54:37 +0000 (14:54 +0100)] 
[3.14] gh-140576: Fixed crash produced by lexer in case of dedented zero byte (GH-140583) (#140757)

gh-140576: Fixed crash produced by lexer in case of dedented zero byte (GH-140583)
(cherry picked from commit 8706167474e9a625e5f6613d3c7ac77a62faff58)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
9 days ago[3.14] gh-140702: Log color and GHA env vars in test.pythoninfo (GH-140747) (#140753)
Miss Islington (bot) [Wed, 29 Oct 2025 12:54:04 +0000 (13:54 +0100)] 
[3.14] gh-140702: Log color and GHA env vars in test.pythoninfo (GH-140747) (#140753)

gh-140702: Log color and GHA env vars in test.pythoninfo (GH-140747)
(cherry picked from commit 376559bf54762d7b6e0a14591a1f284c8f09a855)

Co-authored-by: Victor Stinner <vstinner@python.org>
9 days ago[3.14] gh-140607: Validate returned byte count in RawIOBase.read (GH-140611) (#140728)
Cody Maloney [Wed, 29 Oct 2025 12:31:48 +0000 (05:31 -0700)] 
[3.14] gh-140607: Validate returned byte count in RawIOBase.read (GH-140611) (#140728)

* [3.14] gh-140607: Validate returned byte count in RawIOBase.read (GH-140611)

While `RawIOBase.readinto` should return a count of bytes between 0 and
the length of the given buffer, it is not required to. Add validation
inside RawIOBase.read() that the returned byte count is valid.
(cherry picked from commit 0f0a362768aecb4c791724cce486d8317533a94d)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Shamil <ashm.tech@proton.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
* fixup: Use older attribute name

---------

Co-authored-by: Shamil <ashm.tech@proton.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
9 days ago[3.14] gh-140702: Add test skip for Unix Datagram tests on iOS when on Github Actions...
Miss Islington (bot) [Wed, 29 Oct 2025 09:01:39 +0000 (10:01 +0100)] 
[3.14] gh-140702: Add test skip for Unix Datagram tests on iOS when on Github Actions (GH-140740) (#140742)

Exposes the GITHUB_ACTIONS environment variable to iOS simulator test runs, and
uses this variable to skip a Unix Datagram socketserver test that is unreliable
in the iOS GitHub Actions environment.
(cherry picked from commit 9f8d005d2961777aa533ec330f96b50324a3446f)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
9 days ago[3.14] gh-139951: Tests on tuple GC tracking (GH-140575) (#140701)
Mikhail Efimov [Wed, 29 Oct 2025 07:17:49 +0000 (10:17 +0300)] 
[3.14] gh-139951: Tests on tuple GC tracking (GH-140575) (#140701)

10 days ago[3.14] gh-139588: Increase maximum LaTeX list depth (GH-140709) (#140724)
Miss Islington (bot) [Tue, 28 Oct 2025 20:05:28 +0000 (21:05 +0100)] 
[3.14] gh-139588: Increase maximum LaTeX list depth (GH-140709) (#140724)

Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
10 days ago[3.14] gh-140657: Don't rerun test_import single phase init test (GH-140712) (#140713)
Miss Islington (bot) [Tue, 28 Oct 2025 17:33:34 +0000 (18:33 +0100)] 
[3.14] gh-140657: Don't rerun test_import single phase init test (GH-140712) (#140713)

gh-140657: Don't rerun test_import single phase init test (GH-140712)

test_basic_multiple_interpreters_main_no_reset() leaks memory:
import_in_subinterp() is called with postcleanup=False.
(cherry picked from commit c6d4c79c9abac5c5cc2e7b429d72946d15c5e132)

Co-authored-by: Victor Stinner <vstinner@python.org>
10 days ago[3.14] GH-140590: Fix setstate for functools.partial C-module (GH-140671) (#140698)
Miss Islington (bot) [Tue, 28 Oct 2025 12:45:27 +0000 (13:45 +0100)] 
[3.14] GH-140590: Fix setstate for functools.partial C-module (GH-140671) (#140698)

GH-140590: Fix setstate for functools.partial C-module (GH-140671)

(cherry picked from commit d26686a7f87d63499f7296c0811fa0535637a93b)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
10 days ago[3.14] gh-134160: Add more comments for the xxlimited module (GH-140214) (GH-140664)
Miss Islington (bot) [Tue, 28 Oct 2025 09:24:11 +0000 (10:24 +0100)] 
[3.14] gh-134160: Add more comments for the xxlimited module (GH-140214) (GH-140664)

(cherry picked from commit 18e4a89e42c681fe035d4d39a71e79d3c6b70903)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
10 days ago[3.14] gh-140189: Add CI job to test iOS builds. (GH-140190) (#140696)
Miss Islington (bot) [Tue, 28 Oct 2025 06:13:30 +0000 (07:13 +0100)] 
[3.14] gh-140189: Add CI job to test iOS builds. (GH-140190) (#140696)

Adds a CI configuration to test iOS builds on every build.
(cherry picked from commit f4e6370582380b12286b6f5b625c282eaf12c84a)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
10 days ago[3.14] gh-140104: Set next_instr properly in the JIT during exceptions (GH-140233...
Mikhail Efimov [Mon, 27 Oct 2025 23:49:10 +0000 (02:49 +0300)] 
[3.14] gh-140104: Set next_instr properly in the JIT during exceptions (GH-140233) (GH-140687)

Co-authored-by: Ken Jin <kenjin@python.org>
Co-authored-by: devdanzin <74280297+devdanzin@users.noreply.github.com>
Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
11 days ago[3.14] gh-140634: Fix a reference counting bug in os.sched_param.__reduce__() (GH...
Miss Islington (bot) [Mon, 27 Oct 2025 20:08:57 +0000 (21:08 +0100)] 
[3.14] gh-140634: Fix a reference counting bug in os.sched_param.__reduce__() (GH-140667) (GH-140685)

(cherry picked from commit 364ae607d8035db8ba92486ebebd8225446c1a90)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
11 days ago[3.14] gh-140358: Bring back elapsed time and unreachable count to gc debug output...
Miss Islington (bot) [Mon, 27 Oct 2025 13:29:43 +0000 (14:29 +0100)] 
[3.14] gh-140358: Bring back elapsed time and unreachable count to gc debug output (GH-140359) (#140405)

Co-authored-by: Pål Grønås Drange <paal.drange+pgdr@gmail.com>
11 days ago[3.14] gh-140487: Fix Py_RETURN_NOTIMPLEMENTED in limited C API 3.11 (GH-140636)...
Miss Islington (bot) [Mon, 27 Oct 2025 13:15:49 +0000 (14:15 +0100)] 
[3.14] gh-140487: Fix Py_RETURN_NOTIMPLEMENTED in limited C API 3.11 (GH-140636) (#140668)

gh-140487: Fix Py_RETURN_NOTIMPLEMENTED in limited C API 3.11 (GH-140636)

Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE have already been
fixed by commit 9258f3da9175134d03f2c8c7c7eed223802ad945 (issue gh-134989).
(cherry picked from commit c6364775236e3c634c3393c7f50fece50611245f)

Co-authored-by: Victor Stinner <vstinner@python.org>
11 days ago[3.14] gh-140633: AppleFrameworkLoader: Ignore AttributeError when setting __file__...
Miss Islington (bot) [Mon, 27 Oct 2025 13:08:00 +0000 (14:08 +0100)] 
[3.14] gh-140633: AppleFrameworkLoader: Ignore AttributeError when setting __file__ (GH-140635) (GH-140660)

(cherry picked from commit 3416e7c8dc004773d814b6f9ec9562434ed961cd)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
11 days ago[3.14] Docs: Replace "encoder" with "decoder" in `Doc/c-api/codec.rst` (GH-140613...
Miss Islington (bot) [Mon, 27 Oct 2025 09:51:14 +0000 (10:51 +0100)] 
[3.14] Docs: Replace "encoder" with "decoder" in `Doc/c-api/codec.rst` (GH-140613) (#140661)

Docs: Replace "encoder" with "decoder" in `Doc/c-api/codec.rst` (GH-140613)
(cherry picked from commit d12086e8228323cc2e31d263f1aeb8190bd1c1d9)

Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
11 days ago[3.14] Remove dead stores to 'size' in UTF-8 decoder (unicodeobject.c) (GH-140637...
Miss Islington (bot) [Mon, 27 Oct 2025 09:21:43 +0000 (10:21 +0100)] 
[3.14] Remove dead stores to 'size' in UTF-8 decoder (unicodeobject.c) (GH-140637) (#140658)

Remove dead stores to 'size' in UTF-8 decoder (unicodeobject.c) (GH-140637)
(cherry picked from commit 7d70a147f58edabc9691869a0e8b606c9c3ac184)

Co-authored-by: Shamil <ashm.tech@proton.me>
12 days ago[3.14] gh-140593: Fix a memory leak in function `my_ElementDeclHandler` of `pyexpat...
Sebastian Pipping [Sun, 26 Oct 2025 15:19:18 +0000 (16:19 +0100)] 
[3.14] gh-140593: Fix a memory leak in function `my_ElementDeclHandler` of `pyexpat` (GH-140602) (#140629)

[3.14] gh-140593: Fix a memory leak in function `my_ElementDeclHandler` of `pyexpat` (GH-140602)

Ensure that the memory allocated for the content model
passed to `my_ElementDeclHandler` is freed in all error
paths.

(cherry picked from commit e34a5e33049ce845de646cf24a498766a2da3586)

12 days ago[3.14] gh-137568: Ignore startup file in `test_dumb_terminal_exits_cleanly` (GH-14029...
Miss Islington (bot) [Sun, 26 Oct 2025 15:15:49 +0000 (16:15 +0100)] 
[3.14] gh-137568: Ignore startup file in `test_dumb_terminal_exits_cleanly` (GH-140295) (GH-140628)

gh-137568: Ignore startup file in `test_dumb_terminal_exits_cleanly` (GH-140295)
(cherry picked from commit 06c779474c7f53bccb8ebf42c66e73b2488bf488)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
12 days ago[3.14] gh-133346: add tests for `_colorize.Theme` (GH-139687) (#140622)
Miss Islington (bot) [Sun, 26 Oct 2025 12:49:20 +0000 (13:49 +0100)] 
[3.14] gh-133346: add tests for `_colorize.Theme` (GH-139687) (#140622)

* gh-133346: add tests for `_colorize.Theme` (GH-139687)
(cherry picked from commit 37827c17526b7d3e1275861a1207be71aef6b284)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 days ago[3.14] gh-133346: make `_colorize.Argparse` kw-only constructible (GH-140620) (#140621)
Miss Islington (bot) [Sun, 26 Oct 2025 12:00:10 +0000 (13:00 +0100)] 
[3.14] gh-133346: make `_colorize.Argparse` kw-only constructible (GH-140620) (#140621)

gh-133346: make `_colorize.Argparse` kw-only constructible (GH-140620)

Other themes are kw-only constructible.
(cherry picked from commit 387ac2d2f3a9de139d2e1ad5f0dc7996af015f54)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 days ago[3.14] Docs: Fix a grammatical error in `Doc/c-api/codec.rst` (GH-140612) (#140616)
Miss Islington (bot) [Sun, 26 Oct 2025 09:45:34 +0000 (10:45 +0100)] 
[3.14] Docs: Fix a grammatical error in `Doc/c-api/codec.rst` (GH-140612) (#140616)

Docs: Fix a grammatical error in `Doc/c-api/codec.rst` (GH-140612)
(cherry picked from commit 33b2ca80bb073e25b8e23691da96cf0eda67c7bf)

Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
12 days ago[3.14] gh-124694: Add versionadded note to InterpreterPoolExecutor (GH-140605)
Miss Islington (bot) [Sat, 25 Oct 2025 23:37:24 +0000 (01:37 +0200)] 
[3.14] gh-124694: Add versionadded note to InterpreterPoolExecutor (GH-140605)

(cherry picked from commit 421a475c87771d46752c27def264e5c622a58427)

Co-authored-by: Zachary Ware <zach@python.org>
13 days ago[3.14] Fix typo in `Doc/c-api/code.rst` (GH-140586) (#140591)
Miss Islington (bot) [Sat, 25 Oct 2025 15:41:04 +0000 (17:41 +0200)] 
[3.14] Fix typo in `Doc/c-api/code.rst` (GH-140586) (#140591)

Fix typo in `Doc/c-api/code.rst` (GH-140586)
(cherry picked from commit d74a96366df58b6e55d4a03612c3e67da2211ddd)

Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
13 days ago[3.14] Remove unreachable break statements in _ctypes_test.c (GH-140585) (#140587)
Miss Islington (bot) [Sat, 25 Oct 2025 15:39:42 +0000 (17:39 +0200)] 
[3.14] Remove unreachable break statements in _ctypes_test.c (GH-140585) (#140587)

Remove unreachable break statements in _ctypes_test.c (GH-140585)
(cherry picked from commit 2a1c9bd616b1b3a07c74d280e3f7e2bd94d0cc22)

Co-authored-by: Shamil <ashm.tech@proton.me>
13 days ago[3.14] Docs: Fix a grammatical error in `Doc/c-api/capsule.rst` (GH-140577) (GH-140580)
Miss Islington (bot) [Sat, 25 Oct 2025 14:02:20 +0000 (16:02 +0200)] 
[3.14] Docs: Fix a grammatical error in `Doc/c-api/capsule.rst` (GH-140577) (GH-140580)

Docs: Fix a grammatical error in `Doc/c-api/capsule.rst` (GH-140577)

"who" -> "which"
(cherry picked from commit 4ad599501fe8ec58ef2842d26330696820b2cc5c)

Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
2 weeks ago[3.14] gh-140463: Fix typo in xmlrpc.client documentation (GH-140552) (#140568)
Miss Islington (bot) [Fri, 24 Oct 2025 20:53:24 +0000 (22:53 +0200)] 
[3.14] gh-140463: Fix typo in xmlrpc.client documentation (GH-140552) (#140568)

gh-140463: Fix typo in xmlrpc.client documentation (GH-140552)

Fix typo in xmlrpc.client documentation
(cherry picked from commit 44b6eead21080e1abb3ca9ee2e1c7bc8e7a3c3a6)

Co-authored-by: Miša Jakovljević <misajakovljevic3@gmail.com>
2 weeks ago[3.14] Add missing NEWS entry for gh-140517 (GH-140560) (GH-140565)
Miss Islington (bot) [Fri, 24 Oct 2025 20:00:21 +0000 (22:00 +0200)] 
[3.14] Add missing NEWS entry for gh-140517 (GH-140560) (GH-140565)

(cherry picked from commit d78d7a50b06c4ea10d13fc2dcb42607a97f9260c)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
2 weeks ago[3.14] gh-140482: Preserve and restore `stty echo` as a test environment (GH-140519...
Miss Islington (bot) [Fri, 24 Oct 2025 19:24:17 +0000 (21:24 +0200)] 
[3.14] gh-140482: Preserve and restore `stty echo` as a test environment (GH-140519) (#140562)

gh-140482: Preserve and restore `stty echo` as a test environment (GH-140519)
(cherry picked from commit b3c713a0af5f5c4b5704d8019a893a1b70eba941)

gh-140482: Restore `stty echo` as a test environment

Co-authored-by: Barry Warsaw <barry@python.org>
2 weeks ago[3.14] gh-140517: fix leak in `map_next` in strict mode (GH-140543) (#140554)
Miss Islington (bot) [Fri, 24 Oct 2025 16:30:36 +0000 (18:30 +0200)] 
[3.14] gh-140517: fix leak in `map_next` in strict mode (GH-140543) (#140554)

gh-140517: fix leak in `map_next` in strict mode (GH-140543)
(cherry picked from commit be5af997f3461eee638645396866d9cd7acf18fb)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
2 weeks ago[3.14] Document that PyModule_GetDef can return NULL with or without setting an excep...
Miss Islington (bot) [Fri, 24 Oct 2025 13:36:35 +0000 (15:36 +0200)] 
[3.14] Document that PyModule_GetDef can return NULL with or without setting an exception (GH-140529) (GH-140545)

(cherry picked from commit 289360ae63933c8956f87307ff091ec9ed19afed)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 weeks ago[3.14] Docs: Fix a grammatical error in `Doc/c-api/arg.rst` (GH-140525) (GH-140538)
Miss Islington (bot) [Fri, 24 Oct 2025 12:24:26 +0000 (14:24 +0200)] 
[3.14] Docs: Fix a grammatical error in `Doc/c-api/arg.rst` (GH-140525) (GH-140538)

Docs: Fix a grammatical error in `Doc/c-api/arg.rst` (GH-140525)

"have" -> "has"
(cherry picked from commit fc2e23c2ed25bb7b23cf8a870a2e21f012735507)

Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
2 weeks ago[3.14] gh-136535: Tests: Correct `Py_TPFLAGS_MANAGED_DICT` in `test_class.py` (gh...
Miss Islington (bot) [Fri, 24 Oct 2025 11:45:44 +0000 (13:45 +0200)] 
[3.14] gh-136535: Tests: Correct `Py_TPFLAGS_MANAGED_DICT` in `test_class.py` (gh-136538) (gh-140532)

2 weeks ago[3.14] gh-137093: Fix race condition in `test_embed.test_bpo20891` (GH-137094) (...
Kumar Aditya [Fri, 24 Oct 2025 07:51:44 +0000 (13:21 +0530)] 
[3.14] gh-137093: Fix race condition in `test_embed.test_bpo20891` (GH-137094) (#140524)

Use a `PyEvent` instead of a lock to fix a race on the free-threaded build.
(cherry picked from commit 9b451fb457a5de9ed535a0e2f41161dfaa9a419a)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 weeks ago[3.14] gh-140471: Fix buffer overflow in AST node initialization with malformed ...
Miss Islington (bot) [Thu, 23 Oct 2025 17:20:21 +0000 (19:20 +0200)] 
[3.14] gh-140471: Fix buffer overflow in AST node initialization with malformed `_fields` (GH-140506) (#140509)

gh-140471: Fix buffer overflow in AST node initialization with malformed `_fields` (GH-140506)
(cherry picked from commit 95953b692db6cbd88139de12d81fb123293ec2d5)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.14] gh-140438: properly run the asyncio REPL tests (GH-140298) (#140507)
Miss Islington (bot) [Thu, 23 Oct 2025 15:48:26 +0000 (17:48 +0200)] 
[3.14] gh-140438: properly run the asyncio REPL tests (GH-140298) (#140507)

gh-140438: properly run the asyncio REPL tests (GH-140298)
(cherry picked from commit 1a3da2c0700839b6e334e368ff2b600c2389763f)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
2 weeks ago[3.14] gh-140431: Fix GC crash due to partially initialized coroutines (gh-140470...
Miss Islington (bot) [Thu, 23 Oct 2025 14:44:21 +0000 (16:44 +0200)] 
[3.14] gh-140431: Fix GC crash due to partially initialized coroutines (gh-140470) (gh-140504)

The `make_gen()` function creates and tracks generator/coro objects, but
doesn't fully initialize all the fields. At a minimum, we need to
initialize all the fields that may be accessed by gen_traverse because
the call to `compute_cr_origin()` can trigger a GC.
(cherry picked from commit 574405c19e9b5de0504be46a3925027ded4495ae)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2 weeks ago[3.14] gh-138774: use `value` to `ast.unparse` code when `str` is `None` in `ast...
Miss Islington (bot) [Thu, 23 Oct 2025 14:39:02 +0000 (16:39 +0200)] 
[3.14] gh-138774: use `value` to `ast.unparse` code when `str` is `None` in `ast.Interpolation` (GH-139415) (#140503)

gh-138774: use `value` to `ast.unparse` code when `str` is `None` in `ast.Interpolation` (GH-139415)
(cherry picked from commit 4d0849426f4c6862e50658c4e35341ffb5ab288b)

Co-authored-by: George Ogden <38294960+George-Ogden@users.noreply.github.com>
2 weeks ago[3.14] GH-139951: Fix major GC performance regression. Backport of GH-140262 (GH...
Mark Shannon [Thu, 23 Oct 2025 14:26:58 +0000 (15:26 +0100)] 
[3.14] GH-139951: Fix major GC performance regression. Backport of GH-140262 (GH-140447)

* Count number of actually tracked objects, instead of trackable objects. This ensures that untracking tuples has the desired effect of reducing GC overhead
* Do not track most untrackable tuples during creation. This prevents large numbers of small tuples causing execessive GCs.

2 weeks ago[3.14] gh-140474: Fix memory leak in `array.array` (GH-140478) (GH-140498)
Miss Islington (bot) [Thu, 23 Oct 2025 10:20:16 +0000 (12:20 +0200)] 
[3.14] gh-140474: Fix memory leak in `array.array` (GH-140478) (GH-140498)

gh-140474: Fix memory leak in `array.array` (GH-140478)
(cherry picked from commit aa9d0a61d5c48717454f36351f0aabe4cc532de5)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.14] gh-130317: Fix SNaN broken tests on HP PA RISC (GH-140452) (#140467)
Miss Islington (bot) [Wed, 22 Oct 2025 17:04:47 +0000 (19:04 +0200)] 
[3.14] gh-130317: Fix SNaN broken tests on HP PA RISC (GH-140452) (#140467)

gh-130317: Fix SNaN broken tests on HP PA RISC (GH-140452)

While looking at GH-140028, I found some unrelated test regressions in the
3.14 cycle. These seem to all come from GH-130317. From what I can tell,
that made Python more correct than it was before. According to [0], HP PA
RISC uses 1 for SNaN and thus a 0 for QNaN.

[0]: https://grouper.ieee.org/groups/1788/email/msg03272.html
(cherry picked from commit 76fea5596c235a7853cda8df87c3998d506e950c)

Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
2 weeks ago[3.14] gh-116738: Add critical section to dbm/gdbm context manager (gh-140391) (gh...
Miss Islington (bot) [Wed, 22 Oct 2025 15:44:09 +0000 (17:44 +0200)] 
[3.14] gh-116738: Add critical section to dbm/gdbm context manager (gh-140391) (gh-140459)

(cherry picked from commit d51be28876ac0715b6fc674ef41618d214021348)

Co-authored-by: Alper <alperyoney@fb.com>
2 weeks ago[3.14] gh-132835: Add defensive NULL checks to MRO resolution (GH-134763) (GH-140436)
Miss Islington (bot) [Wed, 22 Oct 2025 03:45:06 +0000 (05:45 +0200)] 
[3.14] gh-132835: Add defensive NULL checks to MRO resolution (GH-134763) (GH-140436)

Currently, there are a few places where tp_mro could theoretically
become NULL, but do not in practice. This commit adds defensive checks for
NULL values to ensure that any changes do not introduce a crash and that
state invariants are upheld.

The assertions added in this commit are all instances where a NULL value would get passed to something not expecting a NULL, so it is better to catch an assertion failure than crash later on.

There are a few cases where it is OK for the return of lookup_tp_mro to be NULL, such as when passed to is_subtype_with_mro, which handles this explicitly.
(cherry picked from commit a8edca62fc6d44d16c7f86d49421be1a5ebea3e5)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
2 weeks ago[3.14] `zlib.rst`: Link to constants and deduplicate text (GH-140115) (GH-140349)
Emma Smith [Tue, 21 Oct 2025 21:44:47 +0000 (14:44 -0700)] 
[3.14] `zlib.rst`: Link to constants and deduplicate text (GH-140115) (GH-140349)

* Link to compression setting constants from compression functions
* De-duplicate descriptions of the constants
(cherry picked from commit 091e8513bb58747ade56a03fccb98e220c7722cc)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.14] gh-138764: annotationlib: Make `call_annotate_function` fallback to using...
Miss Islington (bot) [Tue, 21 Oct 2025 16:22:29 +0000 (18:22 +0200)] 
[3.14] gh-138764: annotationlib: Make `call_annotate_function` fallback to using `VALUE` annotations if both the requested format and `VALUE_WITH_FAKE_GLOBALS` are not implemented (GH-138803) (#140426)

gh-138764: annotationlib: Make `call_annotate_function` fallback to using `VALUE` annotations if both the requested format and `VALUE_WITH_FAKE_GLOBALS` are not implemented (GH-138803)
(cherry picked from commit 95c257e2e691456140e79bd98d1674cbd289eb38)

Co-authored-by: David Ellis <ducksual@gmail.com>
2 weeks ago[3.14] Use ``sphinxext-opengraph`` v0.13.0 (GH-140425) (#140427)
Miss Islington (bot) [Tue, 21 Oct 2025 16:08:56 +0000 (18:08 +0200)] 
[3.14] Use ``sphinxext-opengraph`` v0.13.0 (GH-140425) (#140427)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 weeks ago[3.14] gh-139951: Test on GC collection disabled if threshold is zero (GH-140304...
Miss Islington (bot) [Tue, 21 Oct 2025 15:44:33 +0000 (17:44 +0200)] 
[3.14] gh-139951: Test on GC collection disabled if threshold is zero (GH-140304) (#140362)

gh-139951: Test on GC collection disabled if threshold is zero (GH-140304)
(cherry picked from commit 5d0abb69715b9638f26c896444643055ec2ef038)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
2 weeks ago[3.14] GH-139436: Remove references to downloadable PDF documentation (GH-140416...
Miss Islington (bot) [Tue, 21 Oct 2025 13:06:48 +0000 (15:06 +0200)] 
[3.14] GH-139436: Remove references to downloadable PDF documentation (GH-140416) (#140419)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 weeks ago[3.14] gh-140406: Fix memory leak upon `__hash__` returning a non-integer (GH-140411...
Miss Islington (bot) [Tue, 21 Oct 2025 12:35:31 +0000 (14:35 +0200)] 
[3.14] gh-140406: Fix memory leak upon `__hash__` returning a non-integer (GH-140411) (GH-140417)

gh-140406: Fix memory leak upon `__hash__` returning a non-integer (GH-140411)
(cherry picked from commit 71db05a12d9953a96f809d84b4d0d452a464e431)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 weeks ago[3.14] gh-140398: fix memory leaks in `readline` module when `PySys_Audit` fails...
Miss Islington (bot) [Tue, 21 Oct 2025 08:20:14 +0000 (10:20 +0200)] 
[3.14] gh-140398: fix memory leaks in `readline` module when `PySys_Audit` fails (GH-140400) (#140403)

gh-140398: fix memory leaks in `readline` module when `PySys_Audit` fails (GH-140400)
(cherry picked from commit e8e0f411bae1dde634fb152a81e1db1ad1cd2eaa)

Co-authored-by: Shamil <ashm.tech@proton.me>
2 weeks ago[3.14] gh-66646: Explain __base__ attribute in the docs (GH-102554) (GH-140365)
Miss Islington (bot) [Tue, 21 Oct 2025 07:06:49 +0000 (09:06 +0200)] 
[3.14] gh-66646: Explain __base__ attribute in the docs (GH-102554) (GH-140365)

(cherry picked from commit faa169afa0dad9586b294ea9ab6e5e17c5712861)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Co-authored-by: Éric <merwok@netwok.org>
2 weeks ago[3.14] [Docs] Add missing note about Required/NotRequired/ReadOnly in get_type_hints...
Miss Islington (bot) [Mon, 20 Oct 2025 20:23:19 +0000 (22:23 +0200)] 
[3.14] [Docs] Add missing note about Required/NotRequired/ReadOnly in get_type_hints() (GH-139565) (#140386)

[Docs] Add missing note about Required/NotRequired/ReadOnly in get_type_hints() (GH-139565)
(cherry picked from commit a752f58d6b628ab4fe6e4263137ec4cc244ff390)

Co-authored-by: Sam Bull <git@sambull.org>
2 weeks ago[3.14] gh-138891: fix star-unpack in get_annotations (GH-138951) (#140384)
Miss Islington (bot) [Mon, 20 Oct 2025 20:20:47 +0000 (22:20 +0200)] 
[3.14] gh-138891: fix star-unpack in get_annotations (GH-138951) (#140384)

gh-138891: fix star-unpack in get_annotations (GH-138951)
(cherry picked from commit c6be6e453730228053783f3444cb62e1425a3feb)

Co-authored-by: Christoph Walcher <christoph-wa@gmx.de>
2 weeks ago[3.14] gh-63161: Fix tokenize.detect_encoding() (GH-139446) (GH-140378)
Miss Islington (bot) [Mon, 20 Oct 2025 17:34:56 +0000 (19:34 +0200)] 
[3.14] gh-63161: Fix tokenize.detect_encoding() (GH-139446) (GH-140378)

* Support non-UTF-8 shebang and comments if non-UTF-8 encoding is specified.
* Detect decoding error for non-UTF-8 encoding.
* Detect null bytes in source code.
(cherry picked from commit 38d4b436ca767351db834189b3a5379406cd52a8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.14] gh-63161: Fix test_source_encoding when stderr is StringIO (GH-140361)
Serhiy Storchaka [Mon, 20 Oct 2025 17:05:42 +0000 (20:05 +0300)] 
[3.14] gh-63161: Fix test_source_encoding when stderr is StringIO (GH-140361)

2 weeks ago[3.14] gh-140263: Fix data race in test_lock_two_threads (gh-140264) (gh-140369)
Miss Islington (bot) [Mon, 20 Oct 2025 14:25:42 +0000 (16:25 +0200)] 
[3.14] gh-140263: Fix data race in test_lock_two_threads (gh-140264) (gh-140369)

Clang-20 detects a data race between the unlock and the non-atomic
read of the lock state. Use a relaxed load for the assertion to avoid
the race.
(cherry picked from commit f11ec6e643f54f4ee698f7dfc878812a315f2af4)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2 weeks ago[3.14] gh-140301: Fix memory leak in subinterpreter `PyConfig` cleanup (GH-140303...
Miss Islington (bot) [Mon, 20 Oct 2025 09:54:41 +0000 (11:54 +0200)] 
[3.14] gh-140301: Fix memory leak in subinterpreter `PyConfig` cleanup (GH-140303) (#140360)

gh-140301: Fix memory leak in subinterpreter `PyConfig` cleanup (GH-140303)
(cherry picked from commit a615fb49c948902a982c3256899507abcc9f9bc8)

Co-authored-by: Shamil <ashm.tech@proton.me>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2 weeks ago[3.14] gh-101100: Fix sphinx warnings in `library/resource.rst` (GH-140023) (#140352)
Miss Islington (bot) [Mon, 20 Oct 2025 07:21:31 +0000 (09:21 +0200)] 
[3.14] gh-101100: Fix sphinx warnings in `library/resource.rst` (GH-140023) (#140352)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
2 weeks ago[3.14] docs: be clearer that glob results are unordered (GH-140184) (#140339)
Miss Islington (bot) [Mon, 20 Oct 2025 04:31:05 +0000 (06:31 +0200)] 
[3.14] docs: be clearer that glob results are unordered (GH-140184) (#140339)

(cherry picked from commit ed672f7a8a3c843d8e6e6b673d5a7c1f752f208c)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2 weeks ago[3.14] Standardize translation of `Doc/bugs.rst` (GH-137449) (#140275)
Miss Islington (bot) [Sun, 19 Oct 2025 21:13:48 +0000 (23:13 +0200)] 
[3.14] Standardize translation of `Doc/bugs.rst` (GH-137449) (#140275)

Standardize translation of `Doc/bugs.rst` (GH-137449)
(cherry picked from commit 869bb6948eb501b19db53cb27c523c3203a5ab11)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.14] gh-140306: Fix memory leaks in cross-interpreter data handling (GH-140307...
Miss Islington (bot) [Sun, 19 Oct 2025 19:53:36 +0000 (21:53 +0200)] 
[3.14] gh-140306: Fix memory leaks in cross-interpreter data handling (GH-140307) (GH-140338)

(cherry picked from commit f9323213c98c9f1f7f3bf5af883b73047432fe50)

Co-authored-by: Shamil <ashm.tech@proton.me>
2 weeks ago[3.14] gh-63161: Fix PEP 263 support (GH-139481) (GH-139898)
Miss Islington (bot) [Sun, 19 Oct 2025 19:16:33 +0000 (21:16 +0200)] 
[3.14] gh-63161: Fix PEP 263 support (GH-139481) (GH-139898)

* Support non-UTF-8 shebang and comments if non-UTF-8 encoding is specified.
* Detect decoding error in comments for UTF-8 encoding.
* Include the decoding error position for default encoding in SyntaxError.
(cherry picked from commit 5c942f11cdf5f9d7313200983fa0c58b3bc670a2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.14] `Lib/idlelib/idle_test/__init__.py`: remove commented out duplicate code ...
Miss Islington (bot) [Sun, 19 Oct 2025 08:49:48 +0000 (10:49 +0200)] 
[3.14] `Lib/idlelib/idle_test/__init__.py`: remove commented out duplicate code (GH-140259) (#140322)

`Lib/idlelib/idle_test/__init__.py`: remove commented out duplicate code (GH-140259)
(cherry picked from commit 790cdae5a0295586a55f00a57ed24a86b83928dc)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.14] gh-138997: Remove false justify `fill` option from Tkinter docs (GH-139023...
Miss Islington (bot) [Sun, 19 Oct 2025 03:52:59 +0000 (05:52 +0200)] 
[3.14] gh-138997: Remove false justify `fill` option from Tkinter docs (GH-139023) (#140319)

gh-138997: Remove false justify `fill` option from Tkinter docs (GH-139023)
(cherry picked from commit 115a04b80259ac3116571eb601c5efc51004e90c)

Co-authored-by: Marat Khagazheev <marathagazeev@gmail.com>
Co-authored-by: marat <khagazheev@artlebedev.ru>
2 weeks ago[3.14] gh-128571: Document UTF-16/32 native byte order (GH-139974) (#140309)
Miss Islington (bot) [Sat, 18 Oct 2025 18:59:37 +0000 (20:59 +0200)] 
[3.14] gh-128571: Document UTF-16/32 native byte order (GH-139974) (#140309)

Closes GH-128571
(cherry picked from commit 920de7ccdcfa7284b6d23a124771b17c66dd3e4f)

Co-authored-by: Parham MohammadAlizadeh <prhmma@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.14] gh-140067: Fix memory leak in sub-interpreter creation (GH-140111) (#140118)
Kumar Aditya [Sat, 18 Oct 2025 14:10:43 +0000 (19:40 +0530)] 
[3.14] gh-140067: Fix memory leak in sub-interpreter creation  (GH-140111) (#140118)

* [3.14] gh-140067: Fix memory leak in sub-interpreter creation  (GH-140111)

Fix memory leak in sub-interpreter creation caused by overwriting of the previously used `_malloced` field. Now the pointer is stored in the first word of the memory block to avoid it being overwritten accidentally.
(cherry picked from commit 59547a251f7069dc6e08cb6082dd21872671e381)

Co-authored-by: Shamil <ashm.tech@proton.me>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2 weeks ago[3.14] gh-140257: fix data race on eval_breaker during finalization (GH-140265) ...
Miss Islington (bot) [Sat, 18 Oct 2025 11:28:53 +0000 (13:28 +0200)] 
[3.14] gh-140257: fix data race on eval_breaker during finalization (GH-140265) (#140294)

gh-140257: fix data race on eval_breaker during finalization (GH-140265)
(cherry picked from commit c8729c9909e150989050ce2a435d018955bea41d)

Co-authored-by: Shamil <ashm.tech@proton.me>
2 weeks ago[3.14] gh-140241: Fix documentation for the registry parameter of warnings.warn_expli...
Miss Islington (bot) [Sat, 18 Oct 2025 11:02:09 +0000 (13:02 +0200)] 
[3.14] gh-140241: Fix documentation for the registry parameter of warnings.warn_explicit() (GH-140242) (GH-140292)

(cherry picked from commit 78e1d65a4d656e783bc28a02e113f59e4323e41a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>