]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
106 min ago[3.14] gh-88726: Stop using non-standard charset names eucgb2312_cn and big5_tw in... 3.14
Miss Islington (bot) [Wed, 27 May 2026 10:52:35 +0000 (12:52 +0200)] 
[3.14] gh-88726: Stop using non-standard charset names eucgb2312_cn and big5_tw in email (GH-149959) (GH-150492)

(cherry picked from commit 5e467f4331d4cb7a8e2986c27af7eb68ccaccb37)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
108 min ago[3.14] gh-149571: Fix the C implementation of Element.itertext() (GH-149929) (GH...
Miss Islington (bot) [Wed, 27 May 2026 10:50:24 +0000 (12:50 +0200)] 
[3.14] gh-149571: Fix the C implementation of Element.itertext() (GH-149929) (GH-150510)

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

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

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

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

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

Co-authored-by: saisneha196 <156835592+saisneha196@users.noreply.github.com>
19 hours ago[3.14] gh-148557: Use em-config to locate trampoline clang (GH-148556) (#150482)
Miss Islington (bot) [Tue, 26 May 2026 17:05:51 +0000 (19:05 +0200)] 
[3.14] gh-148557: Use em-config to locate trampoline clang (GH-148556) (#150482)

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

Co-authored-by: Clément Péron <peron.clem@gmail.com>
23 hours ago[3.14] gh-149931: Fix memory leaks on failed realloc (#150476)
AN Long [Tue, 26 May 2026 13:31:22 +0000 (22:31 +0900)] 
[3.14] gh-149931: Fix memory leaks on failed realloc (#150476)

(cherry picked from commit ec23ec6870373b64a760f4d7bcc3ed5495e1c9aa)

26 hours ago[3.14] gh-150285: Fix too long docstrings in builtins (GH-150293) (GH-150466)
Serhiy Storchaka [Tue, 26 May 2026 10:05:49 +0000 (13:05 +0300)] 
[3.14] gh-150285: Fix too long docstrings in builtins (GH-150293) (GH-150466)

(cherry picked from commit e1e06be11908ddb6935e8df35f972879dd1bc3d8)

26 hours ago[3.14] gh-150285: Fix too long docstrings in the os module (GH-150296) (GH-150341...
Serhiy Storchaka [Tue, 26 May 2026 09:39:54 +0000 (12:39 +0300)] 
[3.14] gh-150285: Fix too long docstrings in the os module (GH-150296) (GH-150341) (GH-150464)

(cherry picked from commit 739552caae245ddafd42a3641765aa0961419bce)
(cherry picked from commit a5cb7c34dd25aaa639a512f0dbbaaa6c9e03f1a1)

27 hours ago[3.14] gh-150285: Fix too long docstrings in the pyexpat module (GH-150294) (GH-150463)
Serhiy Storchaka [Tue, 26 May 2026 09:34:51 +0000 (12:34 +0300)] 
[3.14] gh-150285: Fix too long docstrings in the pyexpat module (GH-150294) (GH-150463)

(cherry picked from commit 9da7923835a4c72e738551bbd78b8179a81286ad)

27 hours ago[3.14] gh-150285: Fix too long docstrings in the sqlite3 module (GH-150290) (GH-150461)
Serhiy Storchaka [Tue, 26 May 2026 09:27:04 +0000 (12:27 +0300)] 
[3.14] gh-150285: Fix too long docstrings in the sqlite3 module (GH-150290) (GH-150461)

(cherry picked from commit 0466560b310fa74c38270328d66d6a16df95ec34)

27 hours ago[3.14] gh-150285: Fix too long docstrings in the decimal module (GH-150288) (GH-150460)
Serhiy Storchaka [Tue, 26 May 2026 09:20:59 +0000 (12:20 +0300)] 
[3.14] gh-150285: Fix too long docstrings in the decimal module (GH-150288) (GH-150460)

(cherry picked from commit 6bed57a3b659a34c4a7d75e76f4fe840f762bf7f)

27 hours ago[3.14] gh-150285: Fix too long docstrings in the io module (GH-150287) (GH-150458)
Serhiy Storchaka [Tue, 26 May 2026 09:10:39 +0000 (12:10 +0300)] 
[3.14] gh-150285: Fix too long docstrings in the io module (GH-150287) (GH-150458)

(cherry picked from commit 160dc74122ed4e31540b2ef2c77bda122b02c94a)

27 hours ago[3.14] gh-150285: Fix too long docstrings in the curses module (GH-150286) (GH-150457)
Serhiy Storchaka [Tue, 26 May 2026 09:06:00 +0000 (12:06 +0300)] 
[3.14] gh-150285: Fix too long docstrings in the curses module (GH-150286) (GH-150457)

(cherry picked from commit 4c0fe2d134f6ddaa4c705ffba073d9d5874b7fe4)

31 hours ago[3.14] gh-150443: Exclude explicit dup3 and pipe2 checks on iOS builds. (GH-150444...
Russell Keith-Magee [Tue, 26 May 2026 05:07:16 +0000 (13:07 +0800)] 
[3.14] gh-150443: Exclude explicit dup3 and pipe2 checks on iOS builds. (GH-150444) (#150447)

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

37 hours ago[3.14] gh-150285: Fix too long docstrings in the zstd module (GH-150291) (GH-150335...
Serhiy Storchaka [Mon, 25 May 2026 23:05:41 +0000 (02:05 +0300)] 
[3.14] gh-150285: Fix too long docstrings in the zstd module (GH-150291) (GH-150335) (#150421)

(cherry picked from commit 9fceb1c0c5c5ad527bc257b115bcf45995daf631)
(cherry picked from commit d3e2a133d23d7ed3a4acc2ee71757281b1f282cd)

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
41 hours ago[3.14] gh-80198: Improve test_pwd and test_grp (GH-150380) (GH-150398) (GH-150422)
Miss Islington (bot) [Mon, 25 May 2026 19:10:01 +0000 (21:10 +0200)] 
[3.14] gh-80198: Improve test_pwd and test_grp (GH-150380) (GH-150398) (GH-150422)

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

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
42 hours ago[3.14] gh-149156: Fix perf trampoline crash after fork (GH-150347) (#150392)
Miss Islington (bot) [Mon, 25 May 2026 18:29:47 +0000 (20:29 +0200)] 
[3.14] gh-149156: Fix perf trampoline crash after fork (GH-150347) (#150392)

2 days ago[3.14] gh-145896: Fix typos and stale docstrings in the traceback module (GH-145897...
Miss Islington (bot) [Mon, 25 May 2026 10:13:08 +0000 (12:13 +0200)] 
[3.14] gh-145896: Fix typos and stale docstrings in the traceback module (GH-145897) (GH-150382)

(cherry picked from commit 832afeddcea78e40d39c47cd1893f8137e588e72)

Co-authored-by: devdanzin <74280297+devdanzin@users.noreply.github.com>
2 days ago[3.14] gh-149449: Fix use-after-free in `_PyUnicode_GetNameCAPI` (GH-150323) (#150353)
Miss Islington (bot) [Mon, 25 May 2026 06:46:08 +0000 (08:46 +0200)] 
[3.14] gh-149449: Fix use-after-free in `_PyUnicode_GetNameCAPI` (GH-150323) (#150353)

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

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2 days ago[3.14] gh-110704: Recommend `distclean` target over `clean` when source tree is not...
Miss Islington (bot) [Sun, 24 May 2026 15:47:44 +0000 (17:47 +0200)] 
[3.14] gh-110704: Recommend `distclean` target over `clean` when source tree is not clean (GH-112610) (#150343)

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

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

Co-authored-by: James <6125322+SnoopJ@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
3 days ago[3.14] gh-150178: Fix refcount leaks in hamt allocation failure paths (GH-150179...
Miss Islington (bot) [Sun, 24 May 2026 07:42:21 +0000 (09:42 +0200)] 
[3.14] gh-150178: Fix refcount leaks in hamt allocation failure paths (GH-150179) (#150302)

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

Co-authored-by: pengyu lee <lipengyu@kylinos.cn>
4 days ago[3.14] gh-148450: abc.register needs to update type_version when tp_flags is changed...
Hai Zhu [Sat, 23 May 2026 12:01:57 +0000 (20:01 +0800)] 
[3.14] gh-148450: abc.register needs to update type_version when tp_flags is changed (GH-148623) (#150308)

4 days ago[3.14] gh-149816: add missing critical section on self in buffered_iternext (GH-15029...
Miss Islington (bot) [Sat, 23 May 2026 09:26:44 +0000 (11:26 +0200)] 
[3.14] gh-149816: add missing critical section on self in buffered_iternext (GH-150295) (#150306)

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

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
4 days ago[3.14] gh-150232: update Thread group parameter doc (GH-150283) (#150298)
Miss Islington (bot) [Sat, 23 May 2026 08:34:30 +0000 (10:34 +0200)] 
[3.14] gh-150232: update Thread group parameter doc (GH-150283) (#150298)

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

Co-authored-by: My-ABC <569817555@qq.com>
4 days ago[3.14] gh-149694: Fix missing docstring on `asyncio.iscoroutinefunction` (GH-149696...
Miss Islington (bot) [Sat, 23 May 2026 08:24:14 +0000 (10:24 +0200)] 
[3.14] gh-149694: Fix missing docstring on `asyncio.iscoroutinefunction` (GH-149696) (#149736)

[3.15] gh-149694: Fix missing docstring on `asyncio.iscoroutinefunction` (GH-149696)
(cherry picked from commit 6a6600569985e4006900bae16812f2d19c8ab97b)

Co-authored-by: deadlovelll <128279579+deadlovelll@users.noreply.github.com>
4 days ago[3.14] Revert "[3.14] gh-146452: Improve locking granularity in pickle's batch_dict_...
Victor Stinner [Sat, 23 May 2026 06:58:19 +0000 (08:58 +0200)] 
[3.14] Revert "[3.14] gh-146452: Improve locking granularity in pickle's batch_dict_… (#150062)" (#150263)

Revert "[3.14] gh-146452: Improve locking granularity in pickle's batch_dict_… (#150062)"

This reverts commit 1243cd677d7f62b90c50546c5ff27e26ef24ca4f.

4 days ago[3.14] Remove 'expat' dependency for Linux in `Misc/Brewfile` (GH-150118) (#150253)
Miss Islington (bot) [Fri, 22 May 2026 14:28:43 +0000 (16:28 +0200)] 
[3.14] Remove 'expat' dependency for Linux in `Misc/Brewfile` (GH-150118) (#150253)

Co-authored-by: Brett Cannon <brett@python.org>
5 days ago[3.14] gh-149902: Remove dead packaging docs link and add a new section for external...
Miss Islington (bot) [Fri, 22 May 2026 11:41:35 +0000 (13:41 +0200)] 
[3.14] gh-149902: Remove dead packaging docs link and add a new section for external resources (GH-150030) (#150240)

Co-authored-by: Mia Albert <micha@2231puppy.tech>
Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
5 days ago[3.14] Replace deprecated action with RtD app (GH-149111) (#150235)
Miss Islington (bot) [Fri, 22 May 2026 11:13:03 +0000 (13:13 +0200)] 
[3.14] Replace deprecated action with RtD app (GH-149111) (#150235)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
5 days ago[3.14] gh-137571: Protect against possible UnboundLocalError in gzip._GzipReader...
Miss Islington (bot) [Fri, 22 May 2026 09:46:05 +0000 (11:46 +0200)] 
[3.14] gh-137571: Protect against possible UnboundLocalError in gzip._GzipReader.read() (GH-150222) (GH-150230)

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 days ago[3.14] gh-149995: Update typing.py docstrings and documentation (#150216)
Jelle Zijlstra [Fri, 22 May 2026 04:46:40 +0000 (21:46 -0700)] 
[3.14] gh-149995: Update typing.py docstrings and documentation (#150216)

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

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

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

5 days ago[3.14] gh-148294: Make configure find g++ correctly (GH-150211)
Miss Islington (bot) [Fri, 22 May 2026 02:17:56 +0000 (04:17 +0200)] 
[3.14] gh-148294: Make configure find g++ correctly (GH-150211)

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

Co-authored-by: sendaoYan <yansendao@126.com>
5 days ago[3.14] gh-107398: Fix tarfile stream mode exception when process the file with the...
Miss Islington (bot) [Thu, 21 May 2026 19:40:32 +0000 (21:40 +0200)] 
[3.14] gh-107398: Fix tarfile stream mode exception when process the file with the gzip extra field (GH-126304) (GH-150200)

(cherry picked from commit 65f99329edf5d0df3ee14d9a242e1a4c8b842211)

Co-authored-by: Nadeshiko Manju <me@manjusaka.me>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 days ago[3.14] gh-139808: Add branch protections for aarch64 in asm_trampoline.S (#130864...
Victor Stinner [Thu, 21 May 2026 16:41:26 +0000 (18:41 +0200)] 
[3.14] gh-139808: Add branch protections for aarch64 in asm_trampoline.S (#130864) (#150189)

gh-139808: Add branch protections for aarch64 in asm_trampoline.S (#130864)

Apply protection against ROP/JOP attacks for aarch64 on asm_trampoline.S.

The BTI flag must be applied in assembler sources for this class
of attacks to be mitigated on newer aarch64 processors.

See also:
https://sourceware.org/annobin/annobin.html/Test-branch-protection.html
and
https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/enabling-pac-and-bti-on-aarch64

The 3.14 backport makes Python/jit_unwind.c changes in
Python/perf_jit_trampoline.c.

(cherry picked from commit da8477b25c6124c961306d4d7cd5ec7dafda6be4)

Co-authored-by: stratakis <cstratak@redhat.com>
6 days ago[3.14] gh-149816: Fix a race condition in `_PyBytes_FromList` with free-threading...
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)

6 days 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>
6 days 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>
7 days 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>
7 days 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>
7 days 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>
7 days 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>
7 days 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>
7 days 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>
7 days 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)

8 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)

8 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>
8 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>
8 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>
8 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>
8 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>
10 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>
10 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>
10 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>
10 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)

10 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)

10 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)

10 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)

11 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>
11 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>
12 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>
12 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)

12 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)

12 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>
12 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>
13 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>
13 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>
13 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>
13 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>
13 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>
2 weeks 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)

2 weeks 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>
2 weeks 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)

2 weeks 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>
2 weeks 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>
2 weeks 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>
2 weeks 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>
2 weeks 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>
2 weeks 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>
2 weeks 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>
2 weeks 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>
2 weeks 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>
2 weeks 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>
2 weeks agoPost 3.14.5
Hugo van Kemenade [Sun, 10 May 2026 12:27:46 +0000 (15:27 +0300)] 
Post 3.14.5

2 weeks 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

2 weeks 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)

2 weeks 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>
2 weeks 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>
2 weeks 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>
2 weeks 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>
2 weeks 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)

2 weeks 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>
3 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>
3 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>
3 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)

3 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>
3 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>
3 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>
3 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>