]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Tue, 20 May 2025 18:49:29 +0000 (20:49 +0200)]
[3.14] gh-106213: Shorten Emscripten wasm-gc trampoline by a little (GH-133984) (#134376)
Using the if instruction results in slightly shorter trampoline code.
(cherry picked from commit
3b7888bf3d43b903f0a7ebd16f39d8bb61dfbb9e )
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Miss Islington (bot) [Tue, 20 May 2025 17:43:09 +0000 (19:43 +0200)]
[3.14] gh-86802: Fix asyncio memory leak; shielded task exceptions log once through the exception handler (gh-134331) (gh-134343)
(cherry picked from commit
f695eca60cfc53cf3322323082652037d6d0cfef )
Co-authored-by: Christian Harries <68507104+ChristianHrs@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Tue, 20 May 2025 17:22:24 +0000 (19:22 +0200)]
[3.14] GH-133779: Fix finding pyconfig.h on Windows JIT builds (GH-134359)
(cherry picked from commit
7ad90463df16e1938a3b6725b0f02af34cea372e )
Miss Islington (bot) [Tue, 20 May 2025 17:11:01 +0000 (19:11 +0200)]
[3.14] gh-75459: Doc: C API: Improve object life cycle documentation (GH-125962) (GH-134344)
gh-75459: Doc: C API: Improve object life cycle documentation (GH-125962)
* Add "cyclic isolate" to the glossary.
* Add a new "Object Life Cycle" page.
* Improve docs for related API, with special focus on cross-references and warnings
(cherry picked from commit
3246ea514d6da6ff09f411e22b3ba61a7de84a74 )
Co-authored-by: Richard Hansen <rhansen@rhansen.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Tue, 20 May 2025 17:02:55 +0000 (19:02 +0200)]
[3.14] gh-127945: Update What's New in Python 3.14 for free-threaded ctypes (GH-134332) (#134364)
gh-127945: Update What's New in Python 3.14 for free-threaded ctypes (GH-134332)
(cherry picked from commit
b430e92dd80105e97b945a78a48bce13564bf843 )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Tue, 20 May 2025 16:47:42 +0000 (18:47 +0200)]
[3.14] gh-128002: add what's new docs for `asyncio` (GH-134324) (#134362)
gh-128002: add what's new docs for `asyncio` (GH-134324)
(cherry picked from commit
0584533dc70b4efdb65fd53fbb5beddbc7a302a8 )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Tue, 20 May 2025 16:46:52 +0000 (18:46 +0200)]
[3.14] gh-132542: Set native thread ID after fork (GH-132701) (GH-134356)
(cherry picked from commit
6b735023132a4ac9dc5b849d982104eeb1e8bdad )
Co-authored-by: Noam Cohen <noam@noam.me>
Miss Islington (bot) [Tue, 20 May 2025 16:25:04 +0000 (18:25 +0200)]
[3.14] gh-129748: Update mimalloc to use atomic store for mi_block_set_nextx (GH-134238) (gh-134352)
gh-129748: Update mimalloc to use atomic store for mi_block_set_nextx (GH-134238)
(cherry picked from commit
317c49622397222b7c7fb49837e6b1fd7e82a80d )
Co-authored-by: Donghee Na <donghee.na@python.org>
Miss Islington (bot) [Tue, 20 May 2025 14:52:11 +0000 (16:52 +0200)]
[3.14] gh-101100: Fix Sphinx warnings in `library/decimal.rst` (GH-134303) (#134338)
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Miss Islington (bot) [Tue, 20 May 2025 14:15:18 +0000 (16:15 +0200)]
[3.14] gh-128307: Update what's new in 3.13 and 3.14 with create_task changes of asyncio (GH-134304) (#134319)
gh-128307: Update what's new in 3.13 and 3.14 with create_task changes of asyncio (GH-134304)
(cherry picked from commit
28625d4f956f8d30671aba1daaac9735932983db )
Co-authored-by: Guido van Rossum <guido@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 20 May 2025 14:05:16 +0000 (16:05 +0200)]
[3.14] gh-62824: Add alias for iso-8859-8-i which is the same as iso-8859-8 (gh-134306) (gh-134330)
(cherry picked from commit
5ab66a882d1b5e44ec50b25df116ab209d65863f )
Co-authored-by: Bas Bloemsaat <bas@bloemsaat.com>
Co-authored-by: David Goncalves <davegoncalves@gmail.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Miss Islington (bot) [Tue, 20 May 2025 12:55:21 +0000 (14:55 +0200)]
[3.14] gh-117596: Add more tests for os.path with invalid paths (GH-134189) (GH-134265)
(cherry picked from commit
871d26987533e81ab63af067e1fc96aa37a26bf7 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 20 May 2025 12:15:34 +0000 (14:15 +0200)]
[3.14] gh-53189: Document peculiarities of InteractiveConsole in relation to pickle (GH-123069) (GH-134328)
gh-53189: Document peculiarities of InteractiveConsole in relation to pickle (GH-123069)
(cherry picked from commit
a31bbc951a9d74cd7b9092555c101e51a2b9482b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 20 May 2025 10:13:40 +0000 (12:13 +0200)]
[3.14] gh-133890: Handle UnicodeEncodeError in tarfile (GH-134147) (GH-134195)
UnicodeEncodeError is now handled the same way as OSError during
TarFile member extraction.
(cherry picked from commit
9983c7d4416cac8deb2fded1ec9c7daf786c3a02 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 20 May 2025 10:11:39 +0000 (12:11 +0200)]
[3.14] gh-133940: test_strftime incorrectly calculates expected week (GH-134281) (#134301)
gh-133940: test_strftime incorrectly calculates expected week (GH-134281)
Let the system determine the correct tm_wday and tm_isdst.
(cherry picked from commit
e3dda8f81832008adf19906004f0cd53de95dd0b )
Co-authored-by: Gustaf <79180496+GGyll@users.noreply.github.com>
Miss Islington (bot) [Tue, 20 May 2025 09:57:39 +0000 (11:57 +0200)]
[3.14] gh-131505: Move len boundary assertions before using len. (GH-131536) (GH-134239)
gh-131505: Move len boundary assertions before using len. (GH-131536)
Move len boundary assertions before using len.
(cherry picked from commit
c45e661226558e997e265cf53ce1419213cc10b7 )
Co-authored-by: naya451 <41294408+naya451@users.noreply.github.com>
Miss Islington (bot) [Tue, 20 May 2025 08:18:13 +0000 (10:18 +0200)]
[3.14] Clean up test_posixpath (GH-134315) (GH-134316)
* Ensure that created files and dirs are always removed after test.
Now addCleanup() does not conflict with tearDown().
* Use os_helper.unlink() and os_helper.rmdir().
* Import TESTFN from os_helper.
(cherry picked from commit
e29171bf8a26b5faf97222e07a7d5f33c9eb272b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 20 May 2025 06:53:44 +0000 (08:53 +0200)]
[3.14] gh-133374: fix test_python_legacy_windows_stdio (GH-134080) (GH-134314)
(cherry picked from commit
652d6938ef8c42c1c4c180c3f0e257c26c6677da )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Tue, 20 May 2025 02:58:51 +0000 (04:58 +0200)]
[3.14] gh-132983: Call Py_XDECREF rather than PyObject_GC_Del in failed __new__ (GH-133962) (#134305)
gh-132983: Call Py_XDECREF rather than PyObject_GC_Del in failed __new__ (GH-133962)
Call Py_XDECREF rather than PyObject_GC_Del in failed __new__
This will call tp_dealloc and clear all members.
(cherry picked from commit
e575190abbd9409adad3e7fd95424f827236bed9 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Tue, 20 May 2025 02:25:24 +0000 (04:25 +0200)]
[3.14] gh-132983: Convert zstd ``__new__`` methods to Argument Clinic (GH-133860) (#133915)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 20 May 2025 00:05:26 +0000 (02:05 +0200)]
[3.14] gh-134201: Expand explanation of Base85 encodings in base64 docs (GH-134288) (#134298)
gh-134201: Expand explanation of Base85 encodings in base64 docs (GH-134288)
Explain history of de-facto standard and how to pick between the two Base-85 encoding functions in the base-64 module.
---------
(cherry picked from commit
66aaad61037785639aec393be7618cb54b1372dc )
Co-authored-by: Alek Binion <aleksander.binion@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Mon, 19 May 2025 21:46:50 +0000 (23:46 +0200)]
[3.14] gh-134235: Import Autocomplete for Builtin Modules (GH-134277) (#134285)
gh-134235: Import Autocomplete for Builtin Modules (GH-134277)
* added enhancement auto completing import with sys builtins
---------
(cherry picked from commit
8421b03b16a4852a527256cb7cdce2ab2d318548 )
Co-authored-by: Tom Wang <85062819+tommix626@users.noreply.github.com>
Co-authored-by: Hunter <hyoung3@gmail.com>
Steve Dower [Mon, 19 May 2025 20:24:53 +0000 (21:24 +0100)]
[3.14] gh-133779: Revert Windows generation of pyconfig.h and go back to a static header. (GH-133966)
Extension builders must specify Py_GIL_DISABLED if they want to link to the free-threaded builds.
This was usually the case already, but this change guarantees it in all circumstances.
Miss Islington (bot) [Mon, 19 May 2025 15:22:14 +0000 (17:22 +0200)]
[3.14] gh-125225: Fix column misalignment in help('topics') output (gh-125226) (gh-134225)
The 'help("topics")' output was misaligned due to "ASSIGNMENTEXPRESSIONS"
exceeding the implicit maximum default column width of 19 characters.
Reduced the number of columns from 4 to 3 in the listtopics()
function to allow more space for longer topic names.
(cherry picked from commit
b22460c44d1bc597c96d4a3d27ad8373d7952820 )
Co-authored-by: Étienne Pelletier <EtiennePelletier@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Mon, 19 May 2025 15:09:15 +0000 (17:09 +0200)]
[3.14] gh-128045: Mark unknown opcodes as deopting to themselves (GH-128044) (#134228)
* gh-128045: Mark unknown opcodes as deopting to themselves (GH-128044)
Miss Islington (bot) [Mon, 19 May 2025 14:51:46 +0000 (16:51 +0200)]
[3.14] gh-134214: Fix test case in pyrepl (gh-134223) (gh-134229)
(cherry picked from commit
faebf87b3716f7103ee5410456972db36f4b3ada )
Co-authored-by: Jessica Temporal <jtemporal@users.noreply.github.com>
Miss Islington (bot) [Mon, 19 May 2025 14:39:05 +0000 (16:39 +0200)]
[3.14] gh-134158: Fix PyREPL coloring of double braces in f/t-strings (gh-134159) (#134227)
Co-authored-by: Loïc Simon <loic.pano@gmail.com>
Co-authored-by: Loïc Simon <loic.simon@napta.io>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Mon, 19 May 2025 14:13:44 +0000 (16:13 +0200)]
[3.14] gh-134097: Print number of refs & blocks after each statement in new REPL (gh-134136) (gh-134220)
(cherry picked from commit
c31547a5914db93b8b38c6a5261ef716255f3582 )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Mon, 19 May 2025 13:49:46 +0000 (15:49 +0200)]
[3.14] gh-122055: Clarify documentation for empty matches in RE (GH-133169) (GH-134217)
(cherry picked from commit
44b73d3cd4466e148460883acf4494124eae8c91 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 19 May 2025 11:26:27 +0000 (13:26 +0200)]
[3.14] gh-133999: Fix `except` parsing regression in 3.14 (GH-134035) (#134206)
gh-133999: Fix `except` parsing regression in 3.14 (GH-134035)
(cherry picked from commit
84914ad0e5f96f0ca7238f3b4bc7fc4e50b1abb3 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Mon, 19 May 2025 09:59:58 +0000 (11:59 +0200)]
[3.14] gh-76023: Make os.path.realpath to ignore WinError 1005 in non-strict mode (GH-128328) (GH-134203)
(cherry picked from commit
d55e11b8049e3abf3cc187b4958224b225a39897 )
Co-authored-by: BecoKo <koev_v@yahoo.com>
Stan Ulbrych [Sun, 18 May 2025 19:33:14 +0000 (20:33 +0100)]
[3.14] gh-134060: Don't create a certain symlink in venv if platform does not support it (GH-134061)
Miss Islington (bot) [Sun, 18 May 2025 19:16:37 +0000 (21:16 +0200)]
[3.14] gh-133889: Only show the path of the URL in the SimpleHTTPRequestHandler page (GH-134135) (GH-134190)
The query and fragment are ambiguous and not used.
(cherry picked from commit
5cbc8c632e860941602e8f7da9aab52fae40aca6 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 18 May 2025 16:34:19 +0000 (18:34 +0200)]
[3.14] document `Py_VISIT` as a macro in the docs (GH-133688) (#134186)
document `Py_VISIT` as a macro in the docs (GH-133688)
(cherry picked from commit
bb32f3c698f5192dddd2d2f33c7c0a3d05afc223 )
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Miss Islington (bot) [Sun, 18 May 2025 16:29:03 +0000 (18:29 +0200)]
[3.14] fix indent in `controlflow.rst` docs (GH-134008) (#134184)
fix indent in `controlflow.rst` docs (GH-134008)
(cherry picked from commit
4ce91871a9077fcf8806d6fd79bdb32af9587306 )
Co-authored-by: Yongzi Li <1538321957@qq.com>
Miss Islington (bot) [Sun, 18 May 2025 15:29:19 +0000 (17:29 +0200)]
[3.14] gh-134144: Fix use-after-free in zapthreads() (GH-134145) (#134182)
gh-134144: Fix use-after-free in zapthreads() (GH-134145)
(cherry picked from commit
f2de1e6861c27bd498f598efc01600450979b5f9 )
Co-authored-by: b-pass <b-pass@users.noreply.github.com>
Miss Islington (bot) [Sun, 18 May 2025 15:08:40 +0000 (17:08 +0200)]
[3.14] gh-134100: Fix use-after-free in `PyImport_ImportModuleLevelObject` (GH-134117) (#134171)
gh-134100: Fix use-after-free in `PyImport_ImportModuleLevelObject` (GH-134117)
(cherry picked from commit
4e9005d32ff466925f40af410f2ea6bf2329bcf8 )
Co-authored-by: Nico-Posada <102486290+Nico-Posada@users.noreply.github.com>
Miss Islington (bot) [Sun, 18 May 2025 01:54:00 +0000 (03:54 +0200)]
[3.14] gh-134150: Clarify distinction between JSON and Python objects (GH-134154) (#134166)
gh-134150: Clarify distinction between JSON and Python objects (GH-134154)
* gh-134150: Clarify distinction between JSON objects and Python objects in json module docs
* Revert change to JSON introduction
* Clarify occurrences of "object literal" as JSON
(cherry picked from commit
fa4e088668d4a41f9be5babe7edd5409290ee92a )
Co-authored-by: Micha Albert <micha@2231puppy.tech>
Miss Islington (bot) [Sat, 17 May 2025 22:50:00 +0000 (00:50 +0200)]
[3.14] gh-134064: Fix sys.remote_exec() error checking (GH-134067) (#134162)
gh-134064: Fix sys.remote_exec() error checking (GH-134067)
(cherry picked from commit
009e7b36981fd07f7cca1fdcfcf172ce1584fac7 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Sat, 17 May 2025 19:48:54 +0000 (21:48 +0200)]
[3.14] gh-134119: Fix crash from calling next() on exhausted template iterator (GH-134120) (#134153)
gh-134119: Fix crash from calling next() on exhausted template iterator (GH-134120)
(cherry picked from commit
fc7f4c36664314393bd4c30355e21bd7aeac524d )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Sat, 17 May 2025 13:17:23 +0000 (15:17 +0200)]
[3.14] gh-88275: Add missing `__init__` method to `match` example (GH-120281) (#134142)
gh-88275: Add missing `__init__` method to `match` example (GH-120281)
(cherry picked from commit
7a9d46295a497669eaa6e647c33ab71c8cf620a1 )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Miss Islington (bot) [Sat, 17 May 2025 12:03:33 +0000 (14:03 +0200)]
[3.14] Docs: fix spelling of "test case" in `unittest` documentation (GH-134137) (#134138)
Docs: fix spelling of "test case" in `unittest` documentation (GH-134137)
(cherry picked from commit
b41d79c776af4bfa5d28fc2036c9137978294b6a )
Co-authored-by: Clifford Gama <53076065+cliff688@users.noreply.github.com>
Miss Islington (bot) [Sat, 17 May 2025 09:04:42 +0000 (11:04 +0200)]
[3.14] Docs: C API: Improve documentation around non-Python threads with subinterpreters (GH-131087) (GH-134130)
Docs: C API: Improve documentation around non-Python threads with subinterpreters (GH-131087)
(cherry picked from commit
af6b3b825f3b653ffdb29fc1dd36de8acfe0a641 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Sat, 17 May 2025 08:06:04 +0000 (10:06 +0200)]
[3.14] gh-113878: fix `versionadded` in `dataclasses.field()` documentation (GH-134065) (#134128)
gh-113878: fix `versionadded` in `dataclasses.field()` documentation (GH-134065)
(cherry picked from commit
9d73875072e20bf3cc87cadc553d6a6fb4f71df5 )
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
Miss Islington (bot) [Sat, 17 May 2025 08:05:47 +0000 (10:05 +0200)]
[3.14] gh-133881: add forward reference to `list.sort()` in lambda expression tutorial (GH-133910) (#134126)
gh-133881: add forward reference to `list.sort()` in lambda expression tutorial (GH-133910)
(cherry picked from commit
c1c9ad1d5a62a591eb2f0f0d29f3fa02e0949f14 )
Co-authored-by: Oleg Burnaev <51371645+Shepard2154@users.noreply.github.com>
Miss Islington (bot) [Sat, 17 May 2025 07:37:43 +0000 (09:37 +0200)]
[3.14] gh-134098: Fix handling %-encoded trailing slash in SimpleHTTPRequestHandler (GH-134099) (GH-134123)
(cherry picked from commit
2f1ecb3bc474a5895dce090cca7b8afe7b560040 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 17 May 2025 07:27:38 +0000 (09:27 +0200)]
[3.14] gh-133889: Improve tests for SimpleHTTPRequestHandler (GH-134102) (GH-134121)
(cherry picked from commit
fcaf009907fc39d604907315155c1f1de811dd88 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 16 May 2025 20:56:24 +0000 (22:56 +0200)]
[3.14] gh-134109: Fix showing comments in pydoc output for argparse (GH-134110) (GH-134112)
Comments immediately preceding the object's source code are used
if the object has no docstring.
Comments that do not describe the object should be separated from
the following source code by an empty line.
(cherry picked from commit
71cf4dd622832848cace358a7f8444243afd2e83 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 16 May 2025 19:23:52 +0000 (21:23 +0200)]
[3.14] gh-117026: Remove outdated sentence in SimpleHTTPRequestHandler docs (GH-117027) (GH-134107)
The code was changed in
0f7cddc308b297e6a1c2dd61503acea38401656f (bpo-839496/gh-39531).
(cherry picked from commit
ea2d707bd59963bd4f53407108026930ff12ae56 )
Co-authored-by: Saleh Dehqanpour <salehdeh76@gmail.com>
Miss Islington (bot) [Fri, 16 May 2025 19:20:47 +0000 (21:20 +0200)]
[3.14] gh-133286: add explanation about `seq` for pathlib Pattern Language (GH-133340) (#134105)
gh-133286: add explanation about `seq` for pathlib Pattern Language (GH-133340)
(cherry picked from commit
ac8df4b5892d2e4bd99731e7d87223a35c238f81 )
Co-authored-by: alexey semenyuk <alexsemenyuk88@gmail.com>
Miss Islington (bot) [Fri, 16 May 2025 15:37:01 +0000 (17:37 +0200)]
[3.14] gh-133515: fix docs for unawaited coroutines in debug mode (GH-134081) (#134093)
gh-133515: fix docs for unawaited coroutines in debug mode (GH-134081)
(cherry picked from commit
d94b1e9cac82143048031530e6c51e59f597bccd )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Fri, 16 May 2025 12:29:40 +0000 (14:29 +0200)]
[3.14] gh-124210: Add introduction to `threading` docs (GH-127046) (#134090)
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Fri, 16 May 2025 12:26:37 +0000 (14:26 +0200)]
[3.14] gh-132388: test HACL* and OpenSSL hash functions in pure Python HMAC (GH-134051) (#134089)
gh-132388: test HACL* and OpenSSL hash functions in pure Python HMAC (GH-134051)
(cherry picked from commit
73d71a416fb05b64c2b43fade5d781a1fa0cb2cd )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Fri, 16 May 2025 10:49:08 +0000 (12:49 +0200)]
[3.14] gh-134069: bump HACL* revision to incoporate `memset_s` (GH-134027) (#134084)
Bumps the HACL* revision to include recent revisions that corrects issues
building with legacy/cross-platform macOS SDKs.
(cherry picked from commit
1566c34dc76ec6139e6827fbab6d76e084a63d9d )
Signed-off-by: aeiouaeiouaeiouaeiouaeiouaeiou <aeioudev@outlook.com>
Co-authored-by: aeiouaeiouaeiouaeiouaeiouaeiou <aeioudev@outlook.com>
Miss Islington (bot) [Fri, 16 May 2025 10:04:24 +0000 (12:04 +0200)]
[3.14] gh-130000: Release the GIL in winreg when doing Windows API calls (GH-130001) (#134072)
gh-130000: Release the GIL in winreg when doing Windows API calls (GH-130001)
(cherry picked from commit
7a504b3d5da98874536834481539c19ba4a265af )
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Miss Islington (bot) [Thu, 15 May 2025 21:18:26 +0000 (23:18 +0200)]
Improve the administrative install docs for Python Install Manager (GH-134066)
(cherry picked from commit
6a2296329117463fd09abc73656f1d7b48076100 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Thu, 15 May 2025 15:41:37 +0000 (17:41 +0200)]
[3.14] gh-77065: Use `putwch` instead of `putch` in `getpass.win_getpass` (GH-134058) (#134059)
gh-77065: Use `putwch` instead of `putch` in `getpass.win_getpass` (GH-134058)
(cherry picked from commit
52a7a22a6b85a470e993b3399b0ee043e5c3596e )
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Miss Islington (bot) [Thu, 15 May 2025 13:37:41 +0000 (15:37 +0200)]
[3.14] gh-133410: Fix PR detection in build workflow (GH-133671) (#134055)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Thu, 15 May 2025 13:34:50 +0000 (15:34 +0200)]
[3.14] gh-77065: add missing parameter `echo_char` in `getpass.fallback_getpass` (GH-133849) (#134053)
gh-77065: add missing parameter `echo_char` in `getpass.fallback_getpass` (GH-133849)
(cherry picked from commit
d029a1a1cba515510f31c9e88b7c2a6b7ebee2a7 )
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Miss Islington (bot) [Thu, 15 May 2025 09:39:20 +0000 (11:39 +0200)]
[3.14] gh-133403: Check `Tools/build/deepfreeze.py` with mypy (GH-133802) (#134038)
gh-133403: Check `Tools/build/deepfreeze.py` with mypy (GH-133802)
(cherry picked from commit
7eaa09739059aaac4812395f8d6bb586af8eadcc )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Thu, 15 May 2025 07:47:24 +0000 (09:47 +0200)]
[3.14] Test also error messages in test_limit_int. (GH-134018) (GH-134033)
(cherry picked from commit
e123a1d09bcb75aae0c53d9d732de5d9a1252efe )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 15 May 2025 06:39:39 +0000 (08:39 +0200)]
[3.14] gh-133970: Make PEP750 types generic (GH-133976) (#134029)
gh-133970: Make PEP750 types generic (GH-133976)
(cherry picked from commit
c3a1da5b9397867e6b3169dd17cb33ef2898da4a )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Thu, 15 May 2025 01:32:45 +0000 (03:32 +0200)]
[3.14] gh-133986: Document string split algorithm when sep is None and maxsplit is 0 (GH-133987) (#133993)
---------
(cherry picked from commit
3e23047363f384b7254b7af51afe4e353be94167 )
Co-authored-by: Joey Smith <joeysmith@gmail.com>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Miss Islington (bot) [Wed, 14 May 2025 18:18:04 +0000 (20:18 +0200)]
[3.14] Improve tests for str to Fraction conversion (GH-134010) (GH-134016)
(cherry picked from commit
17d0fec702e43e27a9c3f37f8abe06a19b656bed )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 14 May 2025 15:22:07 +0000 (17:22 +0200)]
[3.14] Docs: remove link elements in builders other than HTML (GH-133720) (#134005)
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Miss Islington (bot) [Wed, 14 May 2025 13:54:29 +0000 (15:54 +0200)]
[3.14] gh-133701: Fix incorrect `__annotations__` on TypedDict defined under PEP 563 (GH-133772) (#134003)
gh-133701: Fix incorrect `__annotations__` on TypedDict defined under PEP 563 (GH-133772)
(cherry picked from commit
9836503b48e047db117b3bef3a812c40ed3e988a )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Wed, 14 May 2025 12:39:43 +0000 (14:39 +0200)]
[3.14] gh-132983: Style improvements for `compression.zstd` (GH-133547) (#134001)
gh-132983: Style improvements for `compression.zstd` (GH-133547)
(cherry picked from commit
b44c824856a351472a9627da066bfbde9d8ae64e )
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 14 May 2025 08:19:47 +0000 (10:19 +0200)]
[3.14] Remove trailing whitespace from python.gram (GH-133858) (#133990)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 14 May 2025 07:11:38 +0000 (09:11 +0200)]
[3.14] gh-132641: fix race in `lru_cache` under free-threading (GH-133787) (#133979)
gh-132641: fix race in `lru_cache` under free-threading (GH-133787)
Fix race in `lru_cache` by acquiring critical section on the cache object itself and call the lock held variant of dict functions to modify the underlying dict.
(cherry picked from commit
9ad0c7b0f14c5fcda6bfae6692c88abb95502d38 )
Co-authored-by: Peter Hawkins <phawkins@google.com>
Miss Islington (bot) [Tue, 13 May 2025 16:10:59 +0000 (18:10 +0200)]
[3.14] gh-132983: Fix small issues with zstd support in zipfile (GH-133723) (#133974)
gh-132983: Fix small issues with zstd support in zipfile (GH-133723)
(cherry picked from commit
35f47d05893e012e9f2b145b934c1d8c61d2bb7d )
Co-authored-by: Carey Metcalfe <carey@cmetcalfe.ca>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Miss Islington (bot) [Tue, 13 May 2025 16:06:29 +0000 (18:06 +0200)]
gh-133928: Improvements to using/windows.rst (GH-133952)
(cherry picked from commit
fc3cddd90a1674a71c1abe6a78dde14c935b1de4 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Tue, 13 May 2025 13:58:25 +0000 (15:58 +0200)]
[3.14] gh-133968: Add fast path to PyUnicodeWriter_WriteStr() (GH-133969) (#133971)
gh-133968: Add fast path to PyUnicodeWriter_WriteStr() (GH-133969)
Don't call PyObject_Str() if the input type is str.
(cherry picked from commit
fe9f6e829a535747b1e06d9bfda033a9a47165ed )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 13 May 2025 13:25:08 +0000 (15:25 +0200)]
[3.14] gh-133767: Fix use-after-free in the unicode-escape decoder with an error handler (GH-129648) (GH-133942)
If the error handler is used, a new bytes object is created to set as
the object attribute of UnicodeDecodeError, and that bytes object then
replaces the original data. A pointer to the decoded data will became invalid
after destroying that temporary bytes object. So we need other way to return
the first invalid escape from _PyUnicode_DecodeUnicodeEscapeInternal().
_PyBytes_DecodeEscape() does not have such issue, because it does not
use the error handlers registry, but it should be changed for compatibility
with _PyUnicode_DecodeUnicodeEscapeInternal().
(cherry picked from commit
9f69a58623bd01349a18ba0c7a9cb1dad6a51e8e )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 13 May 2025 09:23:39 +0000 (11:23 +0200)]
[3.14] gh-133886: Fix sys.remote_exec() for non-UTF-8 paths (GH-133887) (GH-133963)
It now supports non-ASCII paths in non-UTF-8 locales and
non-UTF-8 paths in UTF-8 locales.
(cherry picked from commit
c09cec5d69f2ef6ab5e64c7e0579fbd9dcb2ca45 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 13 May 2025 08:27:17 +0000 (10:27 +0200)]
[3.14] gh-133885: skip `test_compress_locking` in `test_zstd` (GH-133943) (#133949)
gh-133885: skip `test_compress_locking` in `test_zstd` (GH-133943)
(cherry picked from commit
e8665d4d46921623745ca5d2b32dc576339ea53f )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Mon, 12 May 2025 22:37:55 +0000 (00:37 +0200)]
[3.14] gh-132775: Add _PyFunction_GetXIData() (gh-133955)
(cherry picked from commit
8cf4947b0f , AKA gh-133481)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Miss Islington (bot) [Mon, 12 May 2025 19:49:44 +0000 (21:49 +0200)]
[3.14] gh-132983: Fix compiler warning about unused function ``mt_continue_should_break()`` (GH-133947) (#133950)
gh-132983: Fix compiler warning about unused function ``mt_continue_should_break()`` (GH-133947)
(cherry picked from commit
121ed71f4e395948d313249b2ad33e1e21581f8a )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Mon, 12 May 2025 18:23:35 +0000 (20:23 +0200)]
[3.14] gh-133413: Fix references to removed Request.has_data (GH-133414) (GH-133945)
The has_data() method of http.request.Request
was removed in version 3.4.
(cherry picked from commit
86c1d439e0ccbe6baeda69322f1f8c0e6a80464c )
Co-authored-by: ppaez <pp@pp.com.mx>
Miss Islington (bot) [Mon, 12 May 2025 17:54:07 +0000 (19:54 +0200)]
[3.14] gh-133653: Fix argparse.ArgumentParser with the formatter_class argument (GH-133813) (GH-133941)
* Fix TypeError when formatter_class is a custom subclass of
HelpFormatter.
* Fix TypeError when formatter_class is not a subclass of
HelpFormatter and non-standard prefix_char is used.
* Fix support of colorizing when formatter_class is not a subclass of
HelpFormatter.
* Remove the prefix_chars parameter of HelpFormatter.
(cherry picked from commit
734e15b70dc044f57df4049a22dd769dffdb7d18 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 12 May 2025 16:41:40 +0000 (18:41 +0200)]
[3.14] gh-133677: Fix tests when running in non-UTF-8 locale (GH-133865) (GH-133938)
(cherry picked from commit
14305a83d381ccdcae814abd9e2c28dda066720b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 12 May 2025 15:50:10 +0000 (17:50 +0200)]
[3.14] gh-133925: Make typing._UnionGenericAlias hashable (GH-133929) (#133936)
gh-133925: Make typing._UnionGenericAlias hashable (GH-133929)
(cherry picked from commit
8d478c79539ed0ec7071766b7a0afe62fb11f7d4 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Mon, 12 May 2025 12:53:44 +0000 (14:53 +0200)]
[3.14] gh-133904: Fix `math.factorial` documentation (GH-133907) (#133918)
gh-133904: Fix `math.factorial` documentation (GH-133907)
(cherry picked from commit
27ed64575d34f04029ba1d353810f3db4f4f045b )
Co-authored-by: mkaraev <maruf.karaev97@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Mon, 12 May 2025 12:02:21 +0000 (14:02 +0200)]
[3.14] gh-91555: disable logger while handling log record (GH-131812) (GH-133899)
Prevent the possibility of re-entrancy leading to deadlock or infinite recursion (caused by logging triggered by logging), by disabling logging while the logger is handling log messages.
(cherry picked from commit
2561e148ec985755baa3984b91fd0bfc089b283c )
Co-authored-by: Duane Griffin <duaneg@dghda.com>
Miss Islington (bot) [Mon, 12 May 2025 09:38:07 +0000 (11:38 +0200)]
[3.14] gh-133744: Fix multiprocessing interrupt test: add an event (GH-133746) (#133916)
gh-133744: Fix multiprocessing interrupt test: add an event (GH-133746)
Add an event to synchronize the parent process with the child
process: wait until the child process starts sleeping.
(cherry picked from commit
c2989b7070b18c0b7c51521fed8bc11c159ea5b8 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Sun, 11 May 2025 15:49:21 +0000 (17:49 +0200)]
[3.14] gh-119180: annotationlib: Fix values of Format members in docs (GH-133841) (#133903)
gh-119180: annotationlib: Fix values of Format members in docs (GH-133841)
(cherry picked from commit
0eb448cae5e9008f815204d8b46bfd7cd641a152 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Sun, 11 May 2025 15:49:06 +0000 (17:49 +0200)]
[3.14] gh-119180: More documentation for PEP 649/749 (GH-133552) (#133902)
gh-119180: More documentation for PEP 649/749 (GH-133552)
The SC asked that the Appendix in PEP-749 be added to the docs.
(cherry picked from commit
3396df56d0849e5154cb7d7d1c525df834bbe15e )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sun, 11 May 2025 15:25:43 +0000 (17:25 +0200)]
[3.14] gh-133893: asyncio.graph: Replace TextIO annotation with io.Writer (GH-133894) (#133901)
gh-133893: asyncio.graph: Replace TextIO annotation with io.Writer (GH-133894)
(cherry picked from commit
1d3eacedb8cc51256a5350c6d421fb85e2b21f18 )
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Miss Islington (bot) [Sun, 11 May 2025 08:44:22 +0000 (10:44 +0200)]
[3.14] gh-133590: ensure that `TableEntry.linenumber_borrow` is initialized (GH-133681) (#133872)
gh-133590: ensure that `TableEntry.linenumber_borrow` is initialized (GH-133681)
(cherry picked from commit
c838e21fda21bb3ff91f586374e0da776c1c567b )
Co-authored-by: Lauta <ljfp@ljfp.xyz>
Miss Islington (bot) [Sun, 11 May 2025 08:16:28 +0000 (10:16 +0200)]
[3.14] gh-133823: update "Pending Removal in 3.15" notes about `TypedDict` (GH-133864) (#133870)
gh-133823: update "Pending Removal in 3.15" notes about `TypedDict` (GH-133864)
(cherry picked from commit
f91127ae1a8bb233aa23b449e87da6df763f85b2 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Sun, 11 May 2025 07:34:15 +0000 (09:34 +0200)]
gh-133703: dict: fix calculate_log2_keysize() (GH-133809)
(cherry picked from commit
92337f666e8a076a68305a8d6dc8bc9c095000e9 )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Sun, 11 May 2025 02:30:55 +0000 (04:30 +0200)]
[3.14] gh-132983: Remove leftovers from EndlessZstdDecompressor (GH-133856) (#133859)
gh-132983: Remove leftovers from EndlessZstdDecompressor (GH-133856)
(cherry picked from commit
878e0fb8b43de62449b6d7974fb503498e1c0cf7 )
Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Sat, 10 May 2025 23:02:44 +0000 (01:02 +0200)]
[3.14] gh-132983: Make zstd types immutable (GH-133784) (#133857)
gh-132983: Make zstd types immutable (GH-133784)
(cherry picked from commit
1a87b6e9ae6da255f30465ed59a78913ebf2e898 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sat, 10 May 2025 22:25:42 +0000 (00:25 +0200)]
[3.14] gh-133336: Remove comment about reserved -J in ``initconfig.c`` (GH-133821) (#133855)
Miss Islington (bot) [Sat, 10 May 2025 21:51:11 +0000 (23:51 +0200)]
[3.14] gh-132983: Reduce the size of ``_zstdmodule.h`` (GH-133793) (#133854)
gh-132983: Reduce the size of ``_zstdmodule.h`` (GH-133793)
(cherry picked from commit
1a548c0a50641aa3358966e0949d29bcfa9dd480 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sat, 10 May 2025 18:38:14 +0000 (20:38 +0200)]
[3.14] Add classmethod to setUpClass in test_pdb (GH-133840) (#133846)
Add classmethod to setUpClass in test_pdb (GH-133840)
(cherry picked from commit
4f2f780d534962261dcc7813e50d0dcb413a1d3c )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Sat, 10 May 2025 18:02:23 +0000 (20:02 +0200)]
[3.14] gh-86155: Fix data loss after unclosed script or style tag in HTMLParser (GH-22658) (GH-133844)
When calling .close() the HTMLParser should flush all remaining content,
even when that content is in an unclosed script or style tag.
(cherry picked from commit
53383e90e4df7029f792b7aa81aa2e4cff348ed0 )
Co-authored-by: Waylan Limberg <waylan.limberg@icloud.com>
Miss Islington (bot) [Sat, 10 May 2025 16:44:07 +0000 (18:44 +0200)]
[3.14] gh-133783: Fix __replace__ on AST nodes for optional attributes (GH-133797) (#133842)
gh-133783: Fix __replace__ on AST nodes for optional attributes (GH-133797)
(cherry picked from commit
7dddb4e667b5eb76cbe11755051ec139b0f437a9 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Sat, 10 May 2025 16:00:36 +0000 (18:00 +0200)]
[3.14] gh-132642: document how to render human-readable `timedelta` objects (GH-133825) (#133837)
gh-132642: document how to render human-readable `timedelta` objects (GH-133825)
(cherry picked from commit
efcc42ba70fb09333a2be16401da731662e2984b )
Co-authored-by: Kentaro Jay Takahashi <64148935+KentaroJay@users.noreply.github.com>
Miss Islington (bot) [Sat, 10 May 2025 15:55:47 +0000 (17:55 +0200)]
[3.14] gh-117088: Fix AIX build (GH-132595) (GH-133838)
(cherry picked from commit
47f1722d8053fb4f79e68cba07cbf08fb58a511c )
Co-authored-by: Ayappan Perumal <ayappap2@in.ibm.com>
Miss Islington (bot) [Sat, 10 May 2025 14:58:23 +0000 (16:58 +0200)]
[3.14] gh-77057: Fix handling of invalid markup declarations in HTMLParser (GH-9295) (GH-133833)
(cherry picked from commit
76c0b01bc401c3e976011bbc69cec56dbebe0ad5 )
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>