]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
17 months ago[3.12] Fix typos in documentation (GH-119092) (#119117)
Miss Islington (bot) [Fri, 17 May 2024 10:57:34 +0000 (12:57 +0200)] 
[3.12] Fix typos in documentation (GH-119092) (#119117)

Fix typos in documentation (GH-119092)
(cherry picked from commit 65de194dd80bbc8cb7098d21cfd6aefd11d0d0ce)

Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
17 months ago[3.12] gh-108267: Fix object.__setattr__ regression in dataclasses docs (GH-119082...
Miss Islington (bot) [Thu, 16 May 2024 13:46:20 +0000 (15:46 +0200)] 
[3.12] gh-108267: Fix object.__setattr__ regression in dataclasses docs (GH-119082) (#119098)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
17 months ago[3.12] Add Tkinter tests for different events (GH-118778) (GH-119095)
Serhiy Storchaka [Thu, 16 May 2024 10:43:02 +0000 (13:43 +0300)] 
[3.12] Add Tkinter tests for different events (GH-118778) (GH-119095)

(cherry picked from commit b6839942a8906fccdd64e749abeefe8a61ce7e03)

17 months ago[3.12] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065...
Serhiy Storchaka [Thu, 16 May 2024 08:04:37 +0000 (11:04 +0300)] 
[3.12] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119088)

(cherry picked from commit 0152dc4ff5534fa2948b95262e70ff6b202b9b99)

17 months ago[3.12] gh-119009: Add gettext target (GH-119006) (#119075)
Miss Islington (bot) [Wed, 15 May 2024 18:20:41 +0000 (20:20 +0200)] 
[3.12] gh-119009: Add gettext target (GH-119006) (#119075)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
17 months agogh-118486: Simplify test_win32_mkdir_700 to check the exact ACL (GH-119056)
Miss Islington (bot) [Wed, 15 May 2024 11:21:57 +0000 (13:21 +0200)] 
gh-118486: Simplify test_win32_mkdir_700 to check the exact ACL (GH-119056)

(cherry picked from commit 94591dca510c796c7d40e9b4167ea56f2fdf28ca)

Co-authored-by: Steve Dower <steve.dower@python.org>
17 months ago[3.12] Misc improvements to the itertools docs (gh-119040) (#119044)
Miss Islington (bot) [Tue, 14 May 2024 15:27:03 +0000 (17:27 +0200)] 
[3.12] Misc improvements to the itertools docs (gh-119040) (#119044)

17 months ago[3.12] Itertools docs: fix parameter names and indentation in Python equivalents...
Miss Islington (bot) [Tue, 14 May 2024 14:59:11 +0000 (16:59 +0200)] 
[3.12] Itertools docs: fix parameter names and indentation in Python equivalents (gh-118977) (#119042)

17 months ago[3.12] typing tests: remove some unnecessary uses of `exec()` (GH-119005) (#119039)
Miss Islington (bot) [Tue, 14 May 2024 14:51:08 +0000 (16:51 +0200)] 
[3.12] typing tests: remove some unnecessary uses of `exec()` (GH-119005) (#119039)

(cherry picked from commit a9328e2b6ee05c186dcc552feb92b862b4a574df)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
17 months ago[3.12] Add yet few cases for urlparse/urlunparse roundtrip tests (GH-119031) (GH...
Miss Islington (bot) [Tue, 14 May 2024 14:16:27 +0000 (16:16 +0200)] 
[3.12] Add yet few cases for urlparse/urlunparse roundtrip tests (GH-119031) (GH-119036)

(cherry picked from commit 331d385af9817eaa32b739130227781358f85771)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
17 months ago[3.12] gh-67693: Fix urlunparse() and urlunsplit() for URIs with path starting with...
Miss Islington (bot) [Tue, 14 May 2024 09:47:11 +0000 (11:47 +0200)] 
[3.12] gh-67693: Fix urlunparse() and urlunsplit() for URIs with path starting with multiple slashes and no authority (GH-113563) (GH-119024)

(cherry picked from commit e237b25a4fa5626fcd1b1848aa03f725f892e40e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
17 months ago[3.12] gh-118998: Handle errors correctly in `tmtotuple` in `timemodule` (GH-118999...
Miss Islington (bot) [Mon, 13 May 2024 21:47:12 +0000 (23:47 +0200)] 
[3.12] gh-118998: Handle errors correctly in `tmtotuple` in `timemodule` (GH-118999) (#119019)

gh-118998: Handle errors correctly in `tmtotuple` in `timemodule` (GH-118999)
(cherry picked from commit fc757925944a9486d4244853dbe6e37ab3e560c2)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
17 months ago[3.12] gh-119010: Adds docs about `__type_params__` to `functools.update_wrapper...
Miss Islington (bot) [Mon, 13 May 2024 20:16:54 +0000 (22:16 +0200)] 
[3.12] gh-119010: Adds docs about `__type_params__` to `functools.update_wrapper` (GH-119012) (#119014)

gh-119010: Adds docs about `__type_params__` to `functools.update_wrapper` (GH-119012)
(cherry picked from commit b04c497f187b0b474e431a6d8d282269b40ffe52)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
17 months ago[3.12] gh-58933: Make pdb return to caller frame correctly when f_trace is not set...
Tian Gao [Mon, 13 May 2024 19:21:15 +0000 (12:21 -0700)] 
[3.12] gh-58933: Make pdb return to caller frame correctly when f_trace is not set (GH-118979) (#119008)

* [3.12] gh-58933: Make pdb return to caller frame correctly when f_trace is not set (GH-118979)
(cherry picked from commit f526314194f7fd15931025f8a4439c1765666e42)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
18 months agogh-118876: Ensure PC/layout sets ns.temp before using it (GH-118880)
Miss Islington (bot) [Mon, 13 May 2024 11:48:39 +0000 (13:48 +0200)] 
gh-118876: Ensure PC/layout sets ns.temp before using it (GH-118880)

Fixes an AttributeError that occurs when checking if ns.temp is an absolute path during building from source on Windows.
(cherry picked from commit d8a82cca12e12a6b22bfe6691e9b222f6d276f0a)

Co-authored-by: I-Shen Leong <i-shenl@activestate.com>
18 months ago[3.12] Improve the `rmtree` doc for `dir_fd` param addition in 3.11 (GH-118964) ...
Miss Islington (bot) [Mon, 13 May 2024 11:10:55 +0000 (13:10 +0200)] 
[3.12] Improve the `rmtree` doc for `dir_fd` param addition in 3.11 (GH-118964) (#118992)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
18 months ago[3.12] gh-87106: Fix inspect.signature.bind() handling of positional-only arguments...
Miss Islington (bot) [Mon, 13 May 2024 08:29:47 +0000 (10:29 +0200)] 
[3.12] gh-87106: Fix inspect.signature.bind() handling of positional-only arguments with **kwargs (GH-103404) (GH-118984)

(cherry picked from commit 9c1520244151f36e010c1b04bedf14747a28517d)

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
18 months ago[3.12] gh-118899: Add tests for `NotImplemented` attribute access (GH-118902) (#118969)
Miss Islington (bot) [Sun, 12 May 2024 14:22:58 +0000 (16:22 +0200)] 
[3.12] gh-118899: Add tests for `NotImplemented` attribute access (GH-118902) (#118969)

gh-118899: Add tests for `NotImplemented` attribute access (GH-118902)
(cherry picked from commit ec1398e117fb142cc830495503dbdbb1ddafe941)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
18 months ago[3.12] GH-118701: Note that recursive wildcards aren't supported in `PurePath.match...
Barney Gale [Sat, 11 May 2024 18:10:51 +0000 (19:10 +0100)] 
[3.12] GH-118701: Note that recursive wildcards aren't supported in `PurePath.match()` (#118713)

18 months ago[3.12] Correct the argument names for `secrets.choice` and `secrets.randbelow` in...
Miss Islington (bot) [Fri, 10 May 2024 14:45:22 +0000 (16:45 +0200)] 
[3.12] Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst` (GH-118098) (GH-118907)

Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst` (GH-118098)

Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst`.
(cherry picked from commit c444362c6e0b6c01f49c3bee864100f52bd3b640)

Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
18 months agogh-118689: Doc: fix ePub build (GH-118690)
Miss Islington (bot) [Fri, 10 May 2024 10:34:33 +0000 (12:34 +0200)] 
gh-118689: Doc: fix ePub build (GH-118690)

(cherry picked from commit 7ac933e2609b2ef9b08ccf9c815b682b0e1ede2a)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
18 months agoFix some missing null checks. (GH-118721)
Miss Islington (bot) [Fri, 10 May 2024 09:51:57 +0000 (11:51 +0200)] 
Fix some missing null checks. (GH-118721)

(cherry picked from commit 7e6fcab20003b07621dc02ea78d6ea2fda500371)

Co-authored-by: Steve Dower <steve.dower@python.org>
18 months agogh-118486: Support mkdir(mode=0o700) on Windows (GH-118488)
Steve Dower [Thu, 9 May 2024 18:18:56 +0000 (19:18 +0100)] 
gh-118486: Support mkdir(mode=0o700) on Windows (GH-118488)

18 months agogh-118802: Fix ACL use in test for non-English Windows (GH-118831)
Miss Islington (bot) [Thu, 9 May 2024 13:41:15 +0000 (15:41 +0200)] 
gh-118802: Fix ACL use in test for non-English Windows (GH-118831)

(cherry picked from commit 82acc5f2113bffd0ed902851f4ccf5b9be8980b2)

Co-authored-by: Steve Dower <steve.dower@python.org>
18 months ago[3.12] gh-103956: Fix `trace` output in case of missing source line (GH-103958) ...
Miss Islington (bot) [Thu, 9 May 2024 12:51:03 +0000 (14:51 +0200)] 
[3.12] gh-103956: Fix `trace` output in case of missing source line (GH-103958) (GH-118832)

Print only filename with lineno if linecache.getline() returns an empty string.
(cherry picked from commit 7c87ce777b3fd9055b118a58ec8614901ecb45e9)

Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
18 months ago[3.12] gh-118033: Fix `__weakref__` not set for generic dataclasses (GH-118099) ...
Miss Islington (bot) [Thu, 9 May 2024 09:09:40 +0000 (11:09 +0200)] 
[3.12] gh-118033: Fix `__weakref__` not set for generic dataclasses (GH-118099) (#118822)

gh-118033: Fix `__weakref__` not set for generic dataclasses (GH-118099)
(cherry picked from commit fa9b9cb11379806843ae03b1e4ad4ccd95a63c02)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
18 months ago[3.12] Format None, True, False and NotImplemented as literals (GH-118758) (GH-118794)
Serhiy Storchaka [Wed, 8 May 2024 19:55:13 +0000 (22:55 +0300)] 
[3.12] Format None, True, False and NotImplemented as literals (GH-118758) (GH-118794)

(cherry picked from commit 05c2fe1acda9ea5a57061642c36e8b73bb4fbba4)

18 months ago[3.12] docs: module page titles should not start with a link to themselves (GH-117099...
Miss Islington (bot) [Wed, 8 May 2024 19:42:01 +0000 (21:42 +0200)] 
[3.12] docs: module page titles should not start with a link to themselves (GH-117099) (#118791)

docs: module page titles should not start with a link to themselves (GH-117099)
(cherry picked from commit bcb435ee8ff41b5ec5d879ee0b6651f146a66151)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
18 months ago[3.12] Docs: fix typos in documentation (GH-118752) (#118786)
Miss Islington (bot) [Wed, 8 May 2024 19:13:42 +0000 (21:13 +0200)] 
[3.12] Docs: fix typos in documentation (GH-118752) (#118786)

Docs: fix typos in documentation (GH-118752)
(cherry picked from commit 7b0c247f1c176e092777fce4677a00f22c738b3c)

Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
18 months ago[3.12] gh-118671: Updated dead ActiveState links (GH-118730) (#118754)
Miss Islington (bot) [Wed, 8 May 2024 07:22:35 +0000 (09:22 +0200)] 
[3.12] gh-118671: Updated dead ActiveState links (GH-118730) (#118754)

Co-authored-by: trag1c <trag1cdev@yahoo.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
18 months ago[3.12] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-118736) (#118753)
Miss Islington (bot) [Wed, 8 May 2024 06:06:04 +0000 (08:06 +0200)] 
[3.12] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-118736) (#118753)

Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-118736)

Regen dependencies
(cherry picked from commit fcf52d7ceea3532f0b3475aadd4e1f72db463a1f)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
18 months ago[3.12] Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612) ...
Miss Islington (bot) [Tue, 7 May 2024 13:35:09 +0000 (15:35 +0200)] 
[3.12] Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612) (GH-118707)

Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612)
(cherry picked from commit a855f824a2f5a310ffa58a973a8fe9feaa2500b3)

Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
18 months ago[3.12] gh-118310: Fix documentation for `enum.Enum.__new__` (GH-118311) (GH-118699)
Miss Islington (bot) [Tue, 7 May 2024 12:02:55 +0000 (14:02 +0200)] 
[3.12] gh-118310: Fix documentation for `enum.Enum.__new__` (GH-118311) (GH-118699)

gh-118310: Fix documentation for `enum.Enum.__new__` (GH-118311)

The provided example was incorrect:
- The example enum was missing the `int` mixin as implied by the context
- The value of `int('1a', 16)` was incorrectly given as 17
  (should be 26)
(cherry picked from commit 48e52fe2c9a7b33671f6b5d1420a71a6f31ad64b)

Co-authored-by: Momo Eissenhauer <mmEissen@users.noreply.github.com>
18 months ago[3.12] gh-78612: Mark up eval() using param list (GH-115212) (#116044)
Miss Islington (bot) [Tue, 7 May 2024 11:49:29 +0000 (13:49 +0200)] 
[3.12] gh-78612: Mark up eval() using param list (GH-115212) (#116044)

Also mention that the 'expression' parameter can be a string.
(cherry picked from commit a71e32ce8e183023fc1ee401c22ebe35e4832f09)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
18 months ago[3.12] gh-118314: Fix padding edge case in binascii.a2b_base64 strict mode (GH-118320...
Miss Islington (bot) [Tue, 7 May 2024 09:35:49 +0000 (11:35 +0200)] 
[3.12] gh-118314: Fix padding edge case in binascii.a2b_base64 strict mode (GH-118320) (GH-118691)

gh-118314: Fix padding edge case in binascii.a2b_base64 strict mode (GH-118320)

Fix an edge case in `binascii.a2b_base64` strict mode, where
excessive padding was not detected when no padding is necessary.

(cherry picked from commit fe47d9bee319528ffeb5fd60a615d7f02c7b5585)

Co-authored-by: Youfu Zhang <1315097+zhangyoufu@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
18 months ago[3.12] Expand recipe for kernel density estimation to include common tasks. (gh-118659)
Raymond Hettinger [Mon, 6 May 2024 19:51:27 +0000 (14:51 -0500)] 
[3.12] Expand recipe for kernel density estimation to include common tasks. (gh-118659)

18 months ago[3.12] gh-71592: Add ability to trace Tcl commands executed by Tkinter (GH-118291...
Serhiy Storchaka [Mon, 6 May 2024 19:26:08 +0000 (22:26 +0300)] 
[3.12] gh-71592: Add ability to trace Tcl commands executed by Tkinter (GH-118291) (GH-118662)

This is an experimental feature, for internal use.

Setting tkinter._debug = True before creating the root window enables
printing every executed Tcl command (or a Tcl command equivalent to the
used Tcl C API).

This will help to convert a Tkinter example into Tcl script to check
whether the issue is caused by Tkinter or exists in the underlying Tcl/Tk
library.
(cherry picked from commit 1ff626ebda465931ff3e4922e8e87d586eb6244c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
18 months ago[3.12] Fix typo in Doc/library/asyncio-task.rst (GH-118627) (#118657)
Miss Islington (bot) [Mon, 6 May 2024 17:03:22 +0000 (19:03 +0200)] 
[3.12] Fix typo in Doc/library/asyncio-task.rst (GH-118627) (#118657)

Fix typo in Doc/library/asyncio-task.rst (GH-118627)
(cherry picked from commit fc50f1bdbad3aa52d7cbd3cb836a35806266ec54)

Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
18 months ago[3.12] GH-115577 Clarify netloc term usage in urllib.parse docs (GH-117632) (GH-118656)
Miss Islington (bot) [Mon, 6 May 2024 17:01:50 +0000 (19:01 +0200)] 
[3.12] GH-115577 Clarify netloc term usage in urllib.parse docs (GH-117632) (GH-118656)

(cherry picked from commit 3ed3bc379a0c4ce7a107dd4bc276554fbb477998)

Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
18 months ago[3.12] gh-118164: Break a loop between _pydecimal and _pylong and optimize int to...
Miss Islington (bot) [Mon, 6 May 2024 09:10:05 +0000 (11:10 +0200)] 
[3.12] gh-118164: Break a loop between _pydecimal and _pylong and optimize int to str conversion (GH-118483) (GH-118590)

For converting large ints to strings, CPython invokes a function in _pylong.py,
which uses the decimal module to implement an asymptotically waaaaay
sub-quadratic algorithm. But if the C decimal module isn't available, CPython
uses _pydecimal.py instead. Which in turn frequently does str(int). If the int
is very large, _pylong ends up doing the work, which in turn asks decimal to do
"big" arithmetic, which in turn calls str(big_int), which in turn ... it can
become infinite mutual recursion.

This change introduces a different int->str function that doesn't use decimal.
It's asymptotically worse, "Karatsuba time" instead of quadratic time, so
still a huge improvement. _pylong switches to that when the C decimal isn't
available. It is also used for not too large integers (less than 450_000 bits),
where it is faster (up to 2 times for 30_000 bits) than the asymptotically
better implementation that uses the C decimal.

(cherry picked from commit 711c80bfca5dd17cb7c6ec26f0e44848b33aec04)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Tim Peters <tim.peters@gmail.com>
18 months ago[3.12] gh-115119: Bump CI to use Ubuntu 22.04 (#118631) (#118634)
Erlend E. Aasland [Mon, 6 May 2024 09:03:36 +0000 (11:03 +0200)] 
[3.12] gh-115119: Bump CI to use Ubuntu 22.04 (#118631) (#118634)

Ubuntu 22.04 ships with mpdecimal 2.5.1, installable using 'apt install libmpdec-dev'.

18 months ago[3.12] gh-78955: Use user-selected color theme for Help => IDLE Doc (GH-9502) (#118632)
Miss Islington (bot) [Mon, 6 May 2024 08:12:39 +0000 (10:12 +0200)] 
[3.12] gh-78955: Use user-selected color theme for Help => IDLE Doc (GH-9502) (#118632)

gh-78955: Use user-selected color theme for Help => IDLE Doc (GH-9502)
(cherry picked from commit 7758be431807d574e0f1bbab003796585ae46719)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
18 months ago[3.12] gh-117389: Fix `test_compileall.EncodingTest` (GH-117390) (#118603)
Miss Islington (bot) [Sun, 5 May 2024 19:02:04 +0000 (21:02 +0200)] 
[3.12] gh-117389: Fix `test_compileall.EncodingTest` (GH-117390) (#118603)

gh-117389: Fix `test_compileall.EncodingTest` (GH-117390)
(cherry picked from commit 44f67916dafd3583f482e6d001766581a1a734fc)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
18 months ago[3.12] gh-118476: Fix corner cases in islice() rough equivalent. (Gh-118559) (#118587)
Miss Islington (bot) [Sun, 5 May 2024 06:49:19 +0000 (08:49 +0200)] 
[3.12] gh-118476: Fix corner cases in islice() rough equivalent. (Gh-118559) (#118587)

18 months ago[3.12] gh-118455: Fix mangle_from_ default value in email.policy.Policy.__doc__ ...
Miss Islington (bot) [Sun, 5 May 2024 06:35:11 +0000 (08:35 +0200)] 
[3.12] gh-118455: Fix mangle_from_ default value in email.policy.Policy.__doc__ (GH-118456) (#118586)

gh-118455: Fix mangle_from_ default value in email.policy.Policy.__doc__ (GH-118456)

* Fix mangle_from_ default value in email.policy.Policy.__doc__

The docstring says it defaults to True, but it actually defaults
to False. Only the Compat32 subclass overrides that.

---------

(cherry picked from commit fed8d73fde779fca41026398376cb3038e9b2b5f)

Co-authored-by: wim glenn <jump@wimglenn.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
18 months ago[3.12] gh-118164: str(10**10000) hangs if the C _decimal module is missing (GH-118503...
Miss Islington (bot) [Sun, 5 May 2024 06:34:43 +0000 (08:34 +0200)] 
[3.12] gh-118164: str(10**10000) hangs if the C _decimal module is missing (GH-118503) (GH-118584)

Serhiy and I independently concluded that exact powers of 10
aren't possible in these contexts, so just checking the
string length is sufficient.

(cherry picked from commit 999f0c512281995fb61a0d9eda075fd846e8c505)

Co-authored-by: Tim Peters <tim.peters@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
18 months ago[3.12] gh-118569: Add a test for dynamic PEP695 classes (GH-118570) (#118574)
Miss Islington (bot) [Sat, 4 May 2024 15:26:30 +0000 (17:26 +0200)] 
[3.12] gh-118569: Add a test for dynamic PEP695 classes (GH-118570) (#118574)

gh-118569: Add a test for dynamic PEP695 classes (GH-118570)
(cherry picked from commit 5f547585fa56c94c5d836b5313a7200f4937ebc4)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
18 months ago[3.12] Minor improvements to the itertools recipes (GH-118563) (#118565)
Miss Islington (bot) [Fri, 3 May 2024 22:20:29 +0000 (00:20 +0200)] 
[3.12] Minor improvements to the itertools recipes (GH-118563) (#118565)

18 months ago[3.12] docs: clarify csv.DictReader's treatment of the first data row (GH-118549...
Miss Islington (bot) [Fri, 3 May 2024 15:55:09 +0000 (17:55 +0200)] 
[3.12] docs: clarify csv.DictReader's treatment of the first data row (GH-118549) (#118555)

(cherry picked from commit 9d67b72a4952766fdba803eb6eadd41dfee29dff)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
18 months ago[3.12] gh-118513: Fix sibling comprehensions with a name bound in one and global...
Miss Islington (bot) [Fri, 3 May 2024 14:40:05 +0000 (16:40 +0200)] 
[3.12] gh-118513: Fix sibling comprehensions with a name bound in one and global in the other (GH-118526) (#118548)

gh-118513: Fix sibling comprehensions with a name bound in one and global in the other (GH-118526)
(cherry picked from commit c8deb1e4b495bf97ab00c710dfd63f227e1fb645)

Co-authored-by: Carl Meyer <carl@oddbird.net>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
18 months ago[3.12] gh-117492: Clarify documentation of `typing.Never` (GH-117678) (#118547)
Miss Islington (bot) [Fri, 3 May 2024 13:09:05 +0000 (15:09 +0200)] 
[3.12] gh-117492: Clarify documentation of `typing.Never` (GH-117678) (#118547)

(cherry picked from commit 852263e1086748492602a90347ecc0a3925e1dda)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
18 months ago[3.12] gh-90848: Fixed create_autospec ignoring configure_mock style kwargs (GH-11816...
Miss Islington (bot) [Thu, 2 May 2024 18:01:17 +0000 (20:01 +0200)] 
[3.12] gh-90848: Fixed create_autospec ignoring configure_mock style kwargs (GH-118163) (#118517)

gh-90848: Fixed create_autospec ignoring configure_mock style kwargs (GH-118163)
(cherry picked from commit b28a3339e4c63ea3a801dba9bbbc6af5af42c3a0)

Co-authored-by: infohash <46137868+infohash@users.noreply.github.com>
18 months ago[3.12] gh-118272: Clear generator frame's locals when the generator is closed (#118451)
Irit Katriel [Thu, 2 May 2024 15:22:50 +0000 (16:22 +0100)] 
[3.12] gh-118272: Clear generator frame's locals when the generator is closed (#118451)

18 months ago[3.12] gh-117903: Clarify that the staticmethod descriptor is callable (GH-117925...
Miss Islington (bot) [Thu, 2 May 2024 14:02:26 +0000 (16:02 +0200)] 
[3.12] gh-117903: Clarify that the staticmethod descriptor is callable (GH-117925) (GH-118509)

(cherry picked from commit b3372481b6cae5766330b041c4622c28cee2119f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
18 months ago[3.12] GH-117881: fix athrow().throw()/asend().throw() concurrent access (GH-117882...
Thomas Grainger [Thu, 2 May 2024 08:23:25 +0000 (09:23 +0100)] 
[3.12] GH-117881: fix athrow().throw()/asend().throw() concurrent access (GH-117882) (#118458)

GH-117881: fix athrow().throw()/asend().throw() concurrent access (GH-117882)

(cherry picked from commit fc7e1aa3c001bbce25973261fba457035719a559)

18 months ago[3.12] Uncomment one grammar test (GH-118361) (#118385)
Miss Islington (bot) [Thu, 2 May 2024 06:03:49 +0000 (08:03 +0200)] 
[3.12] Uncomment one grammar test (GH-118361) (#118385)

Uncomment one grammar test (GH-118361)
(cherry picked from commit 23d0371bb99b1df183c36883e256f82fdf6a4bea)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
18 months ago[3.12] docs: typo: tiny grammar change: "pointed by" -> "pointed to by" (GH-118411...
Jelle Zijlstra [Thu, 2 May 2024 06:01:06 +0000 (23:01 -0700)] 
[3.12] docs: typo: tiny grammar change: "pointed by" -> "pointed to by" (GH-118411) (#118504)

(cherry picked from commit a6b610a94bee0e4436aee2825c14f05ec2f22f75)

Co-authored-by: Andrew Zipperer <47086307+zipperer@users.noreply.github.com>
Co-authored-by: Andrew-Zipperer <atzipperer@gmail.com>
18 months ago[3.12] gh-116767: fix crash on 'async with' with many context managers (GH-118348...
Irit Katriel [Wed, 1 May 2024 17:23:29 +0000 (18:23 +0100)] 
[3.12] gh-116767: fix crash on 'async with' with many context managers (GH-118348) (#118477)

gh-116767: fix crash on 'async with' with many context managers (GH-118348)

Account for `add_stopiteration_handler` pushing a block for `async with`.
To allow generator functions that previously almost hit the `CO_MAXBLOCKS`
limit by nesting non-async blocks, the limit is increased by 1.
This increase allows one more block in non-generator functions.

(cherry picked from commit c1bf4874c1e9db2beda1d62c8c241229783c789b)

18 months agogh-116122: Add SBOM generation to PCbuild/build.bat (GH-116138)
Seth Michael Larson [Wed, 1 May 2024 14:47:41 +0000 (09:47 -0500)] 
gh-116122: Add SBOM generation to PCbuild/build.bat (GH-116138)

(cherry picked from commit 72dae53e09a5344bf4922d934a34a2fa48a11c86)

Co-authored-by: Seth Michael Larson <seth@python.org>
18 months ago[3.12] gh-118418: Use a default value for `type_params` in `typing._eval_type` (GH...
Miss Islington (bot) [Tue, 30 Apr 2024 16:26:38 +0000 (18:26 +0200)] 
[3.12] gh-118418: Use a default value for `type_params` in `typing._eval_type` (GH-118431) (#118436)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
18 months ago[3.12] gh-117860: Add tests for resolving names when import rebind names (GH-118176...
Miss Islington (bot) [Tue, 30 Apr 2024 14:52:44 +0000 (16:52 +0200)] 
[3.12] gh-117860: Add tests for resolving names when import rebind names (GH-118176) (GH-118432)

Add tests for "import", pkgutil.resolve_name() and unittest.mock.path()
for cases when "import a.b as x" and "from a import b as x" give
different results.
(cherry picked from commit c0eaa232f63a62e0e0408911ab5f118dca2af607)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
18 months ago[3.12] gh-118404: Fix inspect.signature() for non-comparable callables (GH-118405...
Miss Islington (bot) [Tue, 30 Apr 2024 12:33:54 +0000 (14:33 +0200)] 
[3.12] gh-118404: Fix inspect.signature() for non-comparable callables (GH-118405) (GH-118424)

(cherry picked from commit 11f8348d78c22f85694d7a424541b34d6054a8ee)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
18 months ago[3.12] gh-85453: Consistent backquotes on None occurences across datetime.rst (GH...
Miss Islington (bot) [Tue, 30 Apr 2024 08:44:23 +0000 (10:44 +0200)] 
[3.12] gh-85453: Consistent backquotes on None occurences across datetime.rst (GH-118282) (#118419)

(cherry picked from commit 0f797402bc77192c76a952410ca8e17359feab3c)

Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
18 months agogh-118347: Fix Windows installer not updating launcher (GH-118386)
Miss Islington (bot) [Mon, 29 Apr 2024 21:16:17 +0000 (23:16 +0200)] 
gh-118347: Fix Windows installer not updating launcher (GH-118386)

(cherry picked from commit 96d8ca7ad6c4f23f023dd6ed0abd042b29dff4a2)

Co-authored-by: Steve Dower <steve.dower@python.org>
18 months ago[3.12] gh-118359: Improve docs for Bdb.user_call (GH-118368) (#118410)
Miss Islington (bot) [Mon, 29 Apr 2024 21:07:56 +0000 (23:07 +0200)] 
[3.12] gh-118359: Improve docs for Bdb.user_call (GH-118368) (#118410)

gh-118359: Improve docs for Bdb.user_call (GH-118368)

The `argument_list` parameter of bdb.Bdb.user_call has been useless for 25 years. It is retained for backwards compatibility, but it will always be None.
(cherry picked from commit 8e4fb5d260e529c9d4ca60980225fbd00dd5c3c8)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
18 months ago[3.12] gh-118401: Docs: Use Sphinx short options (GH-118403) (#118407)
Miss Islington (bot) [Mon, 29 Apr 2024 20:31:14 +0000 (22:31 +0200)] 
[3.12] gh-118401: Docs: Use Sphinx short options (GH-118403) (#118407)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
18 months ago[3.12] Docs: Upgrade to Sphinx 7.3 (GH-118397) (#118400)
Miss Islington (bot) [Mon, 29 Apr 2024 17:58:06 +0000 (19:58 +0200)] 
[3.12] Docs: Upgrade to Sphinx 7.3 (GH-118397) (#118400)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
18 months ago[3.12] gh-117566: fix IPv6Address.is_loopback for IPv4-mapped loopbacks (GH-117567...
Miss Islington (bot) [Mon, 29 Apr 2024 14:41:26 +0000 (16:41 +0200)] 
[3.12] gh-117566: fix IPv6Address.is_loopback for IPv4-mapped loopbacks (GH-117567) (GH-118391)

gh-117566: fix IPv6Address.is_loopback for IPv4-mapped loopbacks (GH-117567)

While properties like IPv6Address.is_private account for IPv4-mapped
IPv6 addresses, such as for example:

    >>> ipaddress.ip_address("192.168.0.1").is_private
    True
    >>> ipaddress.ip_address("::ffff:192.168.0.1").is_private
    True
...the same doesn't currently apply to the is_loopback property:
    >>> ipaddress.ip_address("127.0.0.1").is_loopback
    True
    >>> ipaddress.ip_address("::ffff:127.0.0.1").is_loopback
    False

At minimum, this inconsistency between different properties is
counter-intuitive. Moreover, ::ffff:127.0.0.0/104 is for all intents and
purposes a loopback address, and should be treated as such.

(cherry picked from commit fb7f79b4da35b75cdc82ff3cf20816d2bf93d416)

Co-authored-by: Faidon Liambotis <paravoid@debian.org>
18 months ago[3.12] gh-101100: Fix Sphinx warnings in `library/faulthandler.rst` (GH-118353) ...
Miss Islington (bot) [Sun, 28 Apr 2024 18:41:02 +0000 (20:41 +0200)] 
[3.12] gh-101100: Fix Sphinx warnings in `library/faulthandler.rst` (GH-118353) (#118366)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
18 months ago[3.12] gh-101100: Fix Sphinx warnings in `whatsnew/3.10.rst` (GH-118356) (#118367)
Miss Islington (bot) [Sun, 28 Apr 2024 18:40:46 +0000 (20:40 +0200)] 
[3.12] gh-101100: Fix Sphinx warnings in `whatsnew/3.10.rst` (GH-118356) (#118367)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
18 months ago[3.12] gh-101100: Fix Sphinx warnings in `whatsnew/3.9.rst` (GH-118364) (#118365)
Hugo van Kemenade [Sun, 28 Apr 2024 17:52:58 +0000 (20:52 +0300)] 
[3.12] gh-101100: Fix Sphinx warnings in `whatsnew/3.9.rst` (GH-118364) (#118365)

18 months ago[3.12] Fix note in Enum.__new__ docs (GH-118284) (#118325)
Jelle Zijlstra [Fri, 26 Apr 2024 23:25:31 +0000 (16:25 -0700)] 
[3.12] Fix note in Enum.__new__ docs (GH-118284) (#118325)

(cherry picked from commit 5a4d3df2fa02409ffd2a90cd75b67370206e9891)

Co-authored-by: Philipp A <flying-sheep@web.de>
18 months ago[3.12] gh-117928: Bump the minimum Sphinx version to 6.2.1 (GH-117853) (#118321)
Kirill Podoprigora [Fri, 26 Apr 2024 14:18:58 +0000 (17:18 +0300)] 
[3.12] gh-117928: Bump the minimum Sphinx version to 6.2.1 (GH-117853) (#118321)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
18 months ago[3.12] gh-118235: Skip RAISE_SYNTAX_ERROR rules in the grammar spec (GH-118237) ...
Miss Islington (bot) [Fri, 26 Apr 2024 09:56:10 +0000 (11:56 +0200)] 
[3.12] gh-118235: Skip RAISE_SYNTAX_ERROR rules in the grammar spec (GH-118237) (GH-118309)

gh-118235: Skip RAISE_SYNTAX_ERROR rules in the grammar spec (GH-118237)
(cherry picked from commit ef940dec409f0a9e4f353c6188990aeb3ad4ffb4)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
18 months ago[3.12] gh-118042: Fix error in Telnet.__del__ when __init__() was not called (GH...
Serhiy Storchaka [Fri, 26 Apr 2024 05:53:54 +0000 (08:53 +0300)] 
[3.12] gh-118042: Fix error in Telnet.__del__ when __init__() was not called (GH-118274)

18 months ago[3.12] gh-118207: Rename the COMMON_FIELDS macro in funcobject.h and undef it after...
Miss Islington (bot) [Fri, 26 Apr 2024 05:29:45 +0000 (07:29 +0200)] 
[3.12] gh-118207: Rename the COMMON_FIELDS macro in funcobject.h and undef it after use (GH-118208) (#118269)

gh-118207: Rename the COMMON_FIELDS macro in funcobject.h and undef it after use (GH-118208)
(cherry picked from commit 796b3fb28057948ea5b98f7eb0c0f3af6a1e276e)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
18 months ago[3.12] gh-118221: Always use the default row factory in sqlite3.iterdump() (#118223...
Erlend E. Aasland [Thu, 25 Apr 2024 08:33:35 +0000 (10:33 +0200)] 
[3.12] gh-118221: Always use the default row factory in sqlite3.iterdump() (#118223) (#118270)

sqlite3.iterdump() depends on the row factory returning resulting rows
as tuples; it will fail with custom row factories like for example a
dict factory.

With this commit, we explicitly reset the row factory of the cursor used
by iterdump(), so we always get predictable results. This does not
affect the row factory of the parent connection.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
18 months ago[3.12] GH-117894: prevent aclose()/athrow() being re-used after StopIteration (GH...
Thomas Grainger [Thu, 25 Apr 2024 07:13:47 +0000 (08:13 +0100)] 
[3.12] GH-117894: prevent aclose()/athrow() being re-used after StopIteration (GH-117851) (GH-118226)

(cherry picked from commit 7d369d471cf2b067c4d795d70b75201c48b46f5b)

18 months ago[3.12] gh-117968: Make the test for closed file more safe in the C API tests (GH...
Miss Islington (bot) [Thu, 25 Apr 2024 05:16:43 +0000 (07:16 +0200)] 
[3.12] gh-117968: Make the test for closed file more safe in the C API tests (GH-118230) (GH-118266)

The behavior of fileno() after fclose() is undefined, but it is the only
practical way to check whether the file was closed.
Only test this on the known platforms (Linux, Windows, macOS), where we
already tested that it works.
(cherry picked from commit 546cbcfa0eeeb533950bd49e30423f3d3bbd5ebe)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
18 months ago[3.12] gh-85453: Make numeric literals consistent across datetime.rst (GH-118245...
Miss Islington (bot) [Wed, 24 Apr 2024 20:27:19 +0000 (22:27 +0200)] 
[3.12] gh-85453: Make numeric literals consistent across datetime.rst (GH-118245) (#118248)

Remove code formatting from remaining numeric literals.
(cherry picked from commit 59a4d52973ca73bd739f914e88243a31dbef6b32)

Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
18 months ago[3.12] gh-85453: Adapt datetime.rst to devguide recommendations for code snippets...
Miss Islington (bot) [Wed, 24 Apr 2024 20:02:53 +0000 (22:02 +0200)] 
[3.12] gh-85453: Adapt datetime.rst to devguide recommendations for code snippets and variables (GH-118068) (#118244)

Also remove formatting from numeric literals.

(cherry picked from commit 809aa9a682fc865f7502e7421da0a74d204aab6d)

Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
18 months ago[3.12] gh-118013: Use weakrefs for the cache key in `inspect._shadowed_dict` (GH...
Miss Islington (bot) [Wed, 24 Apr 2024 15:27:08 +0000 (17:27 +0200)] 
[3.12] gh-118013: Use weakrefs for the cache key in `inspect._shadowed_dict` (GH-118202) (#118232)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
18 months ago[3.12] gh-113171: gh-65056: Fix "private" (non-global) IP address ranges (GH-113179...
Petr Viktorin [Wed, 24 Apr 2024 12:29:30 +0000 (14:29 +0200)] 
[3.12] gh-113171: gh-65056: Fix "private" (non-global) IP address ranges (GH-113179) (GH-113186) (GH-118177)

* GH-113171: Fix "private" (non-global) IP address ranges (GH-113179)

The _private_networks variables, used by various is_private
implementations, were missing some ranges and at the same time had
overly strict ranges (where there are more specific ranges considered
globally reachable by the IANA registries).

This patch updates the ranges with what was missing or otherwise
incorrect.

100.64.0.0/10 is left alone, for now, as it's been made special in [1].

The _address_exclude_many() call returns 8 networks for IPv4, 121
networks for IPv6.

[1] https://github.com/python/cpython/issues/61602

* GH-65056: Improve the IP address' is_global/is_private documentation (GH-113186)

It wasn't clear what the semantics of is_global/is_private are and, when
one gets to the bottom of it, it's not quite so simple (hence the
exceptions listed).

(cherry picked from commit 2a4cbf17af19a01d942f9579342f77c39fbd23c4)
(cherry picked from commit 40d75c2b7f5c67e254d0a025e0f2e2c7ada7f69f)

---------

Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
18 months ago[3.12] bpo-40944: Fix IndexError when parse emails with truncated Message-ID, address...
Miss Islington (bot) [Tue, 23 Apr 2024 17:50:43 +0000 (19:50 +0200)] 
[3.12] bpo-40944: Fix IndexError when parse emails with truncated Message-ID, address, routes, etc (GH-20790) (GH-117974)

(cherry picked from commit 1aa8bbe62f27b564cf15e2aad591c62744354a4e)

Co-authored-by: Ivan Savin <acccko@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
18 months ago[3.12] Fix typo in py_compile.rst (GH-118102) (GH-118191)
Miss Islington (bot) [Tue, 23 Apr 2024 17:22:19 +0000 (19:22 +0200)] 
[3.12] Fix typo in py_compile.rst (GH-118102) (GH-118191)

(cherry picked from commit 0d221e9a1952949465df4e737e8d3189bdd9632a)

Co-authored-by: Animesh Kumar <animesh0721@gmail.com>
18 months ago[3.12] gh-118168: Fix Unpack interaction with builtin aliases (GH-118169) (#118178)
Miss Islington (bot) [Tue, 23 Apr 2024 13:57:36 +0000 (15:57 +0200)] 
[3.12] gh-118168: Fix Unpack interaction with builtin aliases (GH-118169) (#118178)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
18 months ago[3.12] gh-59215: unittest: restore _top_level_dir at end of discovery (GH-15242)...
Miss Islington (bot) [Tue, 23 Apr 2024 12:41:32 +0000 (14:41 +0200)] 
[3.12] gh-59215: unittest: restore _top_level_dir at end of discovery (GH-15242) (GH-117508)

* gh-59215: unittest: restore _top_level_dir at end of discovery (GH-15242)
(cherry picked from commit fc5f68e58ecfbc8c452e1c2f33a2a53d3f2d7ea2)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
18 months ago[3.12] gh-116741: Upgrade libexpat to 2.6.2 (GH-117296) (GH-118166)
Miss Islington (bot) [Tue, 23 Apr 2024 01:30:59 +0000 (03:30 +0200)] 
[3.12] gh-116741: Upgrade libexpat to 2.6.2 (GH-117296) (GH-118166)

gh-116741: Upgrade libexpat to 2.6.2 (GH-117296)

Upgrade libexpat to 2.6.2
(cherry picked from commit c9829eec0883a8991ea4d319d965e123a3cf6c20)

Co-authored-by: Seth Michael Larson <seth@python.org>
18 months ago[3.12] gh-117968: Add tests for the part of the PyRun family of the C API (GH-117982...
Serhiy Storchaka [Mon, 22 Apr 2024 18:59:28 +0000 (21:59 +0300)] 
[3.12] gh-117968: Add tests for the part of the PyRun family of the C API (GH-117982) (GH-118011)

(cherry picked from commit 6078f2033ea15a16cf52fe8d644a95a3be72d2e3)

Co-authored-by: NGRsoftlab <78017794+NGRsoftlab@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
18 months ago[3.12] gh-118030: Group definitions for `ParamSpecArgs` and `ParamSpecKwargs` in...
Miss Islington (bot) [Mon, 22 Apr 2024 15:04:11 +0000 (17:04 +0200)] 
[3.12] gh-118030: Group definitions for `ParamSpecArgs` and `ParamSpecKwargs` in `typing.rst` (GH-118154) (#118155)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
18 months ago[3.12] gh-118148: Improve tests for shutil.make_archive() (GH-118149) (GH-118151)
Miss Islington (bot) [Mon, 22 Apr 2024 13:43:34 +0000 (15:43 +0200)] 
[3.12] gh-118148: Improve tests for shutil.make_archive() (GH-118149) (GH-118151)

(cherry picked from commit 287d939ed4445089e8312ab44110cbb6b6306a5c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
18 months ago[3.12] gh-115986 Improve pprint documentation accuracy (GH-117403) (#118146)
Miss Islington (bot) [Mon, 22 Apr 2024 10:34:48 +0000 (12:34 +0200)] 
[3.12] gh-115986 Improve pprint documentation accuracy (GH-117403) (#118146)

(cherry picked from commit ceb6038b053c403bed3ca3a8bd17b7e3fc9aab7d)

Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
18 months ago[3.12] gh-117995: Don't raise DeprecationWarnings for indexed nameless params (GH...
Miss Islington (bot) [Mon, 22 Apr 2024 06:58:41 +0000 (08:58 +0200)] 
[3.12] gh-117995: Don't raise DeprecationWarnings for indexed nameless params (GH-118001) (#118142)

Filter out '?NNN' placeholders when looking for named params.

(cherry picked from commit 550483b7e6c54b2a25d4db0c4ca41bd9c1132f93)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: AN Long <aisk@users.noreply.github.com>
18 months ago[3.12] Docs: replace Harry Potter reference with Monty Python (GH-118130) (#118135)
Miss Islington (bot) [Sun, 21 Apr 2024 18:10:15 +0000 (20:10 +0200)] 
[3.12] Docs: replace Harry Potter reference with Monty Python (GH-118130) (#118135)

Docs: replace Harry Potter reference with Monty Python (GH-118130)
(cherry picked from commit 1446024124fb98c3051199760380685f8a2fd127)

Co-authored-by: Clément Robert <cr52@protonmail.com>
18 months ago[3.12] gh-118121: Fix `test_doctest.test_look_in_unwrapped` (#118122) (#118129)
Nikita Sobolev [Sun, 21 Apr 2024 07:41:54 +0000 (10:41 +0300)] 
[3.12] gh-118121: Fix `test_doctest.test_look_in_unwrapped` (#118122) (#118129)

18 months ago[3.12] Clarifying nonlocal doc: SyntaxError is raised if nearest enclosing scope...
Miss Islington (bot) [Sun, 21 Apr 2024 01:50:01 +0000 (03:50 +0200)] 
[3.12] Clarifying nonlocal doc: SyntaxError is raised if nearest enclosing scope is global (GH-114009) (#118128)

Clarifying nonlocal doc: SyntaxError is raised if nearest enclosing scope is global (GH-114009)
(cherry picked from commit 1558d993166636f371c1003107ec979db6744f21)

Co-authored-by: Quazi Irfan <quazirfan@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
18 months ago[3.12] GH-115874: Fix segfault in FutureIter_dealloc (GH-118114)
Miss Islington (bot) [Fri, 19 Apr 2024 22:53:18 +0000 (00:53 +0200)] 
[3.12] GH-115874: Fix segfault in FutureIter_dealloc (GH-118114)

GH-115874: Fix segfault in FutureIter_dealloc (GH-117741)
(cherry picked from commit d8f350309ded3130c43f0d2809dcb8ec13112320)

Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
18 months ago[3.12] gh-118100: Improve links in `ast.rst` (GH-118101) (#118110)
Miss Islington (bot) [Fri, 19 Apr 2024 18:34:55 +0000 (20:34 +0200)] 
[3.12] gh-118100: Improve links in `ast.rst` (GH-118101) (#118110)

gh-118100: Improve links in `ast.rst` (GH-118101)
(cherry picked from commit 2aa11cca115add03f39cb6cd7299135ecf4d4d82)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
18 months ago[3.12] gh-114053: Fix bad interaction of PEP-695, PEP-563 and ``get_type_hints``...
Alex Waygood [Fri, 19 Apr 2024 13:41:28 +0000 (14:41 +0100)] 
[3.12] gh-114053: Fix bad interaction of PEP-695, PEP-563 and ``get_type_hints`` (#118009) (#118104)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
18 months ago[3.12] gh-88035: update doc-string of `epoch` in timemodule.c (GH-118076) (GH-118097)
Miss Islington (bot) [Fri, 19 Apr 2024 11:44:59 +0000 (13:44 +0200)] 
[3.12] gh-88035: update doc-string of `epoch` in timemodule.c (GH-118076) (GH-118097)

Follow GH-88035, update doc-string of epoch in timemodule.c

The epoch is `January 1st, 1970 on all platforms`, according to
current documentation.
(cherry picked from commit 7c6cc00211772cc2afe0bc5e996b6d28f925d133)

Co-authored-by: lit <litlighilit@foxmail.com>