]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 hours ago[3.14] gh-50948: IDLE: Warn if saving a file will overwrite a newer version (GH-17578... 3.14
Miss Islington (bot) [Sat, 6 Jun 2026 21:12:07 +0000 (23:12 +0200)] 
[3.14] gh-50948: IDLE: Warn if saving a file will overwrite a newer version (GH-17578) (GH-151027)

(cherry picked from commit 69851a64076cc240513b834d87d654064f7ac597)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Guilherme Polo <ggpolo@gmail.com>
Co-authored-by: Priya Pappachan <priyapappachan010@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 hours ago[3.14] Doc: fix order of PyLong_FromUnsignedLongLong (GH-150937) (GH-151013)
Miss Islington (bot) [Sat, 6 Jun 2026 12:06:26 +0000 (14:06 +0200)] 
[3.14] Doc: fix order of PyLong_FromUnsignedLongLong (GH-150937) (GH-151013)

(cherry picked from commit 4833b2031edc97a79f44afacd2a8f40f51a9b2c5)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
13 hours ago[3.14] Delete mention encoding and errors for importlib.resources.path() (GH-143111...
Miss Islington (bot) [Sat, 6 Jun 2026 11:59:09 +0000 (13:59 +0200)] 
[3.14] Delete mention encoding and errors for importlib.resources.path() (GH-143111) (GH-151015)

(cherry picked from commit fded34d6fe8c300f5625b7fddb86a4c56ecc35c5)

Co-authored-by: Alexander Shadchin <shadchin@yandex-team.com>
14 hours ago[3.14] gh-149835: Use realpath() instead of abspath() in shutil.move() (GH-149986...
Miss Islington (bot) [Sat, 6 Jun 2026 10:30:48 +0000 (12:30 +0200)] 
[3.14] gh-149835: Use realpath() instead of abspath() in shutil.move() (GH-149986) (GH-151010)

(cherry picked from commit fab449bddbc4ff03677d49448cf6ea1f9d6a319f)

Co-authored-by: Thomas Kowalski <thom.kowa@gmail.com>
22 hours ago[3.14] gh-150207: Raise MemoryError on tokenizer allocation failure instead of crashi...
Miss Islington (bot) [Sat, 6 Jun 2026 02:46:57 +0000 (04:46 +0200)] 
[3.14] gh-150207: Raise MemoryError on tokenizer allocation failure instead of crashing (GH-150275) (#150997)

gh-150207: Raise MemoryError on tokenizer allocation failure instead of crashing (GH-150275)
(cherry picked from commit 262625fa30e5a1b5cf33c9dbce5d2b713093c7be)

Co-authored-by: Grant Herman <grantlouisherman041@gmail.com>
26 hours ago[3.14] Use `time.monotonic` in OrderedDict LRU cache example (GH-150986) (#150992)
Miss Islington (bot) [Fri, 5 Jun 2026 22:59:42 +0000 (00:59 +0200)] 
[3.14] Use `time.monotonic` in OrderedDict LRU cache example (GH-150986) (#150992)

Use `time.monotonic` in OrderedDict LRU cache example (GH-150986)
(cherry picked from commit ea4c85552bb7883e1d6c808281c1f46aca86aeab)

Co-authored-by: Ilya Nikolaev <65247719+ilya-nikolaev@users.noreply.github.com>
36 hours ago[3.14] gh-150907: Fix dynamic_annotations.h when built with C++ and Valgrind (GH...
Miss Islington (bot) [Fri, 5 Jun 2026 12:37:44 +0000 (14:37 +0200)] 
[3.14] gh-150907: Fix dynamic_annotations.h when built with C++ and Valgrind (GH-150914) (#150963)

gh-150907: Fix dynamic_annotations.h when built with C++ and Valgrind (GH-150914)

Add extern "C++" scope for the C++ template.

Fix test_cppext when Python is built with --with-valgrind.
(cherry picked from commit c32501261aeeb0cc1ad1c53b6be9790ff1d23215)

Co-authored-by: Victor Stinner <vstinner@python.org>
37 hours ago[3.14] gh-129011: Update docs for Raw I/O read, readinto, and write (GH-135328) ...
Miss Islington (bot) [Fri, 5 Jun 2026 12:08:49 +0000 (14:08 +0200)] 
[3.14] gh-129011: Update docs for Raw I/O read, readinto, and write (GH-135328) (#150958)

gh-129011: Update docs for Raw I/O read, readinto, and write (GH-135328)

Update `RawIOBase` and `FileIO` documentation to match implementation
behavior around `.read`, `.readinto`, `.readall` and `.write`.

In particular:

 - They may make more than one system call (PEP-475)
 - Add warnings if `.write()` requires a wrapping retry loop (see: gh-126606)
    - "Raw I/O" `.write`` may not write all bytes
    - `buffering=0` example results in a "Raw I/O"
(cherry picked from commit e4db68b9c990ed1bb7562094bee2e73f4450d42b)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
40 hours ago[3.14] gh-149144: Use decodeURIComponent() for UTF-8 support in js_output() (GH-149157)
Petr Viktorin [Fri, 5 Jun 2026 08:50:14 +0000 (10:50 +0200)] 
[3.14] gh-149144: Use decodeURIComponent() for UTF-8 support in js_output() (GH-149157)

(cherry picked from commit 461b1d96313de02992d284c1782be9aff24586c9)

Co-authored-by: Seth Larson <seth@python.org>
2 days ago[3.14] Add shebang documentation for PyManager 26.3b1 (GH-150931)
Miss Islington (bot) [Thu, 4 Jun 2026 20:44:59 +0000 (22:44 +0200)] 
[3.14] Add shebang documentation for PyManager 26.3b1 (GH-150931)

(cherry picked from commit e28a2f493044ecfc0f76fe78ff6dde8e395504a9)

Co-authored-by: Steve Dower <steve.dower@python.org>
2 days ago[3.14] gh-150913: Fix sqlite3.Blob validation for empty slice assignment (GH-150915...
Miss Islington (bot) [Thu, 4 Jun 2026 14:07:32 +0000 (16:07 +0200)] 
[3.14] gh-150913: Fix sqlite3.Blob validation for empty slice assignment (GH-150915) (GH-150924)

ass_subscript_slice() returned early when the computed slice length
was zero, bypassing validation performed for non-empty slices.
(cherry picked from commit fc9c4db1302f8be7527e70cf0938b629985a1d72)

Co-authored-by: Jiseok CHOI <jiseok.dev@gmail.com>
2 days ago[3.14] gh-150750: Fix a race condition in `deque.index` with free-threading (GH-15077...
Miss Islington (bot) [Thu, 4 Jun 2026 13:56:55 +0000 (15:56 +0200)] 
[3.14] gh-150750: Fix a race condition in `deque.index` with free-threading (GH-150779) (#150921)

gh-150750: Fix a race condition in `deque.index` with free-threading (GH-150779)
(cherry picked from commit d83d50b5b735cb58e175280d1c27d40c43d535b5)

Co-authored-by: sobolevn <mail@sobolevn.me>
2 days ago[3.14] gh-106318: Add doctest role and a 'See also' to the `str.split()` docs (GH...
Miss Islington (bot) [Thu, 4 Jun 2026 13:23:15 +0000 (15:23 +0200)] 
[3.14] gh-106318: Add doctest role and a 'See also' to the `str.split()` docs (GH-144367)

(cherry picked from commit a96cba5c4aa3cf859a9cacab590fc1a51d6efbbb)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2 days ago[3.14] Correct Stable ABI documentation for METH_FASTCALL (GH-149593) (GH-150852)
Miss Islington (bot) [Thu, 4 Jun 2026 09:49:37 +0000 (11:49 +0200)] 
[3.14] Correct Stable ABI documentation for METH_FASTCALL (GH-149593) (GH-150852)

The current documentation says:

>
> METH_FASTCALL
>    Part of the Stable ABI since version 3.7.
>
> [...]
>
>   Added in version 3.7.
>
>    Changed in version 3.10: METH_FASTCALL is now part of the stable ABI.

so is contradictory about when it was added to the Stable ABI.  Looking at the header it seems like 3.10 is right.
(cherry picked from commit 58beae7319c58d850184d621d6635de23f71a229)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
2 days ago[3.14] gh-140553: Mark `*gettext` parameters as positionaly only in documentation...
Miss Islington (bot) [Thu, 4 Jun 2026 08:19:40 +0000 (10:19 +0200)] 
[3.14] gh-140553: Mark `*gettext` parameters as positionaly only in documentation (GH-140598)

(cherry picked from commit 1837c17bc78b8169cd6c1c5799dcf6a71c3eac83)

Co-authored-by: Stan Ulbrych <stan@python.org>
3 days ago[3.14] gh-145177: Fix Emscripten help text (GH-150874) (#150895)
Miss Islington (bot) [Thu, 4 Jun 2026 00:21:15 +0000 (02:21 +0200)] 
[3.14] gh-145177: Fix Emscripten help text (GH-150874) (#150895)

Removes some stray commas in help text.
(cherry picked from commit 57d444612d9c8a0eab66543d5bf8539103a59b47)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
3 days ago[3.14] Docs: Replace hardcoded `SOURCE_URI` with `patchlevel` check (GH-150850) ...
Hugo van Kemenade [Wed, 3 Jun 2026 13:50:02 +0000 (16:50 +0300)] 
[3.14] Docs: Replace hardcoded `SOURCE_URI` with `patchlevel` check (GH-150850) (#150856)

3 days ago[3.14] gh-91099: fix[imaplib]: call Exception with string instance (GH-31823) (#150810)
Miss Islington (bot) [Wed, 3 Jun 2026 13:12:27 +0000 (15:12 +0200)] 
[3.14] gh-91099: fix[imaplib]: call Exception with string instance (GH-31823) (#150810)

* bpo-46943: fix[imaplib]: call Exception with string instance

Adjust the behavior of 'login' to be similar to `authenticate()`,
where self.error is called with a str() instance.
(cherry picked from commit 29805f00a1b65163230d17584c30e2b955086abb)

Co-authored-by: Florian Best <spaceone@users.noreply.github.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
3 days ago[3.14] Fix a typo in `SSLSocket` docs (GH-150839) (GH-150846)
Miss Islington (bot) [Wed, 3 Jun 2026 12:26:17 +0000 (14:26 +0200)] 
[3.14] Fix a typo in `SSLSocket` docs (GH-150839) (GH-150846)

Fix a typo in `SSLSocket` docs (GH-150839)
(cherry picked from commit 5553e003ca56ecc67340962b2d0f7ca561d64197)

Co-authored-by: Robsdedude <dev@rouvenbauer.de>
3 days ago[3.14] gh-148613: Fix race in `gc_set_threshold` and `gc_get_threshold` (GH-150356...
Miss Islington (bot) [Wed, 3 Jun 2026 11:54:42 +0000 (13:54 +0200)] 
[3.14] gh-148613: Fix race in `gc_set_threshold` and `gc_get_threshold` (GH-150356) (#150842)

gh-148613: Fix race in `gc_set_threshold` and `gc_get_threshold` (GH-150356)
(cherry picked from commit 41eb8ee2bb8cfd4129736e1f6068e702b8bdba6c)

Co-authored-by: Edward Xu <xuxiangad@gmail.com>
3 days ago[3.14] gh-149805: Fix `SystemError` when compiling `__classdict__` class annotation...
Miss Islington (bot) [Wed, 3 Jun 2026 08:39:33 +0000 (10:39 +0200)] 
[3.14] gh-149805: Fix `SystemError` when compiling `__classdict__` class annotation (GH-149806)

(cherry picked from commit c52d2b16ddda3995f0f935b1a3815f1aac498da6)

Co-authored-by: Stan Ulbrych <stan@python.org>
4 days ago[3.14] gh-150319: Replace all documentation which says "See PEP 585" (#150325) (...
Alex Waygood [Tue, 2 Jun 2026 22:22:46 +0000 (23:22 +0100)] 
[3.14] gh-150319: Replace all documentation which says "See PEP 585" (#150325) (#150813)

gh-150319: Replace all documentation which says "See PEP 585" (#150325)

* Replace all documentation which says "See PEP 585"

The following classes in the stdlib get simple updates:

- array.array
- asyncio.Future
- asyncio.Task
- collections.defaultdict
- collections.deque
- contextvars.ContextVar
- contextvars.Token
- ctypes.Array
- os.DirEntry
- re.Match
- re.Pattern
- string.templatelib.Interpolation
- string.templatelib.Template
- types.MappingProxyType
- queue.SimpleQueue
- weakref.ref

The following classes are documented publicly as functions, and are
therefore updated internally (`__class_getitem__.__doc__`) but not in the
public docs:

- functools.partial
- itertools.chain

The following builtin types have updates to `__class_getitem__.__doc__`
but not to any documentation pages:

- BaseExceptionGroup
- coroutines (from generators)
- dict
- enumerate
- frozendict
- frozenset
- generators (and async generators)
- list
- memoryview
- set
- slice
- tuple

Special cases:

- union objects are now documented as "supporting class-level []",
  rather than anything to do with generics.

- Templates might be generic over a single type (union, in theory) or
  over a TypeVarTuple. As this is not currently fully settled, it is
  marked with a comment and a mild hint that it is a single type is used
  (namely, "type" is singular rather than "types", plural)

* Apply suggestions from code review

* Correct several class getitem docs

And expand the text for tuples.

* Add notes on generic typing of builtins

* Fix typo in tuple.__class_getitem__ docstring

* Typo fix: malformed refs

Fix `generic` links which weren't marked as `:ref:`.

* Strike unnecessary docs on generic-ness

* Apply suggestions from code review

These are applied at both the originally indicated locations and in the
corresponding docstring definitions.

* Update Doc/library/re.rst

* Update Objects/enumobject.c

* Remove tuple generic doc in 'stdtypes' page

This is covered in more detail in the cross-linked typing documentation.
The other copy of this documentation -- in the docstring for
`tuple.__class_getitem__` -- is left in place.

* Fix whitespace around new doc of generics

Per review, do not introduce or remove whitespace such that section
breaks are altered by the introduction of doc on various generic types.

In most cases, this is a removal of an extra line.

In one case (Arrays), it is the reintroduction of a line.

Additionally, two other minor fixes are included:
- incorrect indent on 'defaultdicts'
- make `mappingproxy.__class_getitem__.__doc__` consistent with other
  mapping type generic docs

* Move placement of memoryview generic note

Previous placement was at the end of the main docstring, which is
consistent with other types but places it after a section on various
methods (which makes it read somewhat inconsistently). Moving it up
helps resolve.

* Ensure sphinxdoc does not start sentences lowercase

Lowercase class names at the start of sentences are marked out with the
`class` role. In the case of `deque`, documentation already refers to
these as `Deques`, so this form is preferred.

* Apply suggestions from code review

* Fix line endings and wrap more tightly

Line endings fixed by pre-commit ; also re-wrapped the MappingProxyType
text which was too long.

* Use 'ContextVars' style in sphinx doc

---------

Co-authored-by: Stephen Rosen <sirosen@globus.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Jelle Zijlstra <906600+JelleZijlstra@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 days ago[3.14] gh-141627: Fix BufferedRandom inheritance documentation (GH-141629) (GH-150802)
Miss Islington (bot) [Tue, 2 Jun 2026 19:22:59 +0000 (21:22 +0200)] 
[3.14] gh-141627: Fix BufferedRandom inheritance documentation (GH-141629) (GH-150802)

BufferedRandom does not inherit from BufferedReader and BufferedWriter
in the C implementation.
(cherry picked from commit 551bc2cb5ed4719c35ca3ea0f320167dd750389e)

Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>
4 days ago[3.14] Fix description of the function parameter of shutil.register_archive_format...
Miss Islington (bot) [Tue, 2 Jun 2026 19:20:24 +0000 (21:20 +0200)] 
[3.14] Fix description of the function parameter of shutil.register_archive_format() (GH-145087) (GH-150805)

(cherry picked from commit 18c6d3ccc32232a28a5288708818ef9c4fecba1a)

Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
4 days ago[3.14] gh-101913: changed wording of docstring for _parsedate_tz (GH-134446) (#150797)
Miss Islington (bot) [Tue, 2 Jun 2026 17:51:33 +0000 (19:51 +0200)] 
[3.14] gh-101913: changed wording of docstring for _parsedate_tz (GH-134446) (#150797)

Fixed incorrect word.
(cherry picked from commit f7e0fb60cfaf31373c0b78e6eb954a0351e92f09)

Co-authored-by: Gustaf <79180496+gostak-dd@users.noreply.github.com>
Co-authored-by: Gustaf <79180496+GGyll@users.noreply.github.com>
4 days ago[3.14] gh-89554: Document _thread.LockType as a class (GH-150684) (#150784)
Miss Islington (bot) [Tue, 2 Jun 2026 13:05:49 +0000 (15:05 +0200)] 
[3.14] gh-89554: Document _thread.LockType as a class (GH-150684) (#150784)

gh-89554: Document _thread.LockType as a class (GH-150684)

_thread.LockType is a class (the type of lock objects), but was documented
with the ".. data::" directive, so ":class:" cross-references to it cannot
resolve against a py:class target.

Switch the entry to ".. class::", move it next to the lock methods, and
document acquire(), release() and locked() as methods of the class.  Keep
the old _thread.lock.* URL fragments working with raw HTML anchors.
(cherry picked from commit e37ce569773b5e4e5c0e6042d4adfde2e9608f13)

Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
4 days ago[3.14] gh-149738: Fix segmentation fault bug in sqllite3 (GH-149754) (#150769)
Miss Islington (bot) [Tue, 2 Jun 2026 12:52:25 +0000 (14:52 +0200)] 
[3.14] gh-149738: Fix segmentation fault bug in sqllite3 (GH-149754) (#150769)

gh-149738: Fix segmentation fault bug in sqllite3 (GH-149754)

Deleting the `row_factory` or `text_factory` attribute is no longer allowed.
(cherry picked from commit 60fdb3192b897168ec0418fb0ea6c8d2d49ea513)

Co-authored-by: Sepehr Rasouli <sepehrrasouli06@gmail.com>
4 days ago[3.14] Fix a typo in 'Exception Handling' C-API documentation (GH-150674)
Manoj K M [Tue, 2 Jun 2026 11:28:35 +0000 (16:58 +0530)] 
[3.14] Fix a typo in 'Exception Handling' C-API documentation (GH-150674)

(cherry picked from commit cee3327b9264a653cdbd2f9bb1ffa74a95be66e9)

4 days ago[3.14] gh-149079: Fix O(n^2) canonical ordering in unicodedata.normalize() (GH-149080)
Miss Islington (bot) [Tue, 2 Jun 2026 10:10:30 +0000 (12:10 +0200)] 
[3.14] gh-149079: Fix O(n^2) canonical ordering in unicodedata.normalize() (GH-149080)

Replace the insertion sort used for canonical ordering of combining
characters with a hybrid approach: insertion sort for short runs (< 20)
and counting sort for longer runs, reducing worst-case complexity from
O(n^2) to O(n). This prevents denial of service via crafted Unicode
strings with many combining characters in alternating CCC order.
(cherry picked from commit 991224b1e8311c85f198f6dd8208bf8cff7fc26f)

Co-authored-by: Seth Larson <seth@python.org>
Co-authored-by: ch4n3-yoon <ch4n3.yoon@gmail.com>
Co-authored-by: Seokchan Yoon <13852925+ch4n3-yoon@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
4 days ago[3.14] gh-123138: Updated email.headerregistry docs to include required keyword parse...
Miss Islington (bot) [Tue, 2 Jun 2026 09:26:04 +0000 (11:26 +0200)] 
[3.14] gh-123138: Updated email.headerregistry docs to include required keyword parse_tree (GH-134450) (GH-150624)

(cherry picked from commit 2c20f9ce17abcbc36a105fd9de0b15797b6401ae)

Co-authored-by: Gustaf <79180496+gostak-dd@users.noreply.github.com>
4 days ago[3.14] gh-89554: Document typing.ParamSpecArgs and ParamSpecKwargs as classes (GH...
Miss Islington (bot) [Tue, 2 Jun 2026 08:15:19 +0000 (10:15 +0200)] 
[3.14] gh-89554: Document typing.ParamSpecArgs and ParamSpecKwargs as classes (GH-150677) (GH-150764)

Use the directive "class" instead of "data" for ParamSpecArgs and ParamSpecKwargs.
(cherry picked from commit 35c314d2b7282e729c2d86716fc94e1fe38f25da)

Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
4 days ago[3.14] gh-89554: Document weakref type objects as classes (GH-150678) (GH-150759)
Miss Islington (bot) [Tue, 2 Jun 2026 08:07:15 +0000 (10:07 +0200)] 
[3.14] gh-89554: Document weakref type objects as classes (GH-150678) (GH-150759)

Use the "class" directive instead of "data" for ReferenceType,
ProxyType and CallableProxyType.
(cherry picked from commit 10c421970beca89df92a918f2247fb8850d3b6cc)

Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
4 days ago[3.14] gh-89554: Document NoneType, NotImplementedType and EllipsisType as classes...
Miss Islington (bot) [Tue, 2 Jun 2026 08:02:22 +0000 (10:02 +0200)] 
[3.14] gh-89554: Document NoneType, NotImplementedType and EllipsisType as classes (GH-150682) (GH-150756)

Always use the directive and the role "class" instead of "data" for
NoneType, NotImplementedType and EllipsisType.
(cherry picked from commit e40190e104c81b61cdc6f71a391e28de53bbc1d8)

Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
5 days ago[3.14] gh-150644: Tag Apple system log messages as public. (GH-150645) (#150739)
Miss Islington (bot) [Mon, 1 Jun 2026 22:51:07 +0000 (00:51 +0200)] 
[3.14] gh-150644: Tag Apple system log messages as public. (GH-150645) (#150739)

macOS 26 changed the default visibility of "dynamic" system messages. This
changes the logging strategy to tag all messages as "public" so they are
visible in the system log without special configuration.
(cherry picked from commit 71fc4c66d3e675a5481b6b76e6c707c9b6f1e0e0)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
5 days ago[3.14] gh-148508: Add another common pattern for iOS SSL failures to test_ssl (GH...
Miss Islington (bot) [Mon, 1 Jun 2026 22:36:38 +0000 (00:36 +0200)] 
[3.14] gh-148508: Add another common pattern for iOS SSL failures to test_ssl (GH-150442) (#150698)

gh-148508: Add another common pattern for iOS SSL failures to test_ssl (GH-150442)

Match also '[SSL: HTTP_REQUEST] http request (_ssl.c:1143)'.
(cherry picked from commit 540b3d0a7fa7cd842f064f79b1410cbd6868bffa)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
5 days ago[3.14] gh-148672: Document namespace subpackages inside regular packages (GH-150056...
Miss Islington (bot) [Mon, 1 Jun 2026 19:30:29 +0000 (21:30 +0200)] 
[3.14] gh-148672: Document namespace subpackages inside regular packages (GH-150056) (#150730)

gh-148672: Document namespace subpackages inside regular packages (GH-150056)
(cherry picked from commit 9ba2a891798a06508f63e216d3a1b6907b39eec4)

Co-authored-by: Taeknology <20297177+Taeknology@users.noreply.github.com>
5 days ago[3.14] gh-150436: Skip subprocess test on STATUS_DLL_INIT_FAILED (#150704) (#150715)
Victor Stinner [Mon, 1 Jun 2026 15:23:15 +0000 (17:23 +0200)] 
[3.14] gh-150436: Skip subprocess test on STATUS_DLL_INIT_FAILED (#150704) (#150715)

gh-150436: Skip subprocess test on STATUS_DLL_INIT_FAILED (#150704)

If a subprocess spawned with CREATE_NEW_CONSOLE creation flag fails
with STATUS_DLL_INIT_FAILED return code, skip the test. It's likely a
memory allocation failure in the desktop heap memory which caused the
DLL init failure.

(cherry picked from commit e8034dd841808416e243a4b2f8e08f0edf9caff3)

5 days ago[3.14] gh-150157: Fix critical section for PyDict_Next() in _pickle.c (GH-150158...
Miss Islington (bot) [Mon, 1 Jun 2026 14:57:52 +0000 (16:57 +0200)] 
[3.14] gh-150157: Fix critical section for PyDict_Next() in _pickle.c (GH-150158) (GH-150710)

(cherry picked from commit c5516e7e371f7b273eb37c7b65f14ef14ee81f11)

Co-authored-by: Thomas Kowalski <thom.kowa@gmail.com>
5 days ago[3.14] gh-149046: fix: correctly handle `str` subclasses in `io.StringIO` (GH-149047...
Miss Islington (bot) [Mon, 1 Jun 2026 13:26:30 +0000 (15:26 +0200)] 
[3.14] gh-149046: fix: correctly handle `str` subclasses in `io.StringIO` (GH-149047) (#150707)

gh-149046: fix: correctly handle `str` subclasses in `io.StringIO` (GH-149047)
(cherry picked from commit c98773633c97463e35eb51fac81d1095e8061fe0)

Co-authored-by: Thomas Kowalski <thom.kowa@gmail.com>
5 days ago[3.14] gh-150368: Change Windows user group to secure identifier in test_tempfile...
Miss Islington (bot) [Mon, 1 Jun 2026 12:02:47 +0000 (14:02 +0200)] 
[3.14] gh-150368: Change Windows user group to secure identifier in test_tempfile (GH-150369) (#150702)

gh-150368: Change Windows user group to secure identifier in test_tempfile (GH-150369)
(cherry picked from commit 9d64c355b5471e2d27e036d3662e97567d259c61)

Co-authored-by: Dawid Konrad Kohnke <51542233+anytokin@users.noreply.github.com>
5 days ago[3.14] gh-148605: Remove irepeat() thread test from test_bytes (GH-150576) (#150661)
Miss Islington (bot) [Mon, 1 Jun 2026 09:31:18 +0000 (11:31 +0200)] 
[3.14] gh-148605: Remove irepeat() thread test from test_bytes (GH-150576) (#150661)

gh-148605: Remove irepeat() thread test from test_bytes (GH-150576)
(cherry picked from commit 350e9de7650e224fd3abe8f389976071e8fae6d2)

Co-authored-by: Victor Stinner <vstinner@python.org>
6 days ago[3.14] gh-150685: update bundled pip to 26.1.2 (gh-150686) (gh-150688)
Miss Islington (bot) [Sun, 31 May 2026 20:12:51 +0000 (22:12 +0200)] 
[3.14] gh-150685: update bundled pip to 26.1.2 (gh-150686) (gh-150688)

6 days ago[3.14] Clarify docs for scheduler.run(blocking=False) (GH-129575) (GH-150669)
Miss Islington (bot) [Sun, 31 May 2026 12:18:57 +0000 (14:18 +0200)] 
[3.14] Clarify docs for scheduler.run(blocking=False) (GH-129575) (GH-150669)

(cherry picked from commit 2f8f569ba911ab3cff1356a15a3e688adc4ae917)

Co-authored-by: M. Greyson Christoforo <grey@christoforo.net>
6 days ago[3.14] gh-150636: Clarify difference between copy.copy() and the copy() methods ...
Miss Islington (bot) [Sun, 31 May 2026 12:15:58 +0000 (14:15 +0200)] 
[3.14] gh-150636: Clarify difference between copy.copy() and the copy() methods (GH-150637) (GH-150666)

(cherry picked from commit 1de909b32411fc1c4d4c42b4f8221b86096c6353)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
6 days ago[3.14] gh-150372: Add missing null check on completer_word_break_characters in readli...
Miss Islington (bot) [Sun, 31 May 2026 11:59:17 +0000 (13:59 +0200)] 
[3.14] gh-150372: Add missing null check on completer_word_break_characters in readline.c (GH-150251) (GH-150629)

(cherry picked from commit 56bd9ea676d5ab4d5f6c68aefc3125ef5a216157)

Co-authored-by: Thomas Kowalski <thom.kowa@gmail.com>
6 days ago[3.14] gh-131178: Fix mimetypes CLI docs, mention that errors go to stdout (GH-149683...
Miss Islington (bot) [Sun, 31 May 2026 08:11:03 +0000 (10:11 +0200)] 
[3.14] gh-131178: Fix mimetypes CLI docs, mention that errors go to stdout (GH-149683) (#150656)

gh-131178: Fix mimetypes CLI docs, mention that errors go to stdout (GH-149683)
(cherry picked from commit 2b94b923943a1f75cdbd5a5e4e2eb5f93eb43e23)

Co-authored-by: htjworld <116538001+htjworld@users.noreply.github.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
6 days ago[3.14] Correct frexp() docs for zero and non-finite numbers (GH-149753) (GH-150653)
Sergey B Kirpichev [Sun, 31 May 2026 08:02:32 +0000 (11:02 +0300)] 
[3.14] Correct frexp() docs for zero and non-finite numbers (GH-149753) (GH-150653)

0.5 <= abs(m) < 1 is only true for finite nonzero numbers
(cherry picked from commit 5b5ffce05c211a5b0b74cd95eeb4c463614ee136)

6 days ago[3.14] gh-150524: Remove outdated note in binascii.a2b_hex() documentation (GH-150525...
Joshix-1 [Sun, 31 May 2026 07:53:24 +0000 (09:53 +0200)] 
[3.14] gh-150524: Remove outdated note in binascii.a2b_hex() documentation (GH-150525) (GH-150632)

bytes.fromhex() accepts ASCII bytes and bytes-like objects as input since 3.14
(cherry picked from commit af10734907d2d7df4c4d754174804aec7c5d6a72)

6 days ago[3.14] gh-117291: Explain usage of null bytes in Array(c_char).value (GH-117292)...
Miss Islington (bot) [Sun, 31 May 2026 07:28:47 +0000 (09:28 +0200)] 
[3.14] gh-117291: Explain usage of null bytes in Array(c_char).value (GH-117292) (GH-150650)

(cherry picked from commit 73d8e9a47cc13ce1b9b1bdfdeaa958639b144f55)

Co-authored-by: Patrick Rauscher <prauscher@prauscher.de>
6 days ago[3.14] gh-149857: Clarify multiprocessing Process argument wording (GH-149919) (...
Miss Islington (bot) [Sun, 31 May 2026 04:22:12 +0000 (06:22 +0200)] 
[3.14] gh-149857: Clarify multiprocessing Process argument wording (GH-149919) (#149934)

gh-149857: Clarify multiprocessing Process argument wording (GH-149919)

Use consistent 'picklable' wording
(cherry picked from commit 1bab6c919212cbac9be9e37bbd4d85865051f17f)

Co-authored-by: Mani Salahmand <78011313+ManiSalahmand@users.noreply.github.com>
6 days ago[3.14] gh-141444:fix broken URLs and examples in urllib.request.rst (GH-144863) ...
Miss Islington (bot) [Sun, 31 May 2026 04:08:44 +0000 (06:08 +0200)] 
[3.14] gh-141444:fix broken URLs and examples in urllib.request.rst (GH-144863) (#150643)

gh-141444:fix broken URLs and examples in urllib.request.rst (GH-144863)

* Doc: fix broken URLs and examples in urllib.request.rst (gh-141444)

* Doc: update urllib.request examples to handle gzip compression

---------
(cherry picked from commit 0f1f7c7889873deb7c2e2c3f18695bf636e7752c)

Co-authored-by: Paper Moon <tangyuan0821@email.cn>
Co-authored-by: Senthil Kumaran <senthil@python.org>
7 days ago[3.14] gh-129851: Fix the documentation for -m command (GH-129862) (GH-150619)
Serhiy Storchaka [Sat, 30 May 2026 17:15:29 +0000 (20:15 +0300)] 
[3.14] gh-129851: Fix the documentation for -m command (GH-129862) (GH-150619)

(cherry picked from commit 9baa7c63bee1ad2b243f16109a3fd206a1f13a6a)

Co-authored-by: Dhruv Singla <68206552+d-s-dc@users.noreply.github.com>
7 days ago[3.14] gh-150406: Check result of PyThread_allocate_lock() for netdb_lock (GH-150407...
Miss Islington (bot) [Sat, 30 May 2026 16:56:31 +0000 (18:56 +0200)] 
[3.14] gh-150406: Check result of PyThread_allocate_lock() for netdb_lock (GH-150407) (GH-150617)

(cherry picked from commit 1e18c45495185cb547d43c3dd4c1cbdd8482867b)

Co-authored-by: Thomas Kowalski <thom.kowa@gmail.com>
7 days ago[3.14] gh-149489: Fix ElementTree serialization to HTML (GH-149490) (GH-150596)
Serhiy Storchaka [Sat, 30 May 2026 10:52:00 +0000 (13:52 +0300)] 
[3.14] gh-149489: Fix ElementTree serialization to HTML (GH-149490) (GH-150596)

* The content of elements "xmp", "iframe", "noembed", "noframes",
  and "plaintext" is no longer escaped.
* The "plaintext" element no longer have the closing tag.

(cherry picked from commit bcd29e466f55d8b4e3849ed6ada8ce86a46f5072)

7 days ago[3.14] gh-135898: Add section to free-threading howto about memory usage (GH-143279...
Miss Islington (bot) [Sat, 30 May 2026 10:49:10 +0000 (12:49 +0200)] 
[3.14] gh-135898: Add section to free-threading howto about memory usage (GH-143279) (#150608)

gh-135898: Add section to free-threading howto about memory usage (GH-143279)
(cherry picked from commit 62a45fa91c64bd1e1ad46ed66c07b65a7971042e)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
7 days ago[3.14] gh-150501: Correct `inspect.getattr_static` docs signature (GH-150504) (#150602)
Miss Islington (bot) [Sat, 30 May 2026 09:25:55 +0000 (11:25 +0200)] 
[3.14] gh-150501: Correct `inspect.getattr_static` docs signature (GH-150504) (#150602)

gh-150501: Correct `inspect.getattr_static` docs signature (GH-150504)
(cherry picked from commit 678fd8452cc2d7f9a50cb5d4e5ae44a60b724248)

Co-authored-by: Jonathan Dung <jonathandung@yahoo.com>
8 days ago[3.14] Add a security warning about `pydoc`'s HTTP server (GH-150409)
Miss Islington (bot) [Fri, 29 May 2026 19:08:02 +0000 (21:08 +0200)] 
[3.14] Add a security warning about `pydoc`'s HTTP server (GH-150409)

(cherry picked from commit 5535c1f9c08e929f96fa5d798277e3a2c91ed12a)

Co-authored-by: Stan Ulbrych <stan@python.org>
8 days ago[3.14] gh-150107: Fix asyncio sendfile fallback ignoring non-zero offset (GH-150270...
Miss Islington (bot) [Fri, 29 May 2026 13:26:00 +0000 (15:26 +0200)] 
[3.14] gh-150107: Fix asyncio sendfile fallback ignoring non-zero offset (GH-150270) (#150569)

gh-150107: Fix asyncio sendfile fallback ignoring non-zero offset (GH-150270)
(cherry picked from commit c72d5ea638731ec29723ded2d26ec7f997f06f17)

Co-authored-by: Grant Herman <grantlouisherman041@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
9 days ago[3.14] gh-150046: Fix `test_add_python_opts` to ignore `PYTHON*` env vars (GH-150089...
Miss Islington (bot) [Thu, 28 May 2026 17:15:20 +0000 (19:15 +0200)] 
[3.14] gh-150046: Fix `test_add_python_opts` to ignore `PYTHON*` env vars (GH-150089) (#150562)

gh-150046: Fix `test_add_python_opts` to ignore `PYTHON*` env vars (GH-150089)

Avoid the runtime environment from affecting the tests' behaviours,
which notably checks the warning filters which can be controlled by
various PYTHON environment variables.
(cherry picked from commit ef2246f788832a64ba7c5215c8e72f8e539e59b4)

Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
9 days ago[3.14] Add prominent crash warning to `ctypes` docs (GH-150410) (GH-150548)
Miss Islington (bot) [Thu, 28 May 2026 10:24:04 +0000 (12:24 +0200)] 
[3.14] Add prominent crash warning to `ctypes` docs (GH-150410) (GH-150548)

(cherry picked from commit b53f6ca850b500621474e82931c3e7216d9a1cb1)

Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
10 days ago[3.14] gh-84353: Preserve non-UTF-8 filenames when appending to ZipFile (GH-150091...
Miss Islington (bot) [Wed, 27 May 2026 18:21:49 +0000 (20:21 +0200)] 
[3.14] gh-84353: Preserve non-UTF-8 filenames when appending to ZipFile (GH-150091) (GH-150528)

Preserve non-UTF-8 filenames when appending to a ZipFile.

---------
(cherry picked from commit 24c6bbc92b6dd0ce9b7ff799049498299f70f97d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
10 days ago[3.14] gh-150285: Fix too long docstrings in _wmi.exec_query (GH-150373) (GH-150520)
Serhiy Storchaka [Wed, 27 May 2026 16:34:33 +0000 (19:34 +0300)] 
[3.14] gh-150285: Fix too long docstrings in _wmi.exec_query (GH-150373) (GH-150520)

(cherry picked from commit fbeafc062e55a52ba7369c36be0b3eb34eabb560)

10 days ago[3.14] gh-150285: Fix too long docstrings in some Python modules (GH-150366) (GH...
Serhiy Storchaka [Wed, 27 May 2026 16:29:58 +0000 (19:29 +0300)] 
[3.14] gh-150285: Fix too long docstrings in some Python modules (GH-150366) (GH-150375) (GH-150519)

(cherry picked from commit 01c6d3d76bf222d8b847c97e0a3d3fad0c1b1fe3)
(cherry picked from commit 03244b9f043a31eaa9243d90d01139294155e1f3)

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
10 days ago[3.14] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH...
Serhiy Storchaka [Wed, 27 May 2026 16:24:18 +0000 (19:24 +0300)] 
[3.14] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) (GH-150473)

(cherry picked from commit cf73b17adfd102a34a01efbad89a83dffdec2806)
(cherry picked from commit 287c98f4cb40c15d638651de4b29ae98b92589aa)

10 days ago[3.14] gh-149861: Fix rule in match statement `case_block` PEG grammar (GH-149908)
Miss Islington (bot) [Wed, 27 May 2026 15:25:19 +0000 (17:25 +0200)] 
[3.14] gh-149861: Fix rule in match statement `case_block` PEG grammar (GH-149908)

(cherry picked from commit 99c254e2f79a4197524bef61bf0d12251ee273e6)

Co-authored-by: Ivy Xu <fakeshadow1337@gmail.com>
10 days ago[3.14] gh-88726: Stop using non-standard charset names eucgb2312_cn and big5_tw in...
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>
10 days 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>
11 days 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>
11 days 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>
11 days 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)

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

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

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

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

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

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

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

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

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

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

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

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

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

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