]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 hours ago[3.14] gh-149816: Fix a race condition in `_PyBytes_FromList` with free-threading... 3.14
sobolevn [Thu, 21 May 2026 09:53:54 +0000 (12:53 +0300)] 
[3.14] gh-149816: Fix a race condition in `_PyBytes_FromList` with free-threading (GH-149909) (#149912)

(cherry picked from commit 46afba7b9324bc9492c3527d0fe47dd74f1f598c)

17 hours ago[3.14] gh-134261: ZipFile - Don't rely on local time for reproducible builds & tests...
Miss Islington (bot) [Wed, 20 May 2026 19:45:25 +0000 (21:45 +0200)] 
[3.14] gh-134261: ZipFile - Don't rely on local time for reproducible builds & tests (GH-134264) (#150138)

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

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

Co-authored-by: Caleb <23644849+ctrlaltf2@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
23 hours ago[3.14] gh-150146: Fix NULL dereference in `_Py_subs_parameters` (GH-150147) (#150154)
Miss Islington (bot) [Wed, 20 May 2026 13:54:20 +0000 (15:54 +0200)] 
[3.14] gh-150146: Fix NULL dereference in `_Py_subs_parameters` (GH-150147) (#150154)

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

Co-authored-by: sobolevn <mail@sobolevn.me>
33 hours ago[3.14] gh-142831: Fix use-after-free in json encoder during re-entrant mutation ...
Shamil [Wed, 20 May 2026 03:31:43 +0000 (06:31 +0300)] 
[3.14] gh-142831: Fix use-after-free in json encoder during re-entrant mutation (gh-142851) (#150078)

gh-142831: Fix use-after-free in json encoder during re-entrant mutation (gh-142851)

User callbacks invoked during JSON encoding (e.g. the `default` callback or
a custom string encoder) can mutate or clear the dict or sequence being
encoded, invalidating borrowed references to items, keys, and values. Hold
strong references unconditionally while iterating.

(cherry picked from commit 235fa7244a0474c492ae98ee444529c7ba2a9047)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
36 hours ago[3.14] gh-134887: Add references to `locale` module for locale-aware number formattin...
Miss Islington (bot) [Wed, 20 May 2026 00:55:14 +0000 (02:55 +0200)] 
[3.14] gh-134887: Add references to `locale` module for locale-aware number formatting references in `string` module docs (GH-134888) (GH-150121)

(cherry picked from commit 47723af4e74ae1a65108837fe15795e2f70f9d02)

Co-authored-by: Stefanie Molin <24376333+stefmolin@users.noreply.github.com>
39 hours ago[3.14] gh-149816: Fix SNI callback callable race (GH-150018) (GH-150100)
Miss Islington (bot) [Tue, 19 May 2026 22:05:42 +0000 (00:05 +0200)] 
[3.14] gh-149816: Fix SNI callback callable race (GH-150018) (GH-150100)

(cherry picked from commit 8b31d08e62b9714cf8dd1d8b19afa5ecbad2414a)

Co-authored-by: Kirill Ignatev <kiri11@users.noreply.github.com>
39 hours ago[3.14] gh-150114: Reduce memory usage of test_free_threading.test_iteration (gh-15011...
Miss Islington (bot) [Tue, 19 May 2026 22:03:53 +0000 (00:03 +0200)] 
[3.14] gh-150114: Reduce memory usage of test_free_threading.test_iteration (gh-150115) (#150123)

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

(cherry picked from commit 61f12211fc40aef4a2dcccb9c94aae8108042edb)

Co-authored-by: Sam Gross <colesbury@gmail.com>
40 hours ago[3.14] gh-149983: Fix PyErr_NoMemory call without GIL in winconsoleio.c (GH-149984...
Miss Islington (bot) [Tue, 19 May 2026 21:11:43 +0000 (23:11 +0200)] 
[3.14] gh-149983: Fix PyErr_NoMemory call without GIL in winconsoleio.c (GH-149984) (GH-150111)

(cherry picked from commit 3d2aa899bad1c0e274640dc0c4323f1744e73435)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
43 hours ago[3.14] gh-69619: Clarify whitespace definition in str.strip docs (#150048)
Miss Islington (bot) [Tue, 19 May 2026 17:49:12 +0000 (19:49 +0200)] 
[3.14] gh-69619: Clarify whitespace definition in str.strip docs (#150048)

(cherry picked from commit 17eb17d43f66a0f7985fca05c7c9684bc01fabcd)

Co-authored-by: Daniil <d.mayorov@innopolis.university>
46 hours ago[3.14] gh-149590: Remove faulthandler_traverse (GH-150023) (#150088)
Armaan Vakharia [Tue, 19 May 2026 15:08:58 +0000 (08:08 -0700)] 
[3.14] gh-149590: Remove faulthandler_traverse (GH-150023) (#150088)

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

2 days ago[3.14] gh-146452: Improve locking granularity in pickle's batch_dict_… (#150062)
Saul Cooperman [Tue, 19 May 2026 12:34:06 +0000 (05:34 -0700)] 
[3.14] gh-146452: Improve locking granularity in pickle's batch_dict_… (#150062)

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

Remove assertion that could fail in rare race condition.

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

2 days ago[3.14] gh-146581: Update docs for dangerous filenames in ZIP files (GH-149994) (GH...
Miss Islington (bot) [Tue, 19 May 2026 08:43:57 +0000 (10:43 +0200)] 
[3.14] gh-146581: Update docs for dangerous filenames in ZIP files (GH-149994) (GH-150065)

(cherry picked from commit ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Sebastian Gassner <sebastian.gassner@gmail.com>
2 days ago[3.14] gh-72088: clarify `inspect.ismethod` and `inspect.isfunction` (and related...
Miss Islington (bot) [Mon, 18 May 2026 22:54:13 +0000 (00:54 +0200)] 
[3.14] gh-72088: clarify `inspect.ismethod` and `inspect.isfunction` (and related) usage with class-level access (GH-150013) (GH-150033)

(cherry picked from commit 0aa59ce2d4f007a9d19740eb2f6230ed302096f7)

Co-authored-by: Stefanie Molin <24376333+stefmolin@users.noreply.github.com>
Co-authored-by: CHINMAY <89741289+Das-Chinmay@users.noreply.github.com>
2 days ago[3.14] gh-95816: Fix TLS version range example in docs (GH-148574) (#150009)
Miss Islington (bot) [Mon, 18 May 2026 21:47:28 +0000 (23:47 +0200)] 
[3.14] gh-95816: Fix TLS version range example in docs (GH-148574) (#150009)

gh-95816: Fix TLS version range example in docs (GH-148574)

docs(ssl): Fix TLS version range example
(cherry picked from commit dbd8985e8262055ed091de9a72660b7c112a4ce7)

Co-authored-by: Jan Brasna <1784648+janbrasna@users.noreply.github.com>
2 days ago[3.14] gh-149816: Fix a RC in `_random.Random.__init__` method (GH-149824) (#149998)
Miss Islington (bot) [Mon, 18 May 2026 16:19:23 +0000 (18:19 +0200)] 
[3.14] gh-149816: Fix a RC in `_random.Random.__init__` method (GH-149824) (#149998)

gh-149816: Fix a RC in `_random.Random.__init__` method (GH-149824)
(cherry picked from commit 14af19e6c0d9dd05b525596fdd53373f726253d8)

Co-authored-by: sobolevn <mail@sobolevn.me>
2 days ago[3.14] CI: Move Homebrew dependencies into Brewfile (GH-148335) (#149883)
Hugo van Kemenade [Mon, 18 May 2026 13:32:51 +0000 (16:32 +0300)] 
[3.14] CI: Move Homebrew dependencies into Brewfile (GH-148335) (#149883)

Co-authored-by: Brett Cannon <brett@python.org>
4 days ago[3.14] gh-149921: Fix reference leaks in _interpchannels and _interpqueues modules...
Miss Islington (bot) [Sun, 17 May 2026 10:35:27 +0000 (12:35 +0200)] 
[3.14] gh-149921: Fix reference leaks in _interpchannels and _interpqueues modules (GH-149922) (#149944)

gh-149921: Fix reference leaks in _interpchannels and _interpqueues modules (GH-149922)
(cherry picked from commit acefff95eab3db6b7cf837f3ce2707bbf9199376)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
4 days ago[3.14] gh-146452: Fix pickle segfault on concurrent mutation of dict in pickle (GH...
Miss Islington (bot) [Sun, 17 May 2026 09:30:00 +0000 (11:30 +0200)] 
[3.14] gh-146452: Fix pickle segfault on concurrent mutation of dict in pickle (GH-146470) (#149940)

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

Co-authored-by: Farhan Saif <fsaif@uic.edu>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
4 days ago[3.14] gh-149916: Restore the commented out part of test_body_encode in test_email...
Miss Islington (bot) [Sun, 17 May 2026 08:31:49 +0000 (10:31 +0200)] 
[3.14] gh-149916: Restore the commented out part of test_body_encode in test_email (GH-149917) (GH-149938)

(cherry picked from commit 1cbe035723698f15aa1b1af5deef615b28aae2e5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 days ago[3.14] gh-149254: Update CI jobs to use OpenSSL 3.5 (GH-149925)
Zachary Ware [Sat, 16 May 2026 21:28:14 +0000 (16:28 -0500)] 
[3.14] gh-149254: Update CI jobs to use OpenSSL 3.5 (GH-149925)

4 days ago[3.14] gh-149254: Bump OpenSSL to 3.5.6 for mobile platforms. (GH-149341)
Russell Keith-Magee [Sat, 16 May 2026 21:10:42 +0000 (14:10 -0700)] 
[3.14] gh-149254: Bump OpenSSL to 3.5.6 for mobile platforms. (GH-149341)

4 days ago[3.14] gh-149254: Update macOS installer to use OpenSSL 3.5.6. (GH-149438)
Ned Deily [Sat, 16 May 2026 20:56:00 +0000 (13:56 -0700)] 
[3.14] gh-149254: Update macOS installer to use OpenSSL 3.5.6. (GH-149438)

4 days ago[3.14] gh-149254: Update Windows builds to OpenSSL 3.5.6 (GH-149329)
Zachary Ware [Sat, 16 May 2026 20:51:23 +0000 (15:51 -0500)] 
[3.14] gh-149254: Update Windows builds to OpenSSL 3.5.6 (GH-149329)

5 days ago[3.14] gh-134837: Correct and improve base85 documentation for base64 module (GH...
Serhiy Storchaka [Fri, 15 May 2026 17:12:48 +0000 (20:12 +0300)] 
[3.14] gh-134837: Correct and improve base85 documentation for base64 module (GH-145843) (GH-149743)

(cherry picked from commit e667d62f114b54dcba17bdfad3835b9c91fda348)

Co-authored-by: David Huggins-Daines <dhd@ecolingui.ca>
6 days ago[3.14] gh-149816: Fix race condition in `memoryview` with free-threading (GH-149858...
Miss Islington (bot) [Fri, 15 May 2026 13:04:32 +0000 (15:04 +0200)] 
[3.14] gh-149816: Fix race condition in `memoryview` with free-threading (GH-149858) (#149876)

gh-149816: Fix race condition in `memoryview` with free-threading (GH-149858)
(cherry picked from commit 1fdf0337742762cc47837042747cc607f024a202)

Co-authored-by: sobolevn <mail@sobolevn.me>
6 days ago[3.14] gh-149801: Add IANA registered names and aliases with leading zeros (GH-149804...
Miss Islington (bot) [Fri, 15 May 2026 12:08:34 +0000 (14:08 +0200)] 
[3.14] gh-149801: Add IANA registered names and aliases with leading zeros (GH-149804) (GH-149871)

Like IBM00858, CP00858, IBM01140, CP01140.
(cherry picked from commit 20438866aefc2e63949d8bb85d8f8e55633fd977)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 days ago[3.14] gh-149707: Fix compiler warning in _ctypes_test on strchr() (#149791) (#149866)
Victor Stinner [Fri, 15 May 2026 11:36:01 +0000 (13:36 +0200)] 
[3.14] gh-149707: Fix compiler warning in _ctypes_test on strchr() (#149791) (#149866)

gh-149707: Fix compiler warning in _ctypes_test on strchr() (#149791)

Change my_strchr() return type to "const char*" (add "const").

Fix the compiler warning:

Modules/_ctypes/_ctypes_test.c: In function 'my_strchr':
Modules/_ctypes/_ctypes_test.c:451:12: warning: return discards
'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  451 |     return strchr(s, c);
      |            ^~~~~~

When using C23, strchr(text, ch) return type is "const char*" if text
type is "const char*".

(cherry picked from commit 5465b69255890650df99debb8256e0a7bc68138b)

6 days ago[3.14] gh-149763: Improve availablity docs in `select.rst` (GH-149764) (#149855)
sobolevn [Fri, 15 May 2026 07:31:25 +0000 (10:31 +0300)] 
[3.14] gh-149763: Improve availablity docs in `select.rst` (GH-149764) (#149855)

(cherry picked from commit 7e98debdf4bfcf1c3f592c9424bc654117c2723e)

6 days ago[3.14] gh-149231: tomllib: Limit the number of parts in a key (GH-149233) (GH-149815)
Petr Viktorin [Thu, 14 May 2026 20:46:10 +0000 (22:46 +0200)] 
[3.14] gh-149231: tomllib: Limit the number of parts in a key (GH-149233) (GH-149815)

(cherry picked from commit bc7c102f3462a9f014f3ac2546acfb471b2a7eae)

Co-authored-by: Stan Ulbrych <stan@python.org>
6 days ago[3.14] Link to existing rules in compound_stmts.rst (GH-149811) (GH-149837)
Miss Islington (bot) [Thu, 14 May 2026 17:09:15 +0000 (19:09 +0200)] 
[3.14] Link to existing rules in compound_stmts.rst (GH-149811) (GH-149837)

Link to existing rules in compound_stmts.rst (GH-149811)

In gh-138418, `!` was added to links to rules that don't exist in
the docs, in order to silence broken link warnings.
However, productionlist doesn't parse the `!`, which ends up in
the rendered documentation. (It's possible that gh-127835 broke
the `!` support.)

Replace the names with ones that appear in docs:

- `star_named_expression` in the grammar corresponds to
  `flexible_expression` in the docs
- `star_named_expressions` in the grammar corresponds to
  `flexible_expression_list` in the docs
- `named_expression` in the grammar corresponds to
  `assignment_expression` in the docs

Having two sets of names isn't great of course. Consolidating them
is tracked in (subissues of) gh-127833.
(cherry picked from commit c37529293d1e05081cb4e8668162c76583b88007)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
7 days ago[3.14] gh-148821: Add more tests for invalid XML encodings (GH-149820) (GH-149822)
Miss Islington (bot) [Thu, 14 May 2026 10:36:35 +0000 (12:36 +0200)] 
[3.14] gh-148821: Add more tests for invalid XML encodings (GH-149820) (GH-149822)

(cherry picked from commit c6f7368157ecf9f2cdd537d8b6fad6e011bce344)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 days ago[3.14] gh-149698: Update bundled expat to 2.8.1 (GH-149699) (#149813)
Miss Islington (bot) [Thu, 14 May 2026 08:53:10 +0000 (10:53 +0200)] 
[3.14] gh-149698: Update bundled expat to 2.8.1 (GH-149699) (#149813)

(cherry picked from commit f1a47e79fb7081d3cde6364530bfa98240ebbe4c)

Co-authored-by: Stan Ulbrych <stan@python.org>
7 days ago[3.14] gh-128110: Fix rfc2047 whitespace handling in email parser address headers...
Miss Islington (bot) [Wed, 13 May 2026 20:28:22 +0000 (22:28 +0200)] 
[3.14] gh-128110: Fix rfc2047 whitespace handling in email parser address headers (GH-130749) (#149788)

RFC 2047 Section 6.2 requires that "any 'linear-white-space' that
separates a pair of adjacent 'encoded-word's is ignored." The modern
header value parser correctly implements that for unstructured headers,
but had missed a case in structured headers. This could cause a parsed
address header to include extraneous spaces in a display-name.

Switch to @bitdancer's fix from review feedback. Recharacterize space
between ews as fws after parsing in get_phrase.

RDM: This fix is dependent on the fact that "subsequent" atoms will never have
leading whitespace because that's been consumed already. I don't think
it's worth adding extra code for the possibility of leading whitespace
because the parser won't produce it. It's a bit of parser fragility in the
face of code changes, but I think that's a minor concern given the
parser design (which is that it consumes whitespace greedily)
(cherry picked from commit 7a4c6dfb8839eb05fb87baf70364680e45001dd4)

Co-authored-by: Mike Edmunds <medmunds@gmail.com>
Co-authored-by: R David Murray <rdmurray@bitdance.com>
7 days ago[3.14] gh-87451: Apply CVE-2021-4189 PASV fix to ftplib.ftpcp() (GH-149648) (#149793)
Miss Islington (bot) [Wed, 13 May 2026 17:59:11 +0000 (19:59 +0200)] 
[3.14] gh-87451: Apply CVE-2021-4189 PASV fix to ftplib.ftpcp() (GH-149648) (#149793)

gh-87451: Apply CVE-2021-4189 PASV fix to ftplib.ftpcp() (GH-149648)

ftpcp() called parse227() directly and passed the source server's
self-reported PASV IPv4 address to the target server's PORT command,
bypassing the CVE-2021-4189 fix that was applied only to FTP.makepasv().
A malicious source FTP server could use this to redirect the target
server's data connection to an arbitrary host:port (SSRF).

ftpcp() now uses the source server's actual peer address, honoring the
existing trust_server_pasv_ipv4_address opt-out, the same as makepasv().

Thanks to Qi Ding at Aurascape AI for the report. (GHSA-w8c5-q2xf-gf7c)
(cherry picked from commit eac4fe3b2c77693790a5ef7dfab127c1fee81bf9)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
7 days ago[3.14] gh-149776: Skip UDP Lite tests if it's not supported (GH-149777) (#149781)
Miss Islington (bot) [Wed, 13 May 2026 16:21:23 +0000 (18:21 +0200)] 
[3.14] gh-149776: Skip UDP Lite tests if it's not supported (GH-149777) (#149781)

gh-149776: Skip UDP Lite tests if it's not supported (GH-149777)

Fix test_socket on Linux kernel 7.1 and newer: skip UDP Lite tests if
it's not supported.
(cherry picked from commit 3cfc249e11a132dc69624150843779aa96c72b2b)

Co-authored-by: Victor Stinner <vstinner@python.org>
8 days ago[3.14] Run mypy with four worker processes and uv (GH-149726) (#149774)
Hugo van Kemenade [Wed, 13 May 2026 11:39:06 +0000 (14:39 +0300)] 
[3.14] Run mypy with four worker processes and uv (GH-149726) (#149774)

(cherry picked from commit 6304eb1f5b93f682bff558befe4a7b9585f4601e)

8 days ago[3.14] gh-148821: Add more strict tests for XML encodings (GH-149765) (GH-149771)
Miss Islington (bot) [Wed, 13 May 2026 11:07:04 +0000 (13:07 +0200)] 
[3.14] gh-148821: Add more strict tests for XML encodings (GH-149765) (GH-149771)

Exclude encodings like 'utf-8-sig', 'iso2022-jp' and 'hz' from the list of
supported encodings.
(cherry picked from commit fa2afa64d9467fb7362672ed603d29d8e246d240)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 days ago[3.14] gh-149701: Fully silence potential `hash -r` error (GH-149702) (GH-149758)
Miss Islington (bot) [Wed, 13 May 2026 08:47:57 +0000 (10:47 +0200)] 
[3.14] gh-149701: Fully silence potential `hash -r` error (GH-149702) (GH-149758)

(cherry picked from commit cd6096887e22cdb6d6365ad0eb5b0ffac50d4791)

8 days ago[3.14] gh-149574: Document that is_typeddict, is_protocol, is_dataclass, isclass...
Miss Islington (bot) [Wed, 13 May 2026 03:08:39 +0000 (05:08 +0200)] 
[3.14] gh-149574: Document that is_typeddict, is_protocol, is_dataclass, isclass return False for generic aliases (GH-149604) (#149751)

gh-149574: Document that is_typeddict, is_protocol, is_dataclass, isclass return False for generic aliases (GH-149604)
(cherry picked from commit a4e51c8dac9fdd49ae26ff8c6cd3c808fd8ba15e)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
8 days ago[3.14] gh-145235: Make dict watcher API thread-safe for free-threaded builds (gh...
Sam Gross [Tue, 12 May 2026 17:21:31 +0000 (17:21 +0000)] 
[3.14] gh-145235: Make dict watcher API thread-safe for free-threaded builds (gh-145233) (#149691)

In free-threaded builds, concurrent calls to PyDict_AddWatcher, PyDict_ClearWatcher, PyDict_Watch, and PyDict_Unwatch can race on the shared callback array and the per-dict watcher tags. This change adds a mutex to serialize watcher registration and removal, atomic operations for tag updates, and atomic acquire/release synchronization for callback dispatch in _PyDict_SendEvent.

(cherry picked from commit 8a4895985f42282504d83b9bd0c77b129f95a5d5)

Co-authored-by: Alper <alperyoney@fb.com>
8 days ago[3.14] Remove myself from CODEOWNERS (GH-149727) (#149733)
Hugo van Kemenade [Tue, 12 May 2026 16:30:10 +0000 (19:30 +0300)] 
[3.14] Remove myself from CODEOWNERS (GH-149727) (#149733)

(cherry picked from commit 058c12528d98954c44d6f92f2eea48b881c1967f)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
9 days ago[3.14] Update mypy to 2.1.0 (GH-149709) (#149712)
Miss Islington (bot) [Tue, 12 May 2026 09:09:12 +0000 (11:09 +0200)] 
[3.14] Update mypy to 2.1.0 (GH-149709) (#149712)

Update mypy to 2.1.0 (GH-149709)
(cherry picked from commit b546cc10f5c659344ce3cf49db6d9c92307ed1fc)

Co-authored-by: sobolevn <mail@sobolevn.me>
9 days ago[3.14] gh-148669: Clarify `__reduce__()` module lookup behavior (GH-148670) (#149704)
Miss Islington (bot) [Tue, 12 May 2026 02:53:36 +0000 (04:53 +0200)] 
[3.14] gh-148669: Clarify `__reduce__()` module lookup behavior (GH-148670) (#149704)

gh-148669: Clarify `__reduce__()` module lookup behavior (GH-148670)
(cherry picked from commit 54a5fd4126df74f7b84d1f8a6a36ef79803f66f9)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
9 days ago[3.14] gh-112821: Fix rlcompleter failures on objects with descriptors (GH-149577...
Miss Islington (bot) [Mon, 11 May 2026 16:08:01 +0000 (18:08 +0200)] 
[3.14] gh-112821: Fix rlcompleter failures on objects with descriptors (GH-149577) (#149657)

* gh-112821: Fix rlcompleter failures on objects with descriptors (GH-149577)

* gh-112821: Fix rlcompleter failures on objects with descriptors

* Confirm no accesses
(cherry picked from commit f23a1837d7156c4c478528321a423eae2b31e4bf)

Co-authored-by: Michael Droettboom <mdboom@gmail.com>
* Add missing import

---------

Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Co-authored-by: Michael Droettboom <mdroettboom@nvidia.com>
10 days ago[3.14] gh-149663: fix typo in `unittest` docs (GH-149670) (#149673)
Miss Islington (bot) [Mon, 11 May 2026 12:01:57 +0000 (14:01 +0200)] 
[3.14] gh-149663: fix typo in `unittest` docs (GH-149670) (#149673)

gh-149663: fix typo in `unittest` docs (GH-149670)

`hastattr` -> `hasattr`
(cherry picked from commit 4956d2be9d5e555f2cf64faed9ef39e6a797c360)

Co-authored-by: Árni Már Jónsson <arnimarj@gmail.com>
10 days ago[3.14] gh-146061: Clarify indent=None in json docs (GH-146095) (GH-149668)
Miss Islington (bot) [Mon, 11 May 2026 11:40:39 +0000 (13:40 +0200)] 
[3.14] gh-146061: Clarify indent=None in json docs (GH-146095) (GH-149668)

(cherry picked from commit 833dae7c1fdc556200cbfc3e76bad4d54628042c)

Co-authored-by: Jonathan Dung <jonathandung@yahoo.com>
10 days ago[3.14] gh-149486: tarfile.data_filter: validate written link target (GH-149487) ...
Miss Islington (bot) [Mon, 11 May 2026 09:57:50 +0000 (11:57 +0200)] 
[3.14] gh-149486: tarfile.data_filter: validate written link target (GH-149487) (GH-149554)

* gh-149486: tarfile.data_filter: validate written link target (GH-149487)

The data filter rewrote linknames with normpath() but ran the
containment check against the un-normalised value, and computed a
symlink's directory before stripping trailing slashes.  Both let a
crafted archive create links pointing outside the destination.  Also
reject link members that resolve to the destination directory itself,
which could otherwise replace it with a symlink and redirect all
subsequent members.

(Patch by Greg; Petr's just reviewing & merging.)
(cherry picked from commit 578411982c16f753f4893532510099ef665117da)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
10 days ago[3.14] gh-148441: Avoid integer overflow in Expat's CharacterDataHandler (GH-148904...
Miss Islington (bot) [Sun, 10 May 2026 14:08:59 +0000 (16:08 +0200)] 
[3.14] gh-148441: Avoid integer overflow in Expat's CharacterDataHandler (GH-148904) (#149638)

gh-148441: Avoid integer overflow in Expat's CharacterDataHandler (GH-148904)
(cherry picked from commit bc1be4f6174086b4a46e3fe656552f5bb4e6e7b2)

Co-authored-by: ByteFlow <fakeshadow1337@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
11 days agoPost 3.14.5
Hugo van Kemenade [Sun, 10 May 2026 12:27:46 +0000 (15:27 +0300)] 
Post 3.14.5

11 days agoPython 3.14.5 v3.14.5
Hugo van Kemenade [Sun, 10 May 2026 10:21:08 +0000 (13:21 +0300)] 
Python 3.14.5

11 days ago[3.14] gh-124111: Update macOS installer to use Tcl/Tk 9.0.3. (#149463)
Ned Deily [Sun, 10 May 2026 04:10:20 +0000 (00:10 -0400)] 
[3.14] gh-124111: Update macOS installer to use Tcl/Tk 9.0.3. (#149463)

11 days ago[3.14] gh-141388: Improve docs/tests for non-function callables as annotate functions...
Miss Islington (bot) [Sat, 9 May 2026 21:58:51 +0000 (23:58 +0200)] 
[3.14] gh-141388: Improve docs/tests for non-function callables as annotate functions (GH-142327) (#149304)

gh-141388: Improve docs/tests for non-function callables as annotate functions (GH-142327)
(cherry picked from commit c1940bcfc8a80d0d66f3f7f03e776d0d23ebb59b)

Co-authored-by: dr-carlos <77367421+dr-carlos@users.noreply.github.com>
11 days ago[3.14] Fix minor typos in unicode.rst (GH-149587) (#149621)
Miss Islington (bot) [Sat, 9 May 2026 21:38:55 +0000 (23:38 +0200)] 
[3.14] Fix minor typos in unicode.rst (GH-149587) (#149621)

Fix minor typos in unicode.rst (GH-149587)
(cherry picked from commit 4e97ff3351f381a61b238bd8e805e4e8dd3ea5cf)

Co-authored-by: Manoj K M <manojkmdev24@gmail.com>
11 days ago[3.14] gh-149388: Make asyncio `PipeHandle.close` idempotent (GH-149518) (#149606)
Miss Islington (bot) [Sat, 9 May 2026 15:08:23 +0000 (17:08 +0200)] 
[3.14] gh-149388: Make asyncio `PipeHandle.close` idempotent (GH-149518) (#149606)

gh-149388: Make asyncio `PipeHandle.close` idempotent (GH-149518)
(cherry picked from commit 7241f2739c4bbdf4519238689e5e4ea9268b411e)

Co-authored-by: Max Schmitt <max@schmitt.mx>
12 days ago[3.14] gh-79638: Test other HTTP error codes besides 403 in test_robotparser (GH...
Miss Islington (bot) [Fri, 8 May 2026 20:50:41 +0000 (22:50 +0200)] 
[3.14] gh-79638: Test other HTTP error codes besides 403 in test_robotparser (GH-149569) (GH-149581)

Also, use urllib.request.urlcleanup() in NetworkTestCase.
(cherry picked from commit 57ef2199503387617b8af3d719c74089fb70dbd4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 days ago[3.14] gh-145176: Update CODEOWNERS for Emscripten migration to Platforms directory...
Malcolm Smith [Fri, 8 May 2026 12:52:54 +0000 (13:52 +0100)] 
[3.14] gh-145176: Update CODEOWNERS for Emscripten migration to Platforms directory (GH-149544) (#149559)

13 days ago[3.14] docs: Clarify docs for error case of `PyDict_GetItemRef` (GH-149506) (#149547)
Miss Islington (bot) [Fri, 8 May 2026 11:07:00 +0000 (13:07 +0200)] 
[3.14] docs: Clarify docs for error case of `PyDict_GetItemRef` (GH-149506) (#149547)

docs: Clarify docs for error case of `PyDict_GetItemRef` (GH-149506)
(cherry picked from commit 3565d31690d30a189933bce7b27d0bd2c6973f47)

Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
2 weeks ago[3.14] gh-142295: Update macOS framework build Info.plist files. (#149482)
Ned Deily [Thu, 7 May 2026 04:49:58 +0000 (00:49 -0400)] 
[3.14] gh-142295: Update macOS framework build Info.plist files. (#149482)

For Python macOS framework builds, update all Info.plist files to be more
compliant with current Apple guidelines. Original patch contributed by
Martinus Verburg.

(cherry picked from commit 5fcab14c3506ecc7df14916a57bfbb1710b8c7ba)

2 weeks ago[3.14] Rewrite RTD configuration to use build.jobs rather than build.commands (GH...
Zachary Ware [Wed, 6 May 2026 15:49:11 +0000 (10:49 -0500)] 
[3.14] Rewrite RTD configuration to use build.jobs rather than build.commands (GH-149432)

As part of this conversion, we now ensure that we're comparing against the
merge-base of the PR branch and the base branch when checking whether an RTD
build is worthwhile, deepening the history of the base branch by up to 500
commits if necessary.  If the merge-base can't be found or there are merge
conflicts with the head of the base branch, the build is skipped since it would
give a warped perception of the actual changes anyway.

This unfortunately does nothing about RTD preview comments comparing against
the wrong base, other than skipping builds that shouldn't produce any diff at
all thus avoiding the comment.

Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
(adapted from 1dcc546d841a5e88675eb2af2c55b63f26930ccf)

2 weeks ago[3.14] gh-146270: Fix `PyMember_SetOne(..., NULL)` not being atomic (gh-148800) ...
Miss Islington (bot) [Wed, 6 May 2026 14:16:36 +0000 (16:16 +0200)] 
[3.14] gh-146270: Fix `PyMember_SetOne(..., NULL)` not being atomic (gh-148800) (#149460)

Fixes a sequential consistency bug whereby two threads that are deleting a struct member may observe both their deletions to be successful.

(cherry picked from commit 1bdfc0f253730077ccd3a4b0714388e8227b1b71)

Co-authored-by: Daniele Parmeggiani <8658291+dpdani@users.noreply.github.com>
2 weeks ago[3.14] gh-148615: Handle `--` separator in pdb argument parsing (GH-1… (#149442)
Tian Gao [Wed, 6 May 2026 04:56:54 +0000 (21:56 -0700)] 
[3.14] gh-148615: Handle `--` separator in pdb argument parsing (GH-1… (#149442)

[3.14] gh-148615: Handle `--` separator in pdb argument parsing (GH-148624)
(cherry picked from commit 970b0433f498fd0d048b1f50229a7f0fb4d9e07a)

Co-authored-by: Shrey Naithani <shrey.naithani@shelllite.tech>
2 weeks ago[3.14] gh-149096: Remove 'im_*' attribute reference from inspect module docstring...
Miss Islington (bot) [Wed, 6 May 2026 02:50:02 +0000 (04:50 +0200)] 
[3.14] gh-149096: Remove  'im_*' attribute reference from inspect module docstring (GH-149108) (#149439)

gh-149096: Remove  'im_*' attribute reference from inspect module docstring (GH-149108)

The im_class/func/self names were removed in 3.0.  The prefix appears nowhere else in inspect.py
and nowhere in inspect.rst.
(cherry picked from commit e4444538dcd60a1b655c620b4d3bba59a7830f25)

Co-authored-by: Vineet Kumar <108144301+whyvineet@users.noreply.github.com>
2 weeks ago[3.14] gh-145736: Fix test_tkinter test_configure_values test case backport miss...
Ned Deily [Tue, 5 May 2026 22:24:38 +0000 (18:24 -0400)] 
[3.14] gh-145736: Fix test_tkinter test_configure_values test case backport miss for Tk 9. (#149435)

2 weeks ago[3.14] gh-149425: Increase `test_write_without_source_date_epoch` assertion delta...
Miss Islington (bot) [Tue, 5 May 2026 21:48:22 +0000 (23:48 +0200)] 
[3.14] gh-149425: Increase `test_write_without_source_date_epoch` assertion delta (GH-149426) (#149433)

gh-149425: Increase `test_write_without_source_date_epoch` assertion delta (GH-149426)
(cherry picked from commit 17975f92edd2a6a84549e19f683f78a96992ec80)

Co-authored-by: Eduardo Villalpando Mello <eduardo.villalpando.mello@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Brett Cannon <brett@python.org>
2 weeks ago[3.14] gh-149410: Test that `typing.NoDefault` is final (GH-149411) (#149419)
Miss Islington (bot) [Tue, 5 May 2026 15:25:23 +0000 (17:25 +0200)] 
[3.14] gh-149410: Test that `typing.NoDefault` is final (GH-149411) (#149419)

gh-149410: Test that `typing.NoDefault` is final (GH-149411)
(cherry picked from commit bad9296fb0424bc480fa0ecfd2d60f73c33358f5)

Co-authored-by: sobolevn <mail@sobolevn.me>
2 weeks ago[3.14] gh-149403: Fix `NameError` in `Lib/test/test_capi/test_getargs.py` (GH-149404...
Miss Islington (bot) [Tue, 5 May 2026 11:57:57 +0000 (13:57 +0200)] 
[3.14] gh-149403: Fix `NameError` in `Lib/test/test_capi/test_getargs.py` (GH-149404) (#149406)

gh-149403: Fix `NameError` in `Lib/test/test_capi/test_getargs.py` (GH-149404)
(cherry picked from commit 114781040c8ab033a164dbdefca71b69ba7fe2ed)

Co-authored-by: sobolevn <mail@sobolevn.me>
2 weeks ago[3.14] gh-137293: Ignore Exceptions when searching ELF File in Remote Debug (GH-13730...
Miss Islington (bot) [Tue, 5 May 2026 01:15:33 +0000 (03:15 +0200)] 
[3.14] gh-137293: Ignore Exceptions when searching ELF File in Remote Debug (GH-137309) (#149391)

gh-137293: Ignore Exceptions when searching ELF File in Remote Debug (GH-137309)
(cherry picked from commit 2995d4565978365233e01ad8b472c5512f3991be)

Co-authored-by: Uxío García Andrade <uxiog21@gmail.com>
2 weeks ago[3.14] GH-130750: Restore quoting of choices in argparse error messag… (#149385)
Savannah Ostrowski [Mon, 4 May 2026 22:22:54 +0000 (15:22 -0700)] 
[3.14] GH-130750: Restore quoting of choices in argparse error messag… (#149385)

[3.14] GH-130750: Restore quoting of choices in argparse error messages to match documentation and improve clarity (GH-144983)
(cherry picked from commit 53a7f76501923059188922be231db855265fe9a4)

2 weeks ago[3.14] gh-148178: Validate remote debug offset tables on load (GH-148187) (#148577)
Pablo Galindo Salgado [Mon, 4 May 2026 21:43:43 +0000 (22:43 +0100)] 
[3.14] gh-148178: Validate remote debug offset tables on load (GH-148187) (#148577)

Treat the debug offset tables read from a target process as untrusted input
and validate them before the unwinder uses any reported sizes or offsets.

Add a shared validator in debug_offsets_validation.h and run it once when
_Py_DebugOffsets is loaded and once when AsyncioDebug is loaded. The checks
cover section sizes used for fixed local buffers and every offset that is
later dereferenced against a local buffer or local object view. This keeps
the bounds checks out of the sampling hot path while rejecting malformed
tables up front.
(cherry picked from commit 289fd2c97a7e5aecb8b69f94f5e838ccfeee7e67)

2 weeks ago[3.14] gh-137030: Fix YIELD_VALUE bytecode assertion (#149184) (#149383)
Victor Stinner [Mon, 4 May 2026 21:41:19 +0000 (23:41 +0200)] 
[3.14] gh-137030: Fix YIELD_VALUE bytecode assertion (#149184) (#149383)

gh-137030: Fix YIELD_VALUE bytecode assertion (#149184)

(cherry picked from commit 952784af4793e6f819bfecc6e0a50676c7256e3a)

Co-authored-by: Mark Shannon <mark@hotpy.org>
2 weeks ago[3.14] gh-149377: update bundled pip to 26.1.1 (GH-149378) (#149379)
Miss Islington (bot) [Mon, 4 May 2026 20:43:08 +0000 (22:43 +0200)] 
[3.14] gh-149377: update bundled pip to 26.1.1 (GH-149378) (#149379)

gh-149377: update bundled pip to 26.1.1 (GH-149378)
(cherry picked from commit de66149f66a365625a7a5fc194935b0f6d6862b9)

Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2 weeks agoMerge branch '3.14' of https://github.com/python/cpython into 3.14
Hugo van Kemenade [Mon, 4 May 2026 20:01:29 +0000 (23:01 +0300)] 
Merge branch '3.14' of https://github.com/python/cpython into 3.14

2 weeks agoPost 3.14.5rc1
Hugo van Kemenade [Mon, 4 May 2026 20:00:33 +0000 (23:00 +0300)] 
Post 3.14.5rc1

2 weeks ago[3.14] gh-138907: Support RFC 9309 in robotparser (GH-138908) (GH-149374)
Miss Islington (bot) [Mon, 4 May 2026 18:28:54 +0000 (20:28 +0200)] 
[3.14] gh-138907: Support RFC 9309 in robotparser (GH-138908) (GH-149374)

* empty lines are always ignored instead of separating groups
* the "user-agent" line after a rule starts a new group
* groups matching the same user agent are now merged
* the rule with the longest match wins instead of the first matching rule
* in case of equal matches, the “Allow” rule wins over “Disallow”
* special characters “$” and “*” are now supported in rules
* prefer full match for user agent

(cherry picked from commit bc285e583286c739e553e49c19fd946cb63432c7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks agoPython 3.14.5rc1 v3.14.5rc1
Hugo van Kemenade [Mon, 4 May 2026 15:31:15 +0000 (18:31 +0300)] 
Python 3.14.5rc1

2 weeks ago[3.14] gh-137337: Clarify import statement namespace binding (GH-144607) (GH-149369)
Miss Islington (bot) [Mon, 4 May 2026 14:52:50 +0000 (16:52 +0200)] 
[3.14] gh-137337: Clarify import statement namespace binding (GH-144607) (GH-149369)

It is not always in the local namespace.
(cherry picked from commit b8ebd078f90007d48fcab85effadb33769cd080c)

Co-authored-by: Kit Dallege <xaum.io@gmail.com>
2 weeks ago[3.14] gh-147998: Fix possible memory leak in _pop_preserved (crossinterp.c) (GH...
Miss Islington (bot) [Mon, 4 May 2026 14:11:04 +0000 (16:11 +0200)] 
[3.14] gh-147998: Fix possible memory leak in _pop_preserved (crossinterp.c) (GH-147999) (GH-149365)

(cherry picked from commit 72f29dc704812aa846b10323a31743d6df37cc2c)

Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
2 weeks ago[3.14] gh-148418: Fix a possible reference leak in a corrupted TYPE_CODE marshal...
Miss Islington (bot) [Mon, 4 May 2026 14:07:43 +0000 (16:07 +0200)] 
[3.14] gh-148418: Fix a possible reference leak in a corrupted TYPE_CODE marshal stream (GH-148419) (GH-149363)

(cherry picked from commit c3972f2795bf9270008d09dc6919b9735e20c606)

Co-authored-by: Wulian233 <1055917385@qq.com>
2 weeks ago[3.14] gh-87245: Improve IPv6Address.ipv4_mapped documentation (GH-92572) (#149360)
Miss Islington (bot) [Mon, 4 May 2026 13:10:51 +0000 (15:10 +0200)] 
[3.14] gh-87245: Improve IPv6Address.ipv4_mapped documentation (GH-92572) (#149360)

gh-87245: Improve IPv6Address.ipv4_mapped documentation (GH-92572)

Avoid the phrasing ‘starting with ::FFFF/96’, which is confusing since
it seems to mix a prefix and a range. Instead, make it clear what the
actual range is, and refer to the relevant RFC.

Closes GH-87245.
(cherry picked from commit 7aedd0a6c6ae3b5cdd601e84411e41c56f8d00b9)

Co-authored-by: wouter bolsterlee <wouter@bolsterl.ee>
2 weeks ago[3.14] gh-149351: Avoid possible broken macOS framework install names when DESTDIR...
Miss Islington (bot) [Mon, 4 May 2026 12:15:23 +0000 (14:15 +0200)] 
[3.14] gh-149351:  Avoid possible broken macOS framework install names when DESTDIR is specified during builds (GH-149352) (#149354)

(cherry picked from commit 1504bd671eebce0a99c15c113d219e0f344c03d9)

Co-authored-by: Ned Deily <nad@python.org>
2 weeks ago[3.14] gh-148093: Raise binascii.Error from binascii.a2b_uu() on empty input (GH...
Miss Islington (bot) [Mon, 4 May 2026 10:10:47 +0000 (12:10 +0200)] 
[3.14] gh-148093: Raise binascii.Error from binascii.a2b_uu() on empty input (GH-149077) (GH-149350)

Instead of reading past the end of the empty buffer.
(cherry picked from commit 0c6d2f64c0c83e7652760f770ff0c5cdc5040426)

Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
2 weeks ago[3.14] GH-146475: Block Apple Clang for building JIT stencils (#149188) (#149339)
Savannah Ostrowski [Mon, 4 May 2026 00:30:24 +0000 (17:30 -0700)] 
[3.14] GH-146475: Block Apple Clang for building JIT stencils (#149188) (#149339)

GH-146475: Block Apple Clang for building JIT stencils (#149188)

(cherry picked from commit c0e064003954142b4ba820dfe149f893227c4f11)

2 weeks ago[3.14] gh-149254: Update CI to use latest OpenSSL versions (GH-149333)
Zachary Ware [Sun, 3 May 2026 21:11:42 +0000 (16:11 -0500)] 
[3.14] gh-149254: Update CI to use latest OpenSSL versions (GH-149333)

Also update Modules/_ssl_data_35.h to include an added symbol from 3.5.6.

(adapted from commit 68fe899feb8515113d09a4161f34ae45809b807a)

2 weeks ago[3.14] gh-149254: Update Windows builds to OpenSSL 3.0.20 (GH-149327)
Zachary Ware [Sun, 3 May 2026 20:04:51 +0000 (15:04 -0500)] 
[3.14] gh-149254: Update Windows builds to OpenSSL 3.0.20 (GH-149327)

2 weeks ago[3.14] gh-149267: Document ast.Constant.kind attribute (GH-149268) (#149293)
Miss Islington (bot) [Sun, 3 May 2026 16:04:14 +0000 (18:04 +0200)] 
[3.14] gh-149267: Document ast.Constant.kind attribute (GH-149268) (#149293)

gh-149267: Document ast.Constant.kind attribute (GH-149268)

The kind attribute of ast.Constant was not mentioned in the
documentation. It is set to 'u' for u-prefixed string literals
and None for all other constants.

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

Co-authored-by: Anuj Nitin Bharambe <119653366+anujbharambe@users.noreply.github.com>
Co-authored-by: Anuj Bharambe <anujnitinb@gmail.com>
2 weeks ago[3.14] gh-148063: documentation: move ast.compare from "Compiler flags" to "ast helpe...
Miss Islington (bot) [Sun, 3 May 2026 16:02:25 +0000 (18:02 +0200)] 
[3.14] gh-148063: documentation: move ast.compare from "Compiler flags" to "ast helpers" (GH-147954) (#149291)

(cherry picked from commit 7b0244dbc7a5ba037e2cf2b5c8db1e35a0643a18)

Co-authored-by: Hunter Hogan <hunterhogan@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
2 weeks ago[3.14] Ignore `/jit_unwind_info*.h` from git (GH-149311) (#149314)
Miss Islington (bot) [Sun, 3 May 2026 09:58:09 +0000 (11:58 +0200)] 
[3.14] Ignore `/jit_unwind_info*.h` from git (GH-149311) (#149314)

Ignore `/jit_unwind_info*.h` from git (GH-149311)
(cherry picked from commit db0335887e6acd1e2ef4382a52544b02971f52f0)

Co-authored-by: sobolevn <mail@sobolevn.me>
2 weeks ago[3.14] gh-149221: Sync random.py with main branch (#149288)
Jelle Zijlstra [Sat, 2 May 2026 21:44:53 +0000 (14:44 -0700)] 
[3.14] gh-149221: Sync random.py with main branch (#149288)

* [3.14] fix trailing whitespace

* sync with main

2 weeks ago[3.14] gh-149285: Increase recursion depth for `test_xml_etree` from 150k to 500k...
Miss Islington (bot) [Sat, 2 May 2026 16:29:49 +0000 (18:29 +0200)] 
[3.14] gh-149285: Increase recursion depth for `test_xml_etree` from 150k to 500k (GH-149286) (#149287)

(cherry picked from commit b1d62317362055da7e2248a76a00c0f46cacac7a)

Co-authored-by: Zanie Blue <contact@zanie.dev>
2 weeks ago[3.14]gh-149221:Fix binomialvariate Function for random module (gh-149276)
lighting9999 [Sat, 2 May 2026 12:57:42 +0000 (20:57 +0800)] 
[3.14]gh-149221:Fix binomialvariate Function for random module (gh-149276)

2 weeks ago[3.14] gh-148914: Fix memoization of in-band PickleBuffer in the Python implementatio...
Miss Islington (bot) [Sat, 2 May 2026 09:30:16 +0000 (11:30 +0200)] 
[3.14] gh-148914: Fix memoization of in-band PickleBuffer in the Python implementation (GH-149052) (GH-149274)

Previously, identical PickleBuffers did not preserve identity.
Also, empty writable PickleBuffer memoized an empty bytearray object
in place of b'' which is a singleton in CPython, so the following
references to b'' were unpickled as an empty bytearray object.
(cherry picked from commit b89735625dff07005c31bdc86cbe7113ef1b59d0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.14] gh-149254: Bump OpenSSL versions for iOS and Android. (#149272)
Russell Keith-Magee [Sat, 2 May 2026 08:51:06 +0000 (16:51 +0800)] 
[3.14] gh-149254: Bump OpenSSL versions for iOS and Android. (#149272)

Bump OpenSSL to 3.0.20 for iOS and Android.

2 weeks ago[3.14] gh-149254: Update macOS installer to use OpenSSL 3.0.20. (#149263)
Ned Deily [Sat, 2 May 2026 03:53:44 +0000 (23:53 -0400)] 
[3.14] gh-149254: Update macOS installer to use OpenSSL 3.0.20. (#149263)

2 weeks ago[3.14] gh-149117: Set `ImportError.name` on errors from `runpy.run_module`/`run_path...
Miss Islington (bot) [Sat, 2 May 2026 02:54:02 +0000 (04:54 +0200)] 
[3.14] gh-149117: Set `ImportError.name` on errors from `runpy.run_module`/`run_path` (gh-149159) (#149257)

gh-149117: Set `ImportError.name` on errors from `runpy.run_module`/`run_path` (gh-149159)

Set ImportError.name on errors from runpy.run_module/run_path

`runpy.run_module()` and `runpy.run_path()` now set the `name` attribute
of the `ImportError` they raise to the requested module name, matching
the behaviour of a regular import statement (previously `name` was
always `None`, which broke introspection).

The `name=` kwarg is gated on `issubclass(error, ImportError)` because
`_get_module_details()` is also used by `_run_module_as_main()` with
a private `_Error` sentinel class. `_Error` does not subclass
ImportError, and `BaseException.__init__` rejects unknown kwargs at
the C level, so passing `name=` unconditionally would break the
`python -m foo` codepath.
(cherry picked from commit ff35fe4633cc6d3a30f6af8281dfa641783c1d07)

Co-authored-by: W. H. Wang <mattwang44@gmail.com>
2 weeks ago[3.14] gh-149242: Heap size should be added at end of the struct (#149241)
Dino Viehland [Fri, 1 May 2026 19:56:30 +0000 (12:56 -0700)] 
[3.14] gh-149242: Heap size should be added at end of the struct  (#149241)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
2 weeks ago[3.14] Fix source link in `Doc/howto/descriptor.rst` (GH-149215) (#149250)
Miss Islington (bot) [Fri, 1 May 2026 19:47:47 +0000 (21:47 +0200)] 
[3.14] Fix source link in `Doc/howto/descriptor.rst` (GH-149215) (#149250)

Co-authored-by: sobolevn <mail@sobolevn.me>
2 weeks ago[3.14] gh-148726: Document the GC change in What's New in Python 3.14 (GH-149209...
Hugo van Kemenade [Fri, 1 May 2026 19:08:33 +0000 (22:08 +0300)] 
[3.14] gh-148726: Document the GC change in What's New in Python 3.14 (GH-149209) (#149249)

2 weeks ago[3.14] gh-148390: fix undefined behavior of `memoryview(...).cast("?")` (GH-148454...
Stan Ulbrych [Fri, 1 May 2026 15:43:59 +0000 (16:43 +0100)] 
[3.14] gh-148390: fix undefined behavior of `memoryview(...).cast("?")` (GH-148454) (GH-148667)

(cherry picked from commit 69e0a78e6edc3166c7a5b166955c0cefd1bacd5d)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2 weeks ago[3.14] gh-148967: Fix FFI type pointer handling for C complex support in set_stginfo_...
Miss Islington (bot) [Fri, 1 May 2026 13:43:38 +0000 (15:43 +0200)] 
[3.14] gh-148967: Fix FFI type pointer handling for C complex support in set_stginfo_ffi_type_pointer (GH-148969) (GH-149224)

(cherry picked from commit f2c7c0d2b799c927d9a78e87e4a640d3f9b0356c)

Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
2 weeks ago[3.14] gh-111264: Add a note about untrusted input to tomllib docs (GH-146209) (GH...
Petr Viktorin [Fri, 1 May 2026 12:42:33 +0000 (14:42 +0200)] 
[3.14] gh-111264: Add a note about untrusted input to tomllib docs (GH-146209) (GH-149223)

(cherry picked from commit 9d41e2a534aab460dd656ef251adaed5d2d64b93)

Co-authored-by: Stan Ulbrych <stan@python.org>