]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
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>
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>
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>
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 )
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>
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>
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>
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>
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>
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>
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>
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>
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 )
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>
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>
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>
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>
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)
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>
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>
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>
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>
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 )
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 )
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>
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>
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>
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>
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>
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 )
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>
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>
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>
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>
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>
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>
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>
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 )
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>
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 )
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>
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>
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>
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>
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>
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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>
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>
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)
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>
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>
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>
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>
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)
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>
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>
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>
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 .
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>
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>
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>
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>
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 )
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>
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>
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>
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 )
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>
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>
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>
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>
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>
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>
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>
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>
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 )
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 )
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>
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>
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>
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>
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>
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>
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>
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>
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)
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)
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)
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)
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>
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>
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>