]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Mon, 2 Sep 2024 11:11:06 +0000 (13:11 +0200)]
[3.13] gh-111495: Add tests for PyNumber C API (GH-111996) (#123375)
gh-111495: Add tests for PyNumber C API (GH-111996)
(cherry picked from commit
2f20f5a9bc7dafdb3c2ae723da90eca1727a95f7 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Mon, 2 Sep 2024 11:10:27 +0000 (13:10 +0200)]
[3.13] GH-122298: Restore printing of GC stats (GH-123261) (#123268)
GH-122298: Restore printing of GC stats (GH-123261)
(cherry picked from commit
7cd3aa42f0cf72bf9a214e2630850879fe078377 )
Co-authored-by: Mark Shannon <mark@hotpy.org>
Miss Islington (bot) [Mon, 2 Sep 2024 11:10:09 +0000 (13:10 +0200)]
[3.13] gh-123213: Fixed xml.etree.ElementTree.Element.extend and assignment to no longer hide exceptions (GH-123214) (#123257)
gh-123213: Fixed xml.etree.ElementTree.Element.extend and assignment to no longer hide exceptions (GH-123214)
(cherry picked from commit
90b6d0e0f8f07d7443695e14a18488cb499d3b4d )
Co-authored-by: Bar Harel <bharel@barharel.com>
Miss Islington (bot) [Mon, 2 Sep 2024 11:09:17 +0000 (13:09 +0200)]
[3.13] gh-85110: Preserve relative path in URL without netloc in urllib.parse.urlunsplit() (GH-123179) (#123187)
gh-85110: Preserve relative path in URL without netloc in urllib.parse.urlunsplit() (GH-123179)
(cherry picked from commit
90c892efeaae28bd849a01b42842f19dcd67b9f4 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 2 Sep 2024 11:07:08 +0000 (13:07 +0200)]
[3.13] gh-122981: Fix inspect.getsource() for generated classes with Python base classes (GH-123001) (#123182)
gh-122981: Fix inspect.getsource() for generated classes with Python base classes (GH-123001)
Look up __firstlineno__ only in the class' dict, without searching in
base classes.
(cherry picked from commit
f88c14d412522587085ae039ebe70b91d5b4e226 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Mon, 2 Sep 2024 11:03:04 +0000 (14:03 +0300)]
[3.13] gh-122688: Fix support of var-positional parameter in Argument Clinic (GH-122689) (#122852)
* Parameters after the var-positional parameter are now keyword-only
instead of positional-or-keyword.
* Correctly calculate min_kw_only.
* Raise errors for invalid combinations of the var-positional parameter
with "*", "/" and deprecation markers.
(cherry picked from commit
8393608dd9f157ae25ee44777541e62fa80a6d82 )
Miss Islington (bot) [Mon, 2 Sep 2024 10:59:15 +0000 (12:59 +0200)]
[3.13] gh-122798: Make tests for warnings in the re module more strict (GH-122799) (#122804)
gh-122798: Make tests for warnings in the re module more strict (GH-122799)
* Test warning messages.
* Test stack level for re.compile() and re.findall().
(cherry picked from commit
d2e5be1f39bc3d48c7bc8c146c4bcadee266672a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 2 Sep 2024 10:58:53 +0000 (12:58 +0200)]
[3.13] gh-100256: Skip inaccessible registry keys in the WinAPI mimetype implementation (GH-122047) (#122786)
gh-100256: Skip inaccessible registry keys in the WinAPI mimetype implementation (GH-122047)
(cherry picked from commit
0bd93755f37e6b8beb597787fce39eb141179965 )
Co-authored-by: Lucas Esposito <LucasEsposito@users.noreply.github.com>
Miss Islington (bot) [Mon, 2 Sep 2024 10:55:16 +0000 (12:55 +0200)]
[3.13] gh-121151: argparse: Fix wrapping of long usage text of arguments inside a mutually exclusive groups (GH-121159) (#122777)
gh-121151: argparse: Fix wrapping of long usage text of arguments inside a mutually exclusive groups (GH-121159)
(cherry picked from commit
013a0929750ed2b46ae990b59d02e3db84337474 )
Co-authored-by: Ali Hamdan <ali.hamdan.dev@gmail.com>
Miss Islington (bot) [Mon, 2 Sep 2024 10:53:59 +0000 (12:53 +0200)]
[3.13] gh-79846: Make ssl.create_default_context() ignore invalid certificates (GH-91740) (#122768)
gh-79846: Make ssl.create_default_context() ignore invalid certificates (GH-91740)
An error in one certificate should not cause the whole thing to fail.
(cherry picked from commit
9e551f9b351440ebae79e07a02d0e4a1b61d139e )
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 2 Sep 2024 10:52:21 +0000 (12:52 +0200)]
[3.13] gh-122571: Remove duplicate definition of PY_BUILTIN_HASHLIB_HASHES in configure.ac (GH-122572) (#122763)
gh-122571: Remove duplicate definition of PY_BUILTIN_HASHLIB_HASHES in configure.ac (GH-122572)
The redefinition in confdefs.h can cause issues with the
AX_CHECK_COMPILE_FLAG macro.
(cherry picked from commit
b5e142ba7c2063efe9bb8065c3b0bad33e2a9afa )
Co-authored-by: Jonathan Protzenko <protz@microsoft.com>
Miss Islington (bot) [Mon, 2 Sep 2024 10:50:39 +0000 (12:50 +0200)]
[3.13] gh-120083: Add IDLE Hovertip foreground color needed for recent macOS (GH-120605) (#122739)
gh-120083: Add IDLE Hovertip foreground color needed for recent macOS (GH-120605)
On recent versions of macOS (sometime between Catalina and Sonoma 14.5), the default Hovertip foreground color changed from black to white, thereby matching the background. This might be a matter of matching the white foreground of the dark-mode text. The unreadable result is shown here (GH-120083 (comment)).
The foreground and background colors were made parameters so we can pass different colors for future additional hovertips in IDLE.
---------
(cherry picked from commit
5a7f7c48644baf82988f30bcb43e03dcfceb75dd )
Co-authored-by: John Riggles <jriggles@icloud.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 2 Sep 2024 10:48:20 +0000 (12:48 +0200)]
[3.13] GH-121970: Fix ``gettext`` for audit events (GH-122651) (#122653)
GH-121970: Fix ``gettext`` for audit events (GH-122651)
(cherry picked from commit
95f5c89b545beaafad73f05a695742da3e90bc41 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Mon, 2 Sep 2024 10:47:18 +0000 (12:47 +0200)]
[3.13] gh-122527: Fix a crash on deallocation of `PyStructSequence` (GH-122577) (#122625)
gh-122527: Fix a crash on deallocation of `PyStructSequence` (GH-122577)
The `PyStructSequence` destructor would crash if it was deallocated after
its type's dictionary was cleared by the GC, because it couldn't compute
the "real size" of the instance. This could occur with relatively
straightforward code in the free-threaded build or with a reference
cycle involving the type in the default build, due to differing orders
in which `tp_clear()` was called.
Account for the non-sequence fields in `tp_basicsize` and use that,
along with `Py_SIZE()`, to compute the "real" size of a
`PyStructSequence` in the dealloc function. This avoids the accesses to
the type's dictionary during dealloc, which were unsafe.
(cherry picked from commit
4b63cd170e5dd840bffc80922f09f2d69932ff5c )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Alex Waygood [Mon, 2 Sep 2024 10:44:42 +0000 (11:44 +0100)]
[3.13] Fix typos in docs, error messages and comments (#122502) (#122606)
Fix typos in docs, error messages and comments (#122502)
(cherry-picked from commit
46f5a4f9e1781ad8d60eb53bbaf6cd8534a286cd )
Signed-off-by: jianghuyiyuan <shuangcui@live.com>
Co-authored-by: jianghuyiyuan <shuangcui@live.com>
Miss Islington (bot) [Mon, 2 Sep 2024 05:16:01 +0000 (07:16 +0200)]
[3.13] gh-109975: Remove dangling angle bracket from 3.13.rst (GH-123589) (#123590)
(cherry picked from commit
9a32a2588e1e25ccfd53edcdb381bd332ea2da41 )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Mon, 2 Sep 2024 01:27:48 +0000 (03:27 +0200)]
[3.13] Remove irrelevant detail from example code. (gh-123587) (gh-123588)
Miss Islington (bot) [Sun, 1 Sep 2024 23:08:21 +0000 (01:08 +0200)]
[3.13] Simplify Property() recipe to focus on the essentials (gh-123585) (gh-123586)
Miss Islington (bot) [Sun, 1 Sep 2024 15:19:56 +0000 (17:19 +0200)]
[3.13] gh-91126: Docs and tests for slotted dataclasses with `__init_subclass__` (GH-123342) (#123568)
gh-91126: Docs and tests for slotted dataclasses with `__init_subclass__` (GH-123342)
(cherry picked from commit
75e72822a390df81ca11355d8e0aac88e4046c27 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Sun, 1 Sep 2024 07:38:20 +0000 (09:38 +0200)]
[3.13] gh-123550: Fix code snippet of `BUILD_TUPLE` in `dis` docs (GH-123551) (#123555)
Miss Islington (bot) [Sun, 1 Sep 2024 06:03:57 +0000 (08:03 +0200)]
[3.13] GH-109975: Copyedit 3.13 What's New: Removals (GH-123529) (#123552)
GH-109975: Copyedit 3.13 What's New: Removals (GH-123529)
(cherry picked from commit
0ff59d707ce33c2fd7390d473a5779a3d16a5764 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Sun, 1 Sep 2024 05:41:10 +0000 (07:41 +0200)]
[3.13] gh-123494: Improve documentation for ``webbrowser`` return types (GH-123495) (#123548)
gh-123494: Improve documentation for ``webbrowser`` return types (GH-123495)
Document the return value for ``webbrowser.open*()``.
(cherry picked from commit
0b6acfee04b30e7993314723c614625ddd90ae6e )
Co-authored-by: Aarni Koskela <akx@iki.fi>
Miss Islington (bot) [Sat, 31 Aug 2024 14:39:15 +0000 (16:39 +0200)]
[3.13] Enable colour for doctest on GitHub Actions (GH-123536) (#123538)
Enable colour for doctest on GitHub Actions (GH-123536)
(cherry picked from commit
0cba289870d5cd41f24b2f63b9480e4593aa2330 )
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Sat, 31 Aug 2024 06:49:08 +0000 (08:49 +0200)]
[3.13] gh-123407: Enable translating literal and code blocks (GH-123408) (#123530)
gh-123407: Enable translating literal and code blocks (GH-123408)
(cherry picked from commit
5332d989af45378e6ae99aeda72bfa82042b8659 )
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Wei-Hsiang (Matt) Wang [Fri, 30 Aug 2024 17:14:48 +0000 (01:14 +0800)]
[3.13] gh-123492: Remove unnecessary `:func:` parentheses (gh-123493) (#123513)
Miss Islington (bot) [Fri, 30 Aug 2024 12:05:50 +0000 (14:05 +0200)]
[3.13] gh-123484: Fix the debug offsets for PyLongObject (GH-123485) (#123499)
Miss Islington (bot) [Thu, 29 Aug 2024 16:55:56 +0000 (18:55 +0200)]
[3.13] gh-101860: document `property.__name__` (GH-123399) (#123428)
(cherry picked from commit
40fff90ae3d46843bb9d27c6a53ef61c861a3bb4 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Thu, 29 Aug 2024 09:44:54 +0000 (11:44 +0200)]
[3.13] gh-122136: test_asyncio: Don't fail if the kernel buffers more data than advertised (GH-123423) (#123443)
gh-122136: test_asyncio: Don't fail if the kernel buffers more data than advertised (GH-123423)
(cherry picked from commit
b379f1b26c1e89c8e9160b4dede61b980cc77be6 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Thu, 29 Aug 2024 01:57:28 +0000 (03:57 +0200)]
[3.13] gh-123448: Move `_PyNoDefault_Type` to the static types array (GH-123449) (#123450)
(cherry picked from commit
c9930f5022f5e7a290896522280e47a1fecba38a )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Irit Katriel [Wed, 28 Aug 2024 17:41:22 +0000 (18:41 +0100)]
[3.13] gh-123142: fix too wide source location of GET_ITER/GET_AITER (GH-123420). (#123435)
(cherry picked from commit
61bef6245c4a32bf430d684ede8603f423d63284 )
Miss Islington (bot) [Wed, 28 Aug 2024 14:02:34 +0000 (16:02 +0200)]
[3.13] gh-123344: Add missing ast optimizations for PEP 696 (GH-123377) (#123427)
(cherry picked from commit
be083cee34d62ae860acac70dfa078fc5c96ade3 )
Co-authored-by: Bogdan Romanyuk <65823030+wrongnull@users.noreply.github.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Wed, 28 Aug 2024 07:47:39 +0000 (09:47 +0200)]
[3.13] gh-123254: Improve `tuple` C API docs with more info about errors (GH-123255) (#123416)
gh-123254: Improve `tuple` C API docs with more info about errors (GH-123255)
(cherry picked from commit
6f563e364d1a7902417573f842019746a79cdc1b )
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Miss Islington (bot) [Tue, 27 Aug 2024 15:16:20 +0000 (17:16 +0200)]
[3.13] gh-109975: Fix a typo in What's New in Python 3.13 (GH-123393) (#123396)
Miss Islington (bot) [Tue, 27 Aug 2024 13:41:37 +0000 (15:41 +0200)]
[3.13] gh-122666: Tests for ast optimizations (GH-122667) (#123359)
(cherry picked from commit
9f9b00d52ceafab6c183e8b0f502071d59dc6d22 )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Sergey B Kirpichev [Tue, 27 Aug 2024 09:07:17 +0000 (12:07 +0300)]
[3.13] gh-111495: Add tests for PyTuple C API (GH-118757) (GH-123371)
(cherry picked from commit
dbc1752d4107532d312c78263212e807a3674eb1 )
Co-authored-by: kalyanr <kalyan.ben10@live.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 27 Aug 2024 00:53:05 +0000 (02:53 +0200)]
[3.13] Ensure that iOS test re-runs don't try to spawn a process. (GH-122994) (#123368)
Ensure that iOS test re-runs don't try to spawn a process. (GH-122994)
Adds the --single-process option to the iOS test runner to ensure re-runs execute in the same process.
(cherry picked from commit
e03073ff20107793a4ea28cdac0d6894774dd110 )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Miss Islington (bot) [Tue, 27 Aug 2024 00:25:17 +0000 (02:25 +0200)]
[3.13] Add a --rerun option to the iOS testbed. (GH-122992) (#123367)
Add a --rerun option to the iOS testbed. (GH-122992)
Enable --rerun when running tests on iOS.
(cherry picked from commit
ce39d3c6bdab4c703ad95f37831b410fb729e116 )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Malcolm Smith [Mon, 26 Aug 2024 09:59:26 +0000 (10:59 +0100)]
[3.13] gh-119727: Add --single-process option to regrtest (#119728) (#123010)
gh-119727: Add --single-process option to regrtest (#119728)
(cherry picked from commit
4e8aa32245e2d72bf558b711ccdbcee594347615 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 26 Aug 2024 09:51:56 +0000 (11:51 +0200)]
[3.13] gh-116789: Add more tests for `inspect.getmembers` (GH-116802) (#123129)
gh-116789: Add more tests for `inspect.getmembers` (GH-116802)
(cherry picked from commit
c15bfa9a71c8b7ce7ff6d8486f51aab566e8d81d )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Mon, 26 Aug 2024 01:13:36 +0000 (03:13 +0200)]
[3.13] gh-123177: Fix prompt for wrapped lines in pyrepl (GH-123324) (#123327)
gh-123177: Fix prompt for wrapped lines in pyrepl (GH-123324)
When display lines above the cursor come from the cache, the first line
to not come from the cache may be a wrapped line, starting half way
through a logical line in the buffer. Detect and handle this case to
avoid accidentally drawing a stray prompt in the middle of a logical
line.
(cherry picked from commit
602fcf97df1665538d4e9841f9dc6bc33e38bece )
Co-authored-by: Matt Wozniski <mwozniski@bloomberg.net>
Miss Islington (bot) [Sun, 25 Aug 2024 23:08:51 +0000 (01:08 +0200)]
[3.13] gh-82378: Document the difference between sys.tracebacklimit and the limit arguments (GH-123286) (#123325)
gh-82378: Document the difference between sys.tracebacklimit and the limit arguments (GH-123286)
(cherry picked from commit
70bfef52b5734d6cd81c5e8ca9eaf85658916b04 )
Co-authored-by: CF Bolz-Tereick <cfbolz@gmx.de>
Miss Islington (bot) [Sun, 25 Aug 2024 22:01:56 +0000 (00:01 +0200)]
[3.13] gh-123177: Deactivate line wrap for Apple Terminal via scape codes in the new REPL (GH-123267) (#123322)
gh-123177: Deactivate line wrap for Apple Terminal via scape codes in the new REPL (GH-123267)
(cherry picked from commit
fdb3f9b588f58f3cf95fe1dbf6e5b61ef525a351 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Sun, 25 Aug 2024 20:25:49 +0000 (22:25 +0200)]
[3.13] gh-123297: Propagate LD_FLAGS to LDCXXSHARED in sysconfig (GH-123298) (#123319)
gh-123297: Propagate LD_FLAGS to LDCXXSHARED in sysconfig (GH-123298)
(cherry picked from commit
c535a49e9260ad0fac022474f6381836051c9758 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Sun, 25 Aug 2024 19:48:34 +0000 (21:48 +0200)]
[3.13] gh-122982: Extend the deprecation period for bool inversion by two years (GH-123306) (#123316)
gh-122982: Extend the deprecation period for bool inversion by two years (GH-123306)
(cherry picked from commit
249b083ed8b3cfdff30bf578d7f9d3c5e982a4eb )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Miss Islington (bot) [Sun, 25 Aug 2024 15:17:45 +0000 (17:17 +0200)]
[3.13] gh-123228: don't leak file descriptors in pyrepl test (GH-123302) (#123313)
Miss Islington (bot) [Sun, 25 Aug 2024 13:59:01 +0000 (15:59 +0200)]
[3.13] GH-109975: Copyedit 3.13 What's New: Optimizations (GH-123301) (#123308)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sat, 24 Aug 2024 22:36:58 +0000 (00:36 +0200)]
[3.13] gh-123067: Fix quadratic complexity in parsing "-quoted cookie values with backslashes (GH-123075) (#123103)
gh-123067: Fix quadratic complexity in parsing "-quoted cookie values with backslashes (GH-123075)
This fixes CVE-2024-7592.
(cherry picked from commit
44e458357fca05ca0ae2658d62c8c595b048b5ef )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 24 Aug 2024 21:03:54 +0000 (23:03 +0200)]
[3.13] Docs: Fix Makefile syntax (GH-123287) (#123288)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Adam Turner [Sat, 24 Aug 2024 19:31:31 +0000 (21:31 +0200)]
[3.13] GH-109975: Copyedit 3.13 What's New: Improved Modules (GH-123132) (#123292)
(cherry picked from commit
127660bcdb28294c3817f955cabd85afb6828ffc )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Miss Islington (bot) [Sat, 24 Aug 2024 16:11:17 +0000 (18:11 +0200)]
[3.13] gh-123228: fix return type for _ReadlineWrapper.get_line_buffer() (GH-123281) (#123293)
gh-123228: fix return type for _ReadlineWrapper.get_line_buffer() (GH-123281)
(cherry picked from commit
ca18ff2a34435faa557f7f9d4d3a554dadb05e50 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
Miss Islington (bot) [Sat, 24 Aug 2024 04:33:49 +0000 (06:33 +0200)]
[3.13] gh-123243: Fix reference leak in `_decimal` (GH-123244) (#123280)
gh-123243: Fix reference leak in `_decimal` (GH-123244)
(cherry picked from commit
5ff638f1b53587b9f912a18fc776a2a141fd7bed )
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Miss Islington (bot) [Fri, 23 Aug 2024 12:59:54 +0000 (14:59 +0200)]
[3.13] gh-123229: Fix valgrind warning by initializing the f-string buffers to 0 in the tokenizer (GH-123263) (#123264)
gh-123229: Fix valgrind warning by initializing the f-string buffers to 0 in the tokenizer (GH-123263)
(cherry picked from commit
adc5190014efcf7b7a4c5dfc9998faa8345527ed )
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
CF Bolz-Tereick [Fri, 23 Aug 2024 11:59:08 +0000 (13:59 +0200)]
[3.13] gh-82378 fix sys.tracebacklimit in pyrepl, approach 2 (GH-123062) (#123252)
Make sure that pyrepl uses the same logic for sys.tracebacklimit as both
the basic repl and the standard sys.excepthook
(cherry picked from commit
63603bca35798c166e1b8e0be76aef69217f8b1b )
Miss Islington (bot) [Fri, 23 Aug 2024 09:26:03 +0000 (11:26 +0200)]
[3.13] GH-120097: Make FrameLocalsProxy a mapping (GH-120101) (GH-120749)
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Miss Islington (bot) [Fri, 23 Aug 2024 00:32:11 +0000 (02:32 +0200)]
[3.13] gh-122546: Relax SyntaxError check when raising errors on the new REPL (GH-123233) (#123247)
gh-122546: Relax SyntaxError check when raising errors on the new REPL (GH-123233)
(cherry picked from commit
4c3f0cbeaec0d49212d305618743fabb0e74a696 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
CF Bolz-Tereick [Thu, 22 Aug 2024 23:58:05 +0000 (01:58 +0200)]
[3.13] gh-122478: Remove internal frames from tracebacks in REPL (GH-122528) (#123227)
Frames of methods in code and codeop modules was show with non-default
sys.excepthook.
Save correct tracebacks in sys.last_traceback and update __traceback__
attribute of sys.last_value and sys.last_exc.
(cherry picked from commit
e73e7a7abdc3fed252affcb1629df1b3c8fff2ef )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sergey B Kirpichev [Thu, 22 Aug 2024 23:28:09 +0000 (02:28 +0300)]
[3.13] gh-122546: use same filename for different exceptions in new repl (GH-123217) (#123226)
Miss Islington (bot) [Thu, 22 Aug 2024 20:16:52 +0000 (22:16 +0200)]
[3.13] GH-121723: Skip test_config_queue_handler_multiprocessing_context in emulated JIT CI (GH-122991)
(cherry picked from commit
7b8328b6b33939dfff4606d286b10069a09223dd )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Donghee Na [Thu, 22 Aug 2024 16:37:26 +0000 (01:37 +0900)]
[3.13] gh-123083: Fix a potential use-after-free in ``STORE_ATTR_WITH… (#123235)
[3.13] gh-123083: Fix a potential use-after-free in ``STORE_ATTR_WITH_HINT`` (gh-123092)
(cherry picked from commit
297f2e093ec95800ae2184330b8408c875523467 )
Irit Katriel [Thu, 22 Aug 2024 09:22:39 +0000 (10:22 +0100)]
[3.13] gh-123142: Fix too wide source locations in tracebacks of exceptions from broken iterables in comprehensions (GH-123173). (#123209)
(cherry picked from commit
ec89620e5e147ba028a46dd695ef073a72000b84 )
mpage [Wed, 21 Aug 2024 12:16:30 +0000 (05:16 -0700)]
[3.13] gh-122712: Guard against __code__ reassignment in CALL_ALLOC_AND_ENTER_INIT (GH-122713) (GH-123184)
Miss Islington (bot) [Tue, 20 Aug 2024 11:13:43 +0000 (13:13 +0200)]
[3.13] gh-123048: Fix missing source location in pattern matching code (GH-123167) (#123169)
gh-123048: Fix missing source location in pattern matching code (GH-123167)
(cherry picked from commit
bffed80230f2617de2ee02bd4bdded1024234dab )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Tue, 20 Aug 2024 00:11:34 +0000 (02:11 +0200)]
[3.13] gh-109975: Copyedit What's New in Python 3.13 (GH-123150) (#123164)
gh-109975: Copyedit What's New in Python 3.13 (GH-123150)
(cherry picked from commit
0480052ea1567d50e9772b836bc9f90bee11c2f7 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Mon, 19 Aug 2024 19:28:12 +0000 (21:28 +0200)]
[3.13] gh-123149: Suppress verbose repr in new REPL (GH-123151) (#123157)
gh-123149: Suppress verbose repr in new REPL (GH-123151)
(cherry picked from commit
833c58b81ebec84dc24ef0507f8c75fe723d9f66 )
Co-authored-by: James <snoopjedi@gmail.com>
Sergey B Kirpichev [Mon, 19 Aug 2024 19:01:58 +0000 (22:01 +0300)]
[3.13] gh-121804: Always show error location for SyntaxError's in new repl (GH-121886) (#123148)
(cherry picked from commit
354d55eb1fa40f272419aa6459ee5d2c4804c8ea )
Miss Islington (bot) [Mon, 19 Aug 2024 15:39:28 +0000 (17:39 +0200)]
[3.13] gh-118658: Return consistent types from `get_un/verified_chain` in `SSLObject` and `SSLSocket` (GH-118669) (#123082)
gh-118658: Return consistent types from `get_un/verified_chain` in `SSLObject` and `SSLSocket` (GH-118669)
(cherry picked from commit
8ef358dae1959e2aff8b04fb69b8a36d6da6847a )
Co-authored-by: Mateusz Nowak <nowak.mateusz@hotmail.com>
Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
Miss Islington (bot) [Mon, 19 Aug 2024 15:35:47 +0000 (17:35 +0200)]
[3.13] gh-123123: Fix display of syntax errors covering multiple lines (GH-123131) (#123147)
gh-123123: Fix display of syntax errors covering multiple lines (GH-123131)
(cherry picked from commit
48856ead6ae023b2819ee63cb6ff97a0976a2cc3 )
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Mon, 19 Aug 2024 08:44:11 +0000 (10:44 +0200)]
[3.13] gh-122081: fixed crash in decimal.IEEEContext() (GH-122082) (#123136)
gh-122081: fixed crash in decimal.IEEEContext() (GH-122082)
* gh-122081: fixed crash in decimal.IEEEContext()
Now
$ ./configure CFLAGS=-DEXTRA_FUNCTIONALITY -q && make -s && \
./python -m test test_decimal
- PASS
* Apply suggestions from code review
* Update Misc/NEWS.d/next/Library/2024-07-21-10-45-24.gh-issue-122081.dNrYMq.rst
* Apply suggestions from code review
---------
(cherry picked from commit
b9e10d1a0fc4d8428d4b36eb127570a832c26b6f )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Mon, 19 Aug 2024 07:30:54 +0000 (09:30 +0200)]
[3.13] gh-123110: correct note about _Bool in the struct module docs (GH-123111) (#123126)
gh-123110: correct note about _Bool in the struct module docs (GH-123111)
(cherry picked from commit
b0f462d4c808d6fb1d381bba4932acd8309c1f3b )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Sun, 18 Aug 2024 15:01:16 +0000 (17:01 +0200)]
[3.13] Add debug offsets for free threaded builds (GH-123041) (#123055)
* Add debug offsets for free threaded builds (GH-123041)
(cherry picked from commit
d7a3df91505faa56c51d169648253bd0d57ddae2 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Refresh ABI file
---------
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Miss Islington (bot) [Sat, 17 Aug 2024 21:15:24 +0000 (23:15 +0200)]
[3.13] Docs: Run ``latexmk`` in parallel when creating PDFs (GH-123113) (#123115)
Docs: Run ``latexmk`` in parallel when creating PDFs (GH-123113)
(cherry picked from commit
79c542b5cc774ba758acc2b2e3b6556934190e34 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sat, 17 Aug 2024 20:38:02 +0000 (22:38 +0200)]
[3.13] gh-123022: Fix crash with `Py_Initialize` in background thread (GH-123052) (#123114)
Check that the current default heap is initialized in
`_mi_os_get_aligned_hint` and `mi_os_claim_huge_pages`.
The mimalloc function `_mi_os_get_aligned_hint` assumes that there is an
initialized default heap. This is true for our main thread, but not for
background threads. The problematic code path is usually called during
initialization (i.e., `Py_Initialize`), but it may also be called if the
program allocates large amounts of memory in total.
The crash only affected the free-threaded build.
(cherry picked from commit
d061ffea7b408861d0a9d311e92c363da284971d )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Sat, 17 Aug 2024 12:26:58 +0000 (14:26 +0200)]
[3.13] GH-109975: Copyedit 3.13 What's New: Other Language Changes (GH-123086) (#123101)
GH-109975: Copyedit 3.13 What's New: Other Language Changes (GH-123086)
(cherry picked from commit
d60b97a833fd3284f2ee249d32c97fc359d83486 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Sat, 17 Aug 2024 09:11:33 +0000 (11:11 +0200)]
[3.13] fix typo in dis.rst (GH-121612) (#123095)
fix typo in dis.rst (GH-121612)
(cherry picked from commit
e9287ea426e8e1b930f1c3f0cb949a1416d29090 )
Co-authored-by: mathysEthical <110499907+mathysEthical@users.noreply.github.com>
Miss Islington (bot) [Sat, 17 Aug 2024 08:45:25 +0000 (10:45 +0200)]
[3.13] gh-122519: Adding socket module shutdown() constants description (GH-122543) (#123093)
gh-122519: Adding socket module shutdown() constants description (GH-122543)
(cherry picked from commit
8a59deca59aa9452e71bb49e909199fbb41a5de7 )
Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Miss Islington (bot) [Fri, 16 Aug 2024 11:58:17 +0000 (13:58 +0200)]
[3.13] mention pypy somewhat more prominently in the pyrepl section of whatsnew (GH-123063) (#123064)
Miss Islington (bot) [Fri, 16 Aug 2024 10:01:40 +0000 (12:01 +0200)]
[3.13] gh-122247: Move instruction instrumentation sanity check after tracing check (GH-122251) (GH-122812)
(cherry picked from commit
57d7c3e78fb635a0c6ccce38ec3e2f4284d5fac7 )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Fri, 16 Aug 2024 08:49:17 +0000 (10:49 +0200)]
[3.13] gh-122584: Import mimalloc headers in a C++ context (GH-122587) (#123035)
gh-122584: Import mimalloc headers in a C++ context (GH-122587)
(cherry picked from commit
1dad23edbc9db3a13268c1000c8dd428edba29f8 )
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Miss Islington (bot) [Fri, 16 Aug 2024 08:36:46 +0000 (10:36 +0200)]
[3.13] gh-116622: Add Android test script (GH-121595) (#123061)
gh-116622: Add Android test script (GH-121595)
Adds a script for running the test suite on Android emulator devices. Starting
with a fresh install of the Android Commandline tools; the script manages
installing other requirements, starting the emulator (if required), and
retrieving results from that emulator.
(cherry picked from commit
f84cce6f2588c6437d69a30856d7c4ba00b70ae0 )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Miss Islington (bot) [Fri, 16 Aug 2024 08:07:42 +0000 (10:07 +0200)]
[3.13] gh-116622: Android logging fixes (GH-122698) (#122719)
gh-116622: Android logging fixes (GH-122698)
Modifies the handling of stdout/stderr redirection on Android to accomodate
the rate and buffer size limits imposed by Android's logging infrastructure.
(cherry picked from commit
b0c48b8fd88f26b31ec2f743358091073277dcde )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Miss Islington (bot) [Fri, 16 Aug 2024 08:07:27 +0000 (10:07 +0200)]
[3.13] gh-116622: Don't expose `FICLONE` ioctl on Android (GH-122522) (#122539)
gh-116622: Don't expose `FICLONE` ioctl on Android (GH-122522)
Don't expose `FICLONE` ioctl on Android
(cherry picked from commit
06656e259bc9b2c3cf8a23bdc6e4acb052c56e1f )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Miss Islington (bot) [Fri, 16 Aug 2024 07:41:49 +0000 (09:41 +0200)]
[3.13] gh-123046: Fix regexp to catch cases where the module name is omitted from the weakref repr (GH-123047) (#123058)
gh-123046: Fix regexp to catch cases where the module name is omitted from the weakref repr (GH-123047)
(cherry picked from commit
786cac0c64dc156dfee817e87f15ae56b7e3ed00 )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Thu, 15 Aug 2024 19:57:07 +0000 (21:57 +0200)]
[3.13] gh-116608: Apply style and compatibility changes from importlib_resources. (GH-123028) (#123051)
gh-116608: Apply style and compatibility changes from importlib_metadata. (GH-123028)
(cherry picked from commit
e913d2c87f1ae4e7a4aef5ba78368ef31d060767 )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Miss Islington (bot) [Thu, 15 Aug 2024 09:25:33 +0000 (11:25 +0200)]
[3.13] GH-109975: Copyedit 3.13 What's New: New Features (GH-122990) (#123032)
GH-109975: Copyedit 3.13 What's New: New Features (GH-122990)
(cherry picked from commit
b106cf8d978b32b04a4394973b850ef2a62cbcc4 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Miss Islington (bot) [Wed, 14 Aug 2024 21:31:19 +0000 (23:31 +0200)]
[3.13] gh-123005: Add version added in enum.Flag.__len__ (GH-123007) (#123026)
gh-123005: Add version added in enum.Flag.__len__ (GH-123007)
(cherry picked from commit
8e2dc7f380c7ffe6b0fe525b4d0558aaed9d7145 )
Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Miss Islington (bot) [Wed, 14 Aug 2024 13:20:40 +0000 (15:20 +0200)]
[3.13] gh-122965: Fix `reusable-change-detection.yml` on `workflow_dispatch` (GH-122966) (#123008)
gh-122965: Fix `reusable-change-detection.yml` on `workflow_dispatch` (GH-122966)
(cherry picked from commit
6ae942f412492b840fc6b43d39ba9133aa890ee7 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Russell Keith-Magee [Wed, 14 Aug 2024 02:03:18 +0000 (10:03 +0800)]
[3.13] Revert use of --rerun in iOS testbed. (#122995)
Reverts the use of --rerun in iOS testing because it tries to create a subprocess on the rerun.
Miss Islington (bot) [Wed, 14 Aug 2024 00:41:37 +0000 (02:41 +0200)]
[3.13] Add a --rerun option to the iOS testbed. (GH-122992) (#122993)
Enable --rerun when running tests on iOS.
(cherry picked from commit
ce39d3c6bdab4c703ad95f37831b410fb729e116 )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Miss Islington (bot) [Tue, 13 Aug 2024 17:39:14 +0000 (19:39 +0200)]
[3.13] GH-85633: Fix pathlib test failures on filesystems without world-write. (GH-122883) (#122979)
GH-85633: Fix pathlib test failures on filesystems without world-write. (GH-122883)
Replace `umask(0)` with `umask(0o002)` so the created files are not
world-writable, and replace `umask(0o022)` with `umask(0o026)` to check
that permissions for 'others' can still be set.
(cherry picked from commit
5f6851152254b4b9d70af4ae5aea3f20965cee28 )
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Miss Islington (bot) [Tue, 13 Aug 2024 17:03:36 +0000 (19:03 +0200)]
[3.13] Fix `print` usage in `turtle` doctests (GH-122940) (#122977)
Fix `print` usage in `turtle` doctests (GH-122940)
(cherry picked from commit
901d94992eddd84ded2edc55235cbf22503c4de4 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Tue, 13 Aug 2024 14:58:35 +0000 (16:58 +0200)]
[3.13] GH-109975: Copyedit 3.13 What's New: Release Highlights (GH-122958) (#122971)
GH-109975: Copyedit 3.13 What's New: Release Highlights (GH-122958)
(cherry picked from commit
db6f5e193315a3bbfa7b0b6644203bae3f76b638 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 12 Aug 2024 18:56:36 +0000 (20:56 +0200)]
[3.13] gh-122944: Fix incorrect prompt strings in the Python Tutorial (GH-122949) (#122954)
gh-122944: Fix incorrect prompt strings in the Python Tutorial (GH-122949)
In the REPL, top level comments are followed by a primary, not secondary prompt.
Fix the places in the in the tutorial that use the latter.
(cherry picked from commit
be90648fb2de58b148dcc7553a08ca646911baf2 )
Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Miss Islington (bot) [Mon, 12 Aug 2024 16:53:05 +0000 (18:53 +0200)]
[3.13] gh-122888: Fix crash on certain calls to str() (GH-122889) (#122947)
Fixes GH-122888
(cherry picked from commit
53ebb6232a8ebc03827cf2251bfc67f1886ffd70 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Mon, 12 Aug 2024 11:00:33 +0000 (13:00 +0200)]
[3.13] gh-111051: [tests] Wait a second to support filesystems with low-resolution mtime (GH-121959) (GH-122114)
(cherry picked from commit
cad11a2bdceb6d4683ae5654ce555cdf5f191217 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Mon, 12 Aug 2024 10:37:03 +0000 (12:37 +0200)]
[3.13] gh-116622: Skip PosixPathTest.test_expanduser_pwd2 on platforms which don't support pwd.getpwall (GH-122521) (GH-122530)
(cherry picked from commit
8844197daaeb3aa026cfe1cac6cf9d1b52c2540e )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Miss Islington (bot) [Mon, 12 Aug 2024 01:02:10 +0000 (03:02 +0200)]
[3.13] gh-122903: Honor directories in zipfile.Path.glob. (GH-122908) (#122926)
(cherry picked from commit
6aa35f3002dda25858d47e702e750e2871e42a7c )
Miss Islington (bot) [Mon, 12 Aug 2024 00:35:04 +0000 (02:35 +0200)]
[3.13] gh-122905: Sanitize names in zipfile.Path. (GH-122906) (#122922)
Miss Islington (bot) [Sun, 11 Aug 2024 21:20:07 +0000 (23:20 +0200)]
[3.13] gh-122701: Fix wording of raw strings/bytes in `lexical_analysis.rst` (GH-122702) (#122914)
gh-122701: Fix wording of raw strings/bytes in `lexical_analysis.rst` (GH-122702)
(cherry picked from commit
ea70439bd2b5a1c881342646f30942f527f61373 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sun, 11 Aug 2024 20:57:19 +0000 (22:57 +0200)]
[3.13] Docs: Standardise versionchanged text in weakref.rst (GH-122898) (#122911)
Docs: Standardise versionchanged text in weakref.rst (GH-122898)
(cherry picked from commit
db8b83c2b0247f1d9b15152bbfcfe4afc7e588ed )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Sat, 10 Aug 2024 21:41:14 +0000 (23:41 +0200)]
[3.13] GH-120794: Use example paths with multiple parts in pathlib docs (GH-122887) (#122895)
GH-120794: Use example paths with multiple parts in pathlib docs (GH-122887)
In the documentation of `PosixPath` and `WindowsPath`, and their `Pure*`
equivalents, use example paths with multiple non-anchor parts.
(cherry picked from commit
363374cf69a7e2292fe3f1c6bedd199088958cc2 )
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>