]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
12 months ago[3.12] gh-125818: Fix incorrect signature of argument `skip_file_prefixes` in warning...
Miss Islington (bot) [Thu, 31 Oct 2024 01:31:35 +0000 (02:31 +0100)] 
[3.12] gh-125818: Fix incorrect signature of argument `skip_file_prefixes` in warnings docs (GH-125823) (GH-126217)

gh-125818: Fix incorrect signature of argument `skip_file_prefixes` in warnings docs (GH-125823)

Change documentation
(cherry picked from commit d467d9246cbe0ce5dc149c4c74223bb8374ece73)

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
12 months ago[3.12] gh-116633: Add a note about buggy behavior of csv.QUOTE_NOTNULL and csv.QUOTE_...
Prometheus3375 [Thu, 31 Oct 2024 00:08:28 +0000 (03:08 +0300)] 
[3.12] gh-116633: Add a note about buggy behavior of csv.QUOTE_NOTNULL and csv.QUOTE_STRINGS (GH-117235)

* Add a note about bug

* Properly link constants

12 months ago[3.12]: gh-103484: Relink _xxsubinterpretersmodule.c in whatsnew/3.12.rst (GH-124183)
Rafael Fontenelle [Wed, 30 Oct 2024 20:46:13 +0000 (17:46 -0300)] 
[3.12]: gh-103484: Relink _xxsubinterpretersmodule.c in whatsnew/3.12.rst (GH-124183)

Relink _xxsubinterpretersmodule.c in whatsnew/3.12.rst

12 months ago[3.12] Prefer "similar" over "equivalent" in tutorial (GH-125343) (GH-125373)
Miss Islington (bot) [Wed, 30 Oct 2024 20:34:13 +0000 (21:34 +0100)] 
[3.12] Prefer "similar" over "equivalent" in tutorial (GH-125343) (GH-125373)

Prefer "similar" over "equivalent" in tutorial (GH-125343)

In the datastructures tutorial doc, some operations are described as
"equivalent to" others. This has led to some user-confusion -- at
least in the Discourse forums -- about cases in which the operations
differ.

This change doesn't systematically eliminate the word "equivalent"
from the tutorial. It just substitutes "similar to" in several cases
in which "equivalent to" could mislead users into expecting exact
equivalence.
(cherry picked from commit 4a2282b0679bbf7b7fbd36aae1b1565145238961)

Co-authored-by: Stephen Rosen <sirosen@globus.org>
12 months agogh-125315: Avoid crashing in _wmimodule due to slow WMI calls on some Windows machine...
Miss Islington (bot) [Wed, 30 Oct 2024 20:17:35 +0000 (21:17 +0100)] 
gh-125315: Avoid crashing in _wmimodule due to slow WMI calls on some Windows machines (GH-126141)

(cherry picked from commit 60c415bd531392a239c23c754154a7944695ac99)

Co-authored-by: Steve Dower <steve.dower@python.org>
12 months ago[3.12] gh-60712: Include the "object" type in the lists of documented types (GH-10303...
Miss Islington (bot) [Wed, 30 Oct 2024 20:15:24 +0000 (21:15 +0100)] 
[3.12] gh-60712: Include the "object" type in the lists of documented types (GH-103036) (GH-126198)

gh-60712: Include the "object" type in the lists of documented types (GH-103036)

* add test for the predefined object's attributes

* Include the "object" type in the lists of documented types

* remove 'or' from augment tuple

* đź“śđź¤– Added by blurb_it.

* Add cross-reference to news

* Fix format for the function parameter

* Add space

* add reference for the 'object'

* add reference for NotImplemented

* Change ref:`string <textseq>`  as class:`str`

* remove hyphen from `newly-created`

* Update Doc/reference/datamodel.rst

'dictionaries' to 'dict'

* Update predefined attribute types in testPredefinedAttrs

* Change `universal type` as `top type`

* Don't mention about the top type

* Update the description of richcmpfuncs

* Update Doc/library/stdtypes.rst

* Revert: Hierarchy Section in Data Model Documentation

* Revert to original explanations of __new__ and __init__ methods in datamodel.rst for improved clarity.

* Update Doc/reference/datamodel.rst

* Remove blank line

* Use ref:`str <textseq>` instead of :class:`str

* Revert changes the description of Other Built-in Types in stdtypes.rst

* Update Doc/reference/datamodel.rst

---------

(cherry picked from commit 4f826214b30ad50365f45bf07e4a02f34f897ab5)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
12 months ago[3.12] gh-126055: Add omitted command (in docs [os.walk]) for code to fulfill `shuti...
Miss Islington (bot) [Wed, 30 Oct 2024 20:14:27 +0000 (21:14 +0100)] 
[3.12] gh-126055:  Add omitted command (in docs [os.walk]) for code to fulfill `shutil.rmtree` algorithm (GH-126067) (GH-126200)

gh-126055:  Add omitted command (in docs [os.walk]) for code to fulfill `shutil.rmtree` algorithm (GH-126067)

* gh-126055:  Add omitted command (in docs [os.walk]) for code to fulfill `shutil.rmtree` algorithm.

Resolves GH-126055

* gh-126055:  Fix omitted code highlighting
(cherry picked from commit 597d814334742dde386a4d2979b9418aee6fcaba)

Co-authored-by: Victor Wheeler <vwheeler63@users.noreply.github.com>
12 months ago[3.12] Fix incorrect indentation in importlib.metadata.rst (GH-126189) (GH-126194)
Miss Islington (bot) [Wed, 30 Oct 2024 18:01:39 +0000 (19:01 +0100)] 
[3.12] Fix incorrect indentation in importlib.metadata.rst (GH-126189) (GH-126194)

Fix incorrect indentation in importlib.metadata.rst (GH-126189)
(cherry picked from commit 6f512c603465ff3e51e07cb7e1d36b4e5e88905d)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
12 months ago[3.12] gh-85583: Add f-string index in tutorial/inputoutput.rst (GH-21681) (GH-126192)
Miss Islington (bot) [Wed, 30 Oct 2024 17:36:11 +0000 (18:36 +0100)] 
[3.12] gh-85583: Add f-string index in tutorial/inputoutput.rst  (GH-21681) (GH-126192)

gh-85583: Add f-string index in tutorial/inputoutput.rst  (GH-21681)

* bpo-41411 fstring index in tutorial/inputoutput

To assist in searching for fstrings I have added an index

* Add newline

---------

(cherry picked from commit a3443c0e22a8623afe4c0518433b28afbc3a6df6)

Co-authored-by: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
12 months ago[3.12] gh-124612: Use ghcr.io/python/autoconf instead of public image (GH-124657...
Miss Islington (bot) [Wed, 30 Oct 2024 14:22:50 +0000 (15:22 +0100)] 
[3.12] gh-124612: Use ghcr.io/python/autoconf instead of public image (GH-124657) (#126184)

(cherry picked from commit b502573f7f800dbb2e401fa2a7a05eceac692c7a)

Co-authored-by: Donghee Na <donghee.na@python.org>
12 months ago[3.12] gh-126071: Improve formatting of the argparse documentation (GH-126073) (GH...
Serhiy Storchaka [Wed, 30 Oct 2024 09:10:10 +0000 (11:10 +0200)] 
[3.12] gh-126071: Improve formatting of the argparse documentation (GH-126073) (GH-126174)

* Use appropriate roles for ArgumentParser, Action, etc.
* Remove superfluous repeated links.
* Explicitly document signatures and add index entries for some methods
  and classes.
* Make it more clear that some parameters are keyword-only.
* Fix some minor errors.
(cherry picked from commit 2ab377a47c8290f8bf52c8ffb5d7fc4c45452611)

12 months ago[3.12] docs: restore an anchor to for/else (GH-126154) (#126158)
Miss Islington (bot) [Wed, 30 Oct 2024 08:17:16 +0000 (09:17 +0100)] 
[3.12] docs: restore an anchor to for/else (GH-126154) (#126158)

docs: restore an anchor to for/else (GH-126154)
(cherry picked from commit 2d9d10179ff3f13029bf4430e62c455a839987ca)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
12 months ago[3.12] gh-118633: Add warning regarding the unsafe usage of eval and exec (GH-118437...
Brian Schubert [Wed, 30 Oct 2024 06:22:31 +0000 (02:22 -0400)] 
[3.12] gh-118633: Add warning regarding the unsafe usage of eval and exec (GH-118437) (#126162)

(cherry picked from commit 00e5ec0d35193c1665e5c0cfe5ef82eed270d0f4)

Co-authored-by: Daniel Ruf <daniel@daniel-ruf.de>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
12 months ago[3.12] gh-126139: Improve error message location for future statement with unknown...
Brian Schubert [Wed, 30 Oct 2024 00:54:32 +0000 (20:54 -0400)] 
[3.12] gh-126139: Improve error message location for future statement with unknown feature (GH-126140) (#126160)

(cherry picked from commit 224c370a3680132997f1e43d20a3b4ca95a060ab)

12 months ago[3.12] Doc: Note that pydoc uses and prefers ``MANPAGER`` (GH-125362) (#126153)
Miss Islington (bot) [Tue, 29 Oct 2024 23:26:29 +0000 (00:26 +0100)] 
[3.12] Doc: Note that pydoc uses and prefers ``MANPAGER`` (GH-125362) (#126153)

Doc: Note that pydoc uses and prefers ``MANPAGER`` (GH-125362)
(cherry picked from commit 0e45b1fd0ffbb165f580ecdfd5234c1d54389501)

Co-authored-by: Matthieu Ancellin <31126826+mancellin@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
12 months ago[3.12] gh-116938: Fix `dict.update` docstring and remove erraneous full stop from...
Miss Islington (bot) [Tue, 29 Oct 2024 23:22:20 +0000 (00:22 +0100)] 
[3.12] gh-116938: Fix `dict.update` docstring and remove erraneous full stop from `dict` documentation (GH-125421) (#126151)

gh-116938: Fix `dict.update` docstring and remove erraneous full stop from `dict` documentation (GH-125421)
(cherry picked from commit 5527c4051c0b58218ce69044f92b45f1d66ed43f)

Co-authored-by: Prometheus3375 <35541026+Prometheus3375@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
12 months ago[3.12] GH-125866: Improve tests for `pathname2url()` and `url2pathname()` (GH-125993...
Miss Islington (bot) [Tue, 29 Oct 2024 21:02:12 +0000 (22:02 +0100)] 
[3.12] GH-125866: Improve tests for `pathname2url()` and `url2pathname()` (GH-125993) (#126145)

GH-125866: Improve tests for `pathname2url()` and `url2pathname()` (GH-125993)

Merge `URL2PathNameTests` and `PathName2URLTests` test cases (which test
only the Windows-specific implementations from `nturl2path`) into the main
`Pathname_Tests` test case for these functions.

Copy/port some test cases for `pathlib.Path.as_uri()` and `from_uri()`.
(cherry picked from commit 6742f14dfd3fa8ba8a245efa21a4f723160d93d4)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
12 months ago[3.12] Add lightweight comments to conf.py and update docs readme (GH-126100) (#126135)
Miss Islington (bot) [Tue, 29 Oct 2024 19:22:38 +0000 (20:22 +0100)] 
[3.12] Add lightweight comments to conf.py and update docs readme (GH-126100) (#126135)

Add lightweight comments to conf.py and update docs readme (GH-126100)

* Update contributing contact info in readme

* Add lightweight comments to improve docs workflow understanding

* Apply code review suggestions from @hugovk

* Add code review suggestion from @AA-Turner

* Update Doc/conf.py

* Update Doc/conf.py

* Update Doc/conf.py

---------

(cherry picked from commit 9effa0ff06047f3d957bf37267742a98106581ff)

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
12 months ago[3.12] gh-126105: Fix crash in `ast` module, when `._fields` is delet… (#126132)
Kirill Podoprigora [Tue, 29 Oct 2024 18:20:40 +0000 (20:20 +0200)] 
[3.12] gh-126105: Fix crash in `ast` module, when `._fields` is delet… (#126132)

[3.12] gh-126105: Fix crash in `ast` module, when `._fields` is deleted (GH-126115)

Previously, if the `ast.AST._fields` attribute was deleted, attempts to create a new `as`t node would crash due to the assumption that `_fields` always had a non-NULL value. Now it has been fixed by adding an extra check to ensure that `_fields` does not have a NULL value (this can happen when you manually remove `_fields` attribute).
(cherry picked from commit b2eaa75b176e07730215d76d8dce4d63fb493391)

Co-authored-by: sobolevn <mail@sobolevn.me>
12 months ago[3.12] gh-125783: Add tests to prevent regressions with the combination of `ctypes...
Miss Islington (bot) [Tue, 29 Oct 2024 13:15:09 +0000 (14:15 +0100)] 
[3.12] gh-125783: Add tests to prevent regressions with the combination of `ctypes` and metaclasses. (GH-125881) (GH-125988)

cherry picked from commit 13844094609cf8265a2eed023e33c7002f3f530d
by Jun Komoda

Also: Add test_ctypes/_support.py from 3.13+
This partially backports be89ee5649031e08f191bf596fa20a09c5698079
(https://github.com/python/cpython/pull/113727)
by AN Long

Co-authored-by: Jun Komoda <45822440+junkmd@users.noreply.github.com>
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
12 months ago[3.12] gh-126106: Fix `NULL` possible derefrence in `Modules/_ssl.c` (GH-126111)...
Miss Islington (bot) [Tue, 29 Oct 2024 09:26:28 +0000 (10:26 +0100)] 
[3.12] gh-126106: Fix `NULL` possible derefrence in `Modules/_ssl.c` (GH-126111) (#126117)

gh-126106: Fix `NULL` possible derefrence in `Modules/_ssl.c` (GH-126111)
(cherry picked from commit a64a1c920660b0c1e4dd5a9573004cd527e15184)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months ago[3.12] Align functools.reduce() docstring with PEP-257 (GH-126045) (#126114)
Miss Islington (bot) [Tue, 29 Oct 2024 09:13:52 +0000 (10:13 +0100)] 
[3.12] Align functools.reduce() docstring with PEP-257 (GH-126045) (#126114)

Yak-shave in preparation for Argument Clinic adaption in gh-125999.

(cherry picked from commit 9b14083497f50213f908c1359eeaf47c97161347)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
12 months ago[3.12] gh-126014: Ignore `__pycache__`-only folders in makefile tests (GH-126066...
Miss Islington (bot) [Tue, 29 Oct 2024 08:04:50 +0000 (09:04 +0100)] 
[3.12] gh-126014: Ignore `__pycache__`-only folders in makefile tests (GH-126066) (#126110)

gh-126014: Ignore `__pycache__`-only folders in makefile tests (GH-126066)
(cherry picked from commit aeafaf4cda5bfce44bb054b4c530696901646abe)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
12 months ago[3.12] gh-89762: Document strftime %G, %V, and %u format specifiers (GH-124572) ...
Miss Islington (bot) [Mon, 28 Oct 2024 22:01:18 +0000 (23:01 +0100)] 
[3.12] gh-89762: Document strftime %G, %V, and %u format specifiers (GH-124572) (#126095)

(cherry picked from commit 85799f1ffd5f285ef93a608b0aaf6acbb464ff9d)

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
12 months ago[3.12] gh-124594: Create and reuse the same context for the entire asyncio REPL sessi...
Miss Islington (bot) [Mon, 28 Oct 2024 14:25:00 +0000 (15:25 +0100)] 
[3.12] gh-124594: Create and reuse the same context for the entire asyncio REPL session (GH-124595) (#124849)

* gh-124594: Create and reuse the same context for the entire asyncio REPL session (GH-124595)
(cherry picked from commit 67e01a430f4ecfcb540d6a29b347966ff4e53454)

Co-authored-by: Bartosz Sławecki <bartoszpiotrslawecki@gmail.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
---------

Co-authored-by: Bartosz Sławecki <bartoszpiotrslawecki@gmail.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
12 months ago[3.12] gh-121277: Allow `.. versionadded:: next` in docs (GH-121278) (GH-125980)
Miss Islington (bot) [Mon, 28 Oct 2024 13:30:29 +0000 (14:30 +0100)] 
[3.12] gh-121277: Allow `.. versionadded:: next` in docs (GH-121278) (GH-125980)

Make `versionchanged:: next`` expand to current (unreleased) version.

When a new CPython release is cut, the release manager will replace
all such occurences of "next" with the just-released version.
(See the issue for release-tools and devguide PRs.)

(cherry picked from commit 7d24ea9db3e8fdca52058629c9ba577aba3d8e5c)

Also backports a minor fix-up:
gh-121277: Raise nice error on `next` as second argument to deprecated-removed (GH-124623)

(cherry-picked from commit e349f73a5ad2856b0a7cbe4aef7cc081c7aed777)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
12 months ago[3.12] gh-120313: amend documentation regarding `ctypes._CFuncPtr` (GH-120989) (GH...
Miss Islington (bot) [Mon, 28 Oct 2024 13:21:05 +0000 (14:21 +0100)] 
[3.12] gh-120313: amend documentation regarding `ctypes._CFuncPtr` (GH-120989) (GH-125978)

gh-120313: amend documentation regarding `ctypes._CFuncPtr` (GH-120989)

(cherry picked from commit 417c130ba55ca29e132808a0a500329f73b6ec41)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months ago[3.12] gh-126035: add missing whitespace to *Py_EnterRecursiveCall() messages (GH...
Miss Islington (bot) [Sun, 27 Oct 2024 22:12:20 +0000 (23:12 +0100)] 
[3.12] gh-126035: add missing whitespace to *Py_EnterRecursiveCall() messages (GH-126036) (#126059)

(cherry picked from commit 19e93e2e269889ecb3c4c039091abff489f247c2)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months ago[3.12] gh-124295: Add translation tests for argparse (GH-124803) (GH-126046) (GH...
Serhiy Storchaka [Sun, 27 Oct 2024 18:57:11 +0000 (20:57 +0200)] 
[3.12] gh-124295: Add translation tests for argparse (GH-124803) (GH-126046) (GH-126054)

(cherry picked from commit 0922a4ae0d2803e3a4e9f3d2ccd217364cfd700e)
(cherry picked from commit ff044ed8004e31c1896ca641b81b13ab04e92837)

Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
12 months ago[3.12] gh-125966: fix use-after-free on `fut->fut_callback0` due to an evil callback...
Miss Islington (bot) [Sun, 27 Oct 2024 17:32:11 +0000 (18:32 +0100)] 
[3.12] gh-125966: fix use-after-free on `fut->fut_callback0` due to an evil callback's `__eq__` in asyncio (GH-125967) (#126048)

gh-125966: fix use-after-free on `fut->fut_callback0` due to an evil callback's `__eq__` in asyncio (GH-125967)
(cherry picked from commit ed5059eeb1aa50b481957307db5a34b937497382)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months ago[3.12] gh-125984: fix use-after-free on `fut->fut_{callback,context}0` due to an...
Miss Islington (bot) [Sun, 27 Oct 2024 15:23:07 +0000 (16:23 +0100)] 
[3.12] gh-125984: fix use-after-free on `fut->fut_{callback,context}0` due to an evil `loop.__getattribute__` (GH-126003) (#126044)

gh-125984: fix use-after-free on `fut->fut_{callback,context}0` due to an evil `loop.__getattribute__` (GH-126003)
(cherry picked from commit f819d4301d7c75f02be1187fda017f0e7b608816)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months ago[3.12] gh-84545: Clarify the 'extend' action documentation in argparse (GH-125870...
Miss Islington (bot) [Sat, 26 Oct 2024 18:37:42 +0000 (20:37 +0200)] 
[3.12] gh-84545: Clarify the 'extend' action documentation in argparse (GH-125870) (GH-125965)

(cherry picked from commit da8673da362a2135cd621ac619d3aced6bb55100)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.12] gh-118950: Fix SSLProtocol.connection_lost not being called when OSError is...
Miss Islington (bot) [Sat, 26 Oct 2024 16:32:07 +0000 (18:32 +0200)] 
[3.12] gh-118950: Fix SSLProtocol.connection_lost not being called when OSError is thrown (GH-118960) (#125932)

gh-118950: Fix SSLProtocol.connection_lost not being called when OSError is thrown (GH-118960)

(cherry picked from commit 3f24bde0b6689b8f05872a8118a97908b5a94659)

Co-authored-by: Javad Shafique <javadshafique@hotmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
12 months ago[3.12] gh-125698: Autoconf: Sync EXEEXT and ac_exeext (GH-125995) (#126007)
Miss Islington (bot) [Sat, 26 Oct 2024 15:27:38 +0000 (17:27 +0200)] 
[3.12] gh-125698: Autoconf: Sync EXEEXT and ac_exeext (GH-125995) (#126007)

(cherry picked from commit 8b7cdc5e0c3ee9903d41a2bfc494148db32dc379)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
12 months ago[3.12] gh-125259: Fix error notes removal in enum initialization (GH-125647) (GH...
Ethan Furman [Fri, 25 Oct 2024 23:03:52 +0000 (16:03 -0700)] 
[3.12] gh-125259: Fix error notes removal in enum initialization (GH-125647) (GH-125953)

(cherry picked from commit 34653bba644aa5481613f398153757d7357e39ea)

Co-authored-by: Mario Šaško <mariosasko777@gmail.com>
12 months ago[3.12] gh-125969: fix OOB in `future_schedule_callbacks` due to an evil `call_soon...
Miss Islington (bot) [Fri, 25 Oct 2024 18:38:59 +0000 (20:38 +0200)] 
[3.12] gh-125969: fix OOB in `future_schedule_callbacks` due to an evil `call_soon` (GH-125970) (#125992)

gh-125969: fix OOB in `future_schedule_callbacks` due to an evil `call_soon` (GH-125970)
(cherry picked from commit c5b99f5c2c5347d66b9da362773969c531fb6c85)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
12 months ago[3.12] GH-125789: fix `fut._callbacks` to always return a copy of callbacks (GH-12592...
Miss Islington (bot) [Fri, 25 Oct 2024 14:02:46 +0000 (16:02 +0200)] 
[3.12] GH-125789: fix `fut._callbacks` to always return a copy of callbacks (GH-125922) (#125977)

GH-125789: fix `fut._callbacks` to always return a copy of callbacks (GH-125922)

Fix `asyncio.Future._callbacks` to always return a copy of the internal list of callbacks to avoid mutation from user code affecting the internal state.

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
(cherry picked from commit cae853e3b44cd5cb033b904e163c490dd28bc30a)

12 months ago[3.12] gh-125933: Add ARIA labels to select elements in the version switcher (GH...
Miss Islington (bot) [Thu, 24 Oct 2024 21:00:45 +0000 (23:00 +0200)] 
[3.12] gh-125933: Add ARIA labels to select elements in the version switcher (GH-125934) (#125939)

gh-125933: Add ARIA labels to select elements in the version switcher (GH-125934)
(cherry picked from commit 1306f33c84b2745aa8af5e3e8f680aa80b836c0e)

Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
12 months ago[3.12] gh-125909: Avoid a redirect when linking to the devguide (GH-125826) (#125930)
Miss Islington (bot) [Thu, 24 Oct 2024 16:50:16 +0000 (18:50 +0200)] 
[3.12] gh-125909: Avoid a redirect when linking to the devguide (GH-125826) (#125930)

(cherry picked from commit 5003ad5c5ea508f0dde1b374cd8bc6a481ad5c5d)

Co-authored-by: partev <petrosyan@gmail.com>
12 months ago[3.12] gh-125884: Support breakpoint on functions with annotations (G… (#125903)
Tian Gao [Wed, 23 Oct 2024 22:36:40 +0000 (15:36 -0700)] 
[3.12] gh-125884: Support breakpoint on functions with annotations (G… (#125903)

* [3.12] gh-125884: Support breakpoint on functions with annotations (GH-125892)
(cherry picked from commit 8f2c0f7a03b71485b5635cb47c000e4e8ace8800)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
12 months ago[3.12] gh-124858: fix happy eyeballs refcyles (GH-124859) (#124913)
Miss Islington (bot) [Wed, 23 Oct 2024 19:34:11 +0000 (21:34 +0200)] 
[3.12] gh-124858: fix happy eyeballs refcyles (GH-124859) (#124913)

gh-124858: fix happy eyeballs refcyles (GH-124859)
(cherry picked from commit c066bf553577d1000e208eb078d9e758c3e41186)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
12 months ago[3.12] gh-125355: Rewrite parse_intermixed_args() in argparse (GH-125356) (GH-125839)
Serhiy Storchaka [Tue, 22 Oct 2024 13:23:30 +0000 (16:23 +0300)] 
[3.12] gh-125355: Rewrite parse_intermixed_args() in argparse (GH-125356) (GH-125839)

* The parser no longer changes temporarily during parsing.
* Default values are not processed twice.
* Required mutually exclusive groups containing positional arguments are
  now supported.
* The missing arguments report now includes the names of all required
  optional and positional arguments.
* Unknown options can be intermixed with positional arguments in
  parse_known_intermixed_args().

(cherry picked from commit 759a54d28ffe7eac8c23917f5d3dfad8309856be)

12 months ago[3.12] Doc: Show object descriptions in the table of contents (GH-125757) (#125841)
Miss Islington (bot) [Tue, 22 Oct 2024 13:16:03 +0000 (15:16 +0200)] 
[3.12] Doc: Show object descriptions in the table of contents (GH-125757) (#125841)

(cherry picked from commit 91ddde4af0c3031c84a967bcf59f6fb4f8a48c0d)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
12 months ago[3.12] gh-124448: Update Windows builds to use Tcl/Tk 8.6.15 (GH-125796)
Zachary Ware [Tue, 22 Oct 2024 02:44:56 +0000 (21:44 -0500)] 
[3.12] gh-124448: Update Windows builds to use Tcl/Tk 8.6.15 (GH-125796)

(cherry picked from commit 9d8f2d8e08336695fdade5846da4bbcc3eb5f152)

12 months ago[3.12] gh-53203: Fix test_strptime on Solaris (GH-125785) (GH-125807)
Miss Islington (bot) [Mon, 21 Oct 2024 19:37:34 +0000 (21:37 +0200)] 
[3.12] gh-53203: Fix test_strptime on Solaris (GH-125785) (GH-125807)

Use fixed timezone.
Skip roundtrip tests on locales with 2-digit year.
(cherry picked from commit 9dde4638e44639d45bd7d72e70a8d410995a585a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.12] gh-124969: Make locale.nl_langinfo(locale.ALT_DIGITS) returning a string again...
Miss Islington (bot) [Mon, 21 Oct 2024 19:24:45 +0000 (21:24 +0200)] 
[3.12] gh-124969: Make locale.nl_langinfo(locale.ALT_DIGITS) returning a string again (GH-125774) (GH-125805)

This is a follow up of GH-124974. Only Glibc needed a fix.
Now the returned value is a string consisting of semicolon-separated
symbols on all Posix platforms.
(cherry picked from commit dcc4fb2c9068f60353f0c0978948b7681f7745e6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.12] gh-125766: Docs: minor rewording of installation on Linux section (GH-125794)
Miss Islington (bot) [Mon, 21 Oct 2024 16:56:29 +0000 (18:56 +0200)] 
[3.12] gh-125766: Docs: minor rewording of installation on Linux section (GH-125794)

(cherry picked from commit d67bf2d89ab57f94608d7d2cf949dc4a8749485d)

Co-authored-by: partev <petrosyan@gmail.com>
12 months ago[3.12] Doc: C API: Move `tp_dealloc` paragraph to `tp_dealloc` section (GH-125737...
Miss Islington (bot) [Mon, 21 Oct 2024 16:55:11 +0000 (18:55 +0200)] 
[3.12] Doc: C API: Move `tp_dealloc` paragraph to `tp_dealloc` section (GH-125737) (#125799)

Doc: C API: Move `tp_dealloc` paragraph to `tp_dealloc` section (GH-125737)

It looks like commit 43cf44ddcce6b225f959ea2a53e4817244ca6054
(gh-31501) accidentally moved the paragraph to the `tp_finalize`
section when the intent was to move it to the `tp_dealloc` section
(according to the commit message).

(cherry picked from commit d880c83ff7fb2e464bc4f469d74cc3fc3eca082c)

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
12 months ago[3.12] gh-125660: Reject invalid unicode escapes for Python implementation of JSON...
Miss Islington (bot) [Mon, 21 Oct 2024 13:08:10 +0000 (15:08 +0200)] 
[3.12] gh-125660: Reject invalid unicode escapes for Python implementation of JSON decoder (GH-125683) (GH-125695)

(cherry picked from commit df751363e386d1f77c5ba9515a5539902457d386)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
12 months ago[3.12] gh-125682: Reject non-ASCII digits in the Python implementation of JSON decode...
Miss Islington (bot) [Mon, 21 Oct 2024 13:06:02 +0000 (15:06 +0200)] 
[3.12] gh-125682: Reject non-ASCII digits in the Python implementation of JSON decoder (GH-125687) (GH-125693)

(cherry picked from commit d358425e6968858e52908794d15f37e62abc74ec)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
12 months ago[3.12] gh-125741: Update check_generated_files CI to use our published container...
Erlend E. Aasland [Mon, 21 Oct 2024 10:23:41 +0000 (12:23 +0200)] 
[3.12] gh-125741: Update check_generated_files CI to use our published container image (gh-125744) (#125760)

(cherry picked from commit ed24702bd0f9925908ce48584c31dfad732208b2)

Co-authored-by: Donghee Na <donghee.na@python.org>
12 months ago[3.12] gh-125519: Improve traceback if `importlib.reload()` is called with a non...
Miss Islington (bot) [Mon, 21 Oct 2024 08:20:42 +0000 (10:20 +0200)] 
[3.12] gh-125519: Improve traceback if `importlib.reload()` is called with a non-module object (GH-125520) (#125769)

gh-125519: Improve traceback if `importlib.reload()` is called with a non-module object (GH-125520)
(cherry picked from commit c5c21fee7ae1ea689a351caa454c98e716a6e537)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
12 months ago[3.12] gh-99030: Added documentation links for types and exceptions (GH-123857) ...
Miss Islington (bot) [Mon, 21 Oct 2024 00:43:26 +0000 (02:43 +0200)] 
[3.12] gh-99030: Added documentation links for types and exceptions (GH-123857) (GH-125765)

gh-99030: Added documentation links for types and exceptions (GH-123857)

* Added documentation links for types and exceptions

* Shortened description sentences

* Change content

* Change documentation

* Move seealso

* Add a spaces
(cherry picked from commit 9256be7ff0ab035cfd262127d893c9bc88b3c84c)

Co-authored-by: RUANG (Roy James) <longjinyii@outlook.com>
12 months ago[3.12] gh-125522: Fix bare except in test_math.testTan (GH-125544) (#125727)
Miss Islington (bot) [Sat, 19 Oct 2024 12:07:16 +0000 (14:07 +0200)] 
[3.12] gh-125522: Fix bare except in test_math.testTan (GH-125544) (#125727)

gh-125522: Fix bare except in test_math.testTan (GH-125544)
(cherry picked from commit 4b421e8aca7f2dccc5ac8604b78589941dd7974c)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
12 months ago[3.12] GH-125277: Increase minimum supported Sphinx to 7.2.6 (GH-125368) (#125721)
Miss Islington (bot) [Sat, 19 Oct 2024 04:27:44 +0000 (06:27 +0200)] 
[3.12] GH-125277: Increase minimum supported Sphinx to 7.2.6 (GH-125368) (#125721)

12 months ago[3.12] Add tests for time.strftime() with invalid format string (GH-125696) (GH-125701)
Miss Islington (bot) [Fri, 18 Oct 2024 14:13:31 +0000 (16:13 +0200)] 
[3.12] Add tests for time.strftime() with invalid format string (GH-125696) (GH-125701)

(cherry picked from commit 2e950e341930ea79549137d4d3771d5edb940e65)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.12] gh-125620: Skip check_resource_tracker_death on NetBSD due to long wait for...
Miss Islington (bot) [Fri, 18 Oct 2024 02:25:00 +0000 (04:25 +0200)] 
[3.12] gh-125620: Skip check_resource_tracker_death on NetBSD due to long wait for SIGKILL process termination (GH-125621) (#125673)

gh-125620: Skip check_resource_tracker_death on NetBSD due to long wait for SIGKILL process termination (GH-125621)

* Skip test_resource_tracker_sigkill on NetBSD
(cherry picked from commit a0f5c8e6272a1fd5422892d773923b138e77ae5f)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
12 months ago[3.12] gh-52551: Fix encoding issues in strftime() (GH-125193) (GH-125657) (GH-125661)
Miss Islington (bot) [Thu, 17 Oct 2024 20:04:48 +0000 (22:04 +0200)] 
[3.12] gh-52551: Fix encoding issues in strftime() (GH-125193) (GH-125657) (GH-125661)

Fix time.strftime(), the strftime() method and formatting of the
datetime classes datetime, date and time.

* Characters not encodable in the current locale are now acceptable in
  the format string.
* Surrogate pairs and sequence of surrogatescape-encoded bytes are no
  longer recombinated.
* Embedded null character no longer terminates the format string.

This fixes also gh-78662 and gh-124531.

(cherry picked from commit 08ccbb9b3f5e20a7a0c4cf9995e172b59fb6067b)
(cherry picked from commit ad3eac1963a5f195ef9b2c1dbb5e44fa3cce4c72)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.12] [3.13] gh-123370: Fix the canvas not clearing after running turtledemo.clock...
Miss Islington (bot) [Thu, 17 Oct 2024 17:09:05 +0000 (19:09 +0200)] 
[3.12] [3.13] gh-123370: Fix the canvas not clearing after running turtledemo.clock (gh-123457) (GH-125653) (#125656)

Rewriting the day and date every tick somehow prevented them from being removed either by clicking STOP or loading another example.  The solution is to rewrite them only when they change.
(cherry picked from commit c124577ebe915a00de4033c0f7fa7c47621d79e0)

(cherry picked from commit 30d7e9e721e8201bc7fb23f08a7d88d51eed827d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Wulian <xiguawulian@gmail.com>
12 months ago[3.12] gh-113570: reprlib.repr does not use builtin __repr__ for reshadowed builtins...
Miss Islington (bot) [Thu, 17 Oct 2024 16:59:01 +0000 (18:59 +0200)] 
[3.12] gh-113570: reprlib.repr does not use builtin __repr__ for reshadowed builtins (GH-113577) (GH-125655)

(cherry picked from commit 04d6dd23e2d8a3132772cf7ce928676e26313585)

Co-authored-by: George Pittock <66332098+georgepittock@users.noreply.github.com>
12 months ago[3.12] gh-125625: Check for `py -3.13` in PCbuild/find_python.bat (GH-125649)
Miss Islington (bot) [Thu, 17 Oct 2024 16:01:55 +0000 (18:01 +0200)] 
[3.12] gh-125625: Check for `py -3.13` in PCbuild/find_python.bat (GH-125649)

(cherry picked from commit 0cb20f2e7e867d5c34fc17dd5b8e51e8b0020bb3)

Co-authored-by: Wulian <xiguawulian@gmail.com>
12 months ago[3.12] gh-95836: Add custom type converter examples to argparse tutorial (GH-125376...
Miss Islington (bot) [Thu, 17 Oct 2024 12:42:55 +0000 (14:42 +0200)] 
[3.12] gh-95836: Add custom type converter examples to argparse tutorial (GH-125376) (GH-125642)

(cherry picked from commit dbcc5ac4709dfd8dfaf323d51f135f2218d14068)

Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
12 months ago[3.12] gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (#124959) (#125466)
Thomas Grainger [Thu, 17 Oct 2024 04:45:59 +0000 (05:45 +0100)] 
[3.12] gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (#124959) (#125466)

gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (#124959)

12 months agogh-125550: Enable py.exe to detect Store installs of 3.14 (GH-125551)
Miss Islington (bot) [Wed, 16 Oct 2024 22:25:16 +0000 (00:25 +0200)] 
gh-125550: Enable py.exe to detect Store installs of 3.14 (GH-125551)

(cherry picked from commit 8e7b2a1161744c7d3d90966a65ed6ae1019a65cb)

Co-authored-by: Steve Dower <steve.dower@python.org>
12 months ago[3.12] gh-125451: Fix deadlock in ProcessPoolExecutor shutdown (GH-125492) (#125599)
Sam Gross [Wed, 16 Oct 2024 18:03:32 +0000 (14:03 -0400)] 
[3.12] gh-125451: Fix deadlock in ProcessPoolExecutor shutdown (GH-125492) (#125599)

There was a deadlock when `ProcessPoolExecutor` shuts down at the same
time that a queueing thread handles an error processing a task.

Don't use `_shutdown_lock` to protect the `_ThreadWakeup` pipes -- use
an internal lock instead. This fixes the ordering deadlock where the
`ExecutorManagerThread` holds the `_shutdown_lock` and joins the
queueing thread, while the queueing thread is attempting to acquire the
`_shutdown_lock` while closing the `_ThreadWakeup`.
(cherry picked from commit 760872efecb95017db8e38a8eda614bf23d2a22c)

12 months ago[3.12] gh-125041: test_zlib: For s390x HW acceleration, only skip checking the compre...
Miss Islington (bot) [Wed, 16 Oct 2024 12:44:37 +0000 (14:44 +0200)] 
[3.12] gh-125041: test_zlib: For s390x HW acceleration, only skip checking the compressed bytes (GH-125042) (GH-125526)

(cherry picked from commit cc5a225cdc2a5d4e035dd08d59cef39182c10a6c)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
12 months ago[3.12] gh-100141: Allow pdb to deal with empty file (GH-125425) (#125537)
Miss Islington (bot) [Tue, 15 Oct 2024 16:29:05 +0000 (18:29 +0200)] 
[3.12] gh-100141: Allow pdb to deal with empty file (GH-125425) (#125537)

gh-100141: Allow pdb to deal with empty file (GH-125425)
(cherry picked from commit bb9604b62ae7f043594ffea9287f9213067cc7fb)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
12 months ago[3.12] gh-89819: Add argument_default and conflict_handler to add_argument_group...
Miss Islington (bot) [Tue, 15 Oct 2024 16:09:55 +0000 (18:09 +0200)] 
[3.12] gh-89819: Add argument_default and conflict_handler to add_argument_group() docs (GH-125379) (GH-125539)

(cherry picked from commit c9826c11db25e81b1a90c837f84074879f1b1126)

Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
12 months ago[3.12] gh-125422: Don't set the caller's f_trace if it's botframe (GH-125427) (#125531)
Miss Islington (bot) [Tue, 15 Oct 2024 15:26:41 +0000 (17:26 +0200)] 
[3.12] gh-125422: Don't set the caller's f_trace if it's botframe (GH-125427) (#125531)

gh-125422: Don't set the caller's f_trace if it's botframe (GH-125427)
(cherry picked from commit 703227dd021491ceb9343f69fa48f4b6a05adbb3)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
12 months ago[3.12] gh-125514: fix bug in test_traceback utility. Specify exception types in excep...
Miss Islington (bot) [Tue, 15 Oct 2024 14:28:23 +0000 (16:28 +0200)] 
[3.12] gh-125514: fix bug in test_traceback utility. Specify exception types in except: clauses (GH-125516) (#125525)

gh-125514: fix bug in test_traceback utility. Specify exception types in except: clauses (GH-125516)
(cherry picked from commit 55c4f4c30b49734ce35dc88139b8b4fdc94c66fd)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
12 months ago[3.12] Doc: Update CVE URL (GH-125489) (#125504)
Miss Islington (bot) [Tue, 15 Oct 2024 07:36:17 +0000 (09:36 +0200)] 
[3.12] Doc: Update CVE URL (GH-125489) (#125504)

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
12 months ago[3.12] gh-85453: Improve variable mark up for datetime.rst (GH-120702) (#125491)
Miss Islington (bot) [Mon, 14 Oct 2024 22:09:23 +0000 (00:09 +0200)] 
[3.12] gh-85453: Improve variable mark up for datetime.rst (GH-120702) (#125491)

Variables and literals are marked up using backticks.
(cherry picked from commit 2a5cdb251674ce8d9a824c102f7cd846d944cfa4)

Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
12 months ago[3.12] Fix idlelib typos (GH-125484) (#125488)
Miss Islington (bot) [Mon, 14 Oct 2024 21:34:38 +0000 (23:34 +0200)] 
[3.12] Fix idlelib typos (GH-125484) (#125488)

Fix idlelib typos (GH-125484)

Propagate fixes in Doc/library/idle.rst to help.html.
Change 'interruptable' to 'interruptible' in run.py.
The latter was reported by ember91 in PR 125473.
(cherry picked from commit 3fea1d000ef0a74062fd3fe218ad94618b08d9f2)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
12 months ago[3.12] gh-53203: Fix strptime() for %c, %x and %X formats on many locales (GH-125406...
Serhiy Storchaka [Mon, 14 Oct 2024 20:59:01 +0000 (23:59 +0300)] 
[3.12] gh-53203: Fix strptime() for %c, %x and %X formats on many locales (GH-125406) (GH-125454) (GH-125483)

Fixed most locales that use non-ASCII digits, like Persian, Burmese,
Odia and Shan.
(cherry picked from commit 5f4e5b598cab86d5fd5727d423c9728221889ed0)

(cherry picked from commit cbcdf34a4b69a28a7e31715423fb080cb5cf8075)

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
12 months ago[3.12] gh-125461: Remove Python 2 from identifiers in doc (GH-125462) (#125465)
Miss Islington (bot) [Mon, 14 Oct 2024 15:49:56 +0000 (17:49 +0200)] 
[3.12] gh-125461: Remove Python 2 from identifiers in doc (GH-125462) (#125465)

gh-125461: Remove Python 2 from identifiers in doc (GH-125462)

Remove Python 2 from identifiers in doc
(cherry picked from commit 5dac0dceda9097d46a0b5a6ad7c927e002c6c7a5)

Co-authored-by: Paul Hoffman <phoffman@proper.com>
12 months ago[3.12] gh-86357: argparse: use str() consistently and explicitly to print choices...
Serhiy Storchaka [Mon, 14 Oct 2024 07:04:44 +0000 (10:04 +0300)] 
[3.12] gh-86357: argparse: use str() consistently and explicitly to print choices (GH-117766) (GH-125432)

(cherry picked from commit 66b3922b97388c328c9bd8df050eef11c0261fae)

Signed-off-by: Jan Chren ~rindeal <dev.rindeal@gmail.com>
Co-authored-by: rindeal <dev.rindeal@gmail.com>
12 months ago[3.12] gh-123133: clarify p=0 case for "f" and "e" formatting types (GH-125426) ...
Miss Islington (bot) [Mon, 14 Oct 2024 04:51:59 +0000 (06:51 +0200)] 
[3.12] gh-123133: clarify p=0 case for "f" and "e" formatting types (GH-125426) (#125429)

gh-123133: clarify p=0 case for "f" and "e" formatting types (GH-125426)
(cherry picked from commit cfc27bc50fe165330f2295f9ac0ad56ca5b0f31c)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.12] GH-125069: Fix inconsistent joining in `WindowsPath(PosixPath(...))` (GH-12515...
Barney Gale [Sun, 13 Oct 2024 18:18:41 +0000 (19:18 +0100)] 
[3.12] GH-125069: Fix inconsistent joining in `WindowsPath(PosixPath(...))` (GH-125156) (#125410)

`PurePath.__init__()` incorrectly uses the `_raw_paths` of a given
`PurePath` object with a different flavour, even though the procedure to
join path segments can differ between flavours.

This change makes the `_raw_paths`-enabled deferred joining apply _only_
when the path flavours match.

(cherry picked from commit cb8e5995d89d9b90e83cf43310ec50e177484e70)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months ago[3.12] gh-101291: Add versionadded directives for PyUnstable_Long_* (GH-125384) ...
Miss Islington (bot) [Sun, 13 Oct 2024 17:45:59 +0000 (19:45 +0200)] 
[3.12] gh-101291: Add versionadded directives for PyUnstable_Long_* (GH-125384) (#125408)

gh-101291: Add versionadded directives for PyUnstable_Long_* (GH-125384)
(cherry picked from commit c6d7b644c2425b397cfb641f336bea70eb8a329a)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
12 months ago[3.12] gh-125383: Update `fib` function comment for accuracy (GH-125386) (#125396)
Miss Islington (bot) [Sun, 13 Oct 2024 11:17:55 +0000 (13:17 +0200)] 
[3.12] gh-125383: Update `fib` function comment for accuracy (GH-125386) (#125396)

gh-125383: Update `fib` function comment for accuracy (GH-125386)

`Doc/tutorial/controlflow.rst`: fix comment for `fib` function
(cherry picked from commit 283ea5f3b2b6a18605b8598a979afe263b0f21ce)

Co-authored-by: Wulian <xiguawulian@gmail.com>
12 months ago[3.12] gh-61698: Use launchctl to detect macOS window manager in tests (GH-118390...
Miss Islington (bot) [Sun, 13 Oct 2024 08:39:05 +0000 (10:39 +0200)] 
[3.12] gh-61698: Use launchctl to detect macOS window manager in tests (GH-118390) (#125393)

(cherry picked from commit ce740d46246b28bb675ba9d62214b59be9b8411e)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
12 months ago[3.12] gh-86673: Loosen test_ttk.test_identify() requirements (GH-125335) (#125391)
Miss Islington (bot) [Sun, 13 Oct 2024 07:56:04 +0000 (09:56 +0200)] 
[3.12] gh-86673: Loosen test_ttk.test_identify() requirements (GH-125335) (#125391)

In aeca373b3 (PR gh-12011, issue gh-71500), test_identify() was changed to expect different results on Darwin. Ned's fix was later adjusted by e52f9bee8. This workaround is only needed for some variants of Tk/Tcl on macOS, so we now allow both the workaround and the generic results for these tests.
(cherry picked from commit 4197a796ecf3a751ad7245b8d4f980d6d444b614)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
12 months ago[3.12] Trivial change: Update comments in activate about what running hash -r does...
Miss Islington (bot) [Sun, 13 Oct 2024 07:55:37 +0000 (09:55 +0200)] 
[3.12] Trivial change: Update comments in activate about what running hash -r does (GH-125385) (#125388)

(cherry picked from commit 82bcaf15890cf85b76b4f62d2dd1710bb49c3ed1)

12 months ago[3.12] gh-125289: Update sample code in asyncio-task.rst (GH-125292) (GH-125375)
Miss Islington (bot) [Sat, 12 Oct 2024 20:44:41 +0000 (22:44 +0200)] 
[3.12] gh-125289: Update sample code in asyncio-task.rst (GH-125292) (GH-125375)

gh-125289: Update sample code in asyncio-task.rst (GH-125292)

* Update sample code in asyncio-task.rst

This will change **coroutines** sample code in the **Awaitables** section and make the example clearer.

* Update Doc/library/asyncio-task.rst

Revert the added print

* Update Doc/library/asyncio-task.rst

---------

(cherry picked from commit fa52b82c91a8e1a0971bd5fef656473ec93f41e3)

Co-authored-by: Ghorban M. Tavakoly <58617996+galmyk@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
12 months ago[3.12] gh-53203: Fix strptime() for %c and %x formats on many locales (GH-124946...
Miss Islington (bot) [Sat, 12 Oct 2024 18:02:52 +0000 (20:02 +0200)] 
[3.12] gh-53203: Fix strptime() for %c and %x formats on many locales (GH-124946) (GH-125370)

In some locales (like French or Hebrew) the full or abbreviated names of
the default month and weekday used in __calc_date_time can be part of
other name or constant part of the %c format. The month name can also
match %m with constant suffix (like in Japanese). So the code failed to
correctly distinguish formats %a, %A, %b, %B and %m.

Cycle all month and all days of the week to find the variable part
and distinguish %a from %A and %b from %B or %m.

Fixed locales for the following languges:
Arabic, Bislama, Breton, Bodo, Kashubian, Chuvash, Estonian, French, Irish,
Ge'ez, Gurajati, Manx Gaelic, Hebrew, Hindi, Chhattisgarhi, Haitian Kreyol,
Japanese, Kannada, Korean, Marathi, Malay, Norwegian, Nynorsk, Punjabi,
Rajasthani, Tok Pisin, Yoruba, Yue Chinese, Yau/Nungon and Chinese.

(cherry picked from commit c05f9dde8a12dfd63d3ade93da616042df2dc925)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Eli Bendersky <eliben@gmail.com>
12 months ago[3.12] gh-85935: Explicitly document the case nargs=0 in argparse (GH-125302) (GH...
Miss Islington (bot) [Sat, 12 Oct 2024 13:02:14 +0000 (15:02 +0200)] 
[3.12] gh-85935: Explicitly document the case nargs=0 in argparse (GH-125302) (GH-125358)

(cherry picked from commit 07c2d15977738165e9dc4248e7edda7c75ecc14b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.12] gh-125254: Fix error report about ambiguous option in argparse (GH-125273...
Miss Islington (bot) [Sat, 12 Oct 2024 13:00:24 +0000 (15:00 +0200)] 
[3.12] gh-125254: Fix error report about ambiguous option in argparse (GH-125273) (GH-125360)

This was a regression introduced in gh-58573. It was only tested for the
case when the ambiguous option is the last argument in the command line.
(cherry picked from commit 63cf4e914f879ee28a75c02e867baa7c6047ea2b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.12] gh-124309: fix staggered race on eager tasks (GH-124847) (#125340)
Miss Islington (bot) [Sat, 12 Oct 2024 03:12:11 +0000 (05:12 +0200)] 
[3.12] gh-124309: fix staggered race on eager tasks (GH-124847) (#125340)

gh-124309: fix staggered race on eager tasks (GH-124847)

This patch is entirely by Thomas and Peter

(cherry picked from commit 979c0df7c0adfb744159a5fc184043dc733d8534)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
12 months ago[3.12] Doc: Fix a typo in "Function Examples" in the control-flow tutorial (GH-125338...
Miss Islington (bot) [Sat, 12 Oct 2024 00:47:23 +0000 (02:47 +0200)] 
[3.12] Doc: Fix a typo in "Function Examples" in the control-flow tutorial (GH-125338) (#125342)

Doc: Fix a typo in "Function Examples" in the control-flow tutorial (GH-125338)
(cherry picked from commit 5a074aab845f82f4a150c27b905dae05c337d381)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
12 months ago[3.12] gh-116938: Clarify documentation of `dict` and `dict.update` regarding the...
Miss Islington (bot) [Fri, 11 Oct 2024 23:23:54 +0000 (01:23 +0200)] 
[3.12] gh-116938: Clarify documentation of `dict` and `dict.update` regarding the positional argument they accept (GH-125213) (#125337)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
12 months ago[3.12] gh-124917: Allow keyword args to os.path.exists/lexists on Windows (GH-124918...
Jelle Zijlstra [Fri, 11 Oct 2024 22:18:46 +0000 (15:18 -0700)] 
[3.12] gh-124917: Allow keyword args to os.path.exists/lexists on Windows (GH-124918) (#125334)

(cherry picked from commit cc2938a18967c9d462ebb18bc09f73e4364aa7d2)

12 months ago[3.12] gh-125301: Backport some test support helpers (is_apple_mobile, is_apple)...
Serhiy Storchaka [Fri, 11 Oct 2024 11:22:27 +0000 (14:22 +0300)] 
[3.12] gh-125301: Backport some test support helpers (is_apple_mobile, is_apple) (GH-125311)

(cherry picked from commit 391659b3da570bfa28fed5fbdb6f2d9c26ab3dd0)

12 months ago[3.12] Add some doctest cleanups for `configparser` (GH-125288) (#125291)
Miss Islington (bot) [Fri, 11 Oct 2024 09:52:15 +0000 (11:52 +0200)] 
[3.12] Add some doctest cleanups for `configparser` (GH-125288) (#125291)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
12 months ago[3.12] gh-61011: Fix inheritance of nested mutually exclusive groups in argparse...
Miss Islington (bot) [Fri, 11 Oct 2024 09:07:03 +0000 (11:07 +0200)] 
[3.12] gh-61011: Fix inheritance of nested mutually exclusive groups in argparse (GH-125210) (GH-125309)

Previously, all nested mutually exclusive groups lost their connection
to the group containing them and were displayed as belonging directly
to the parser.

(cherry picked from commit 18c74497681e0107d7cde53e63ea42feb38f2176)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Danica J. Sutherland <djsutherland@users.noreply.github.com>
12 months ago[3.12] gh-125058: update `_thread` docs regarding interruptibility of `lock.acquire...
Miss Islington (bot) [Fri, 11 Oct 2024 08:22:34 +0000 (10:22 +0200)] 
[3.12] gh-125058: update `_thread` docs regarding interruptibility of `lock.acquire()` (GH-125141) (#125307)

gh-125058: update `_thread` docs regarding interruptibility of `lock.acquire()` (GH-125141)
(cherry picked from commit 0135848059162ad81478a7776fec622d68a36524)

Co-authored-by: Jan Kaliszewski <zuo@kaliszewski.net>
12 months ago[3.12] gh-125296: Fix strange fragment identifier for `name or flags` in argparse...
Miss Islington (bot) [Fri, 11 Oct 2024 06:39:54 +0000 (08:39 +0200)] 
[3.12] gh-125296: Fix strange fragment identifier for `name or flags` in argparse docs (GH-125297) (#125300)

gh-125296: Fix strange fragment identifier for `name or flags` in argparse docs (GH-125297)
(cherry picked from commit c1913effeed4e4da4d5310a40ab518945001ffba)

Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
12 months ago[3.12] [3.13] gh-124969: Fix locale.nl_langinfo(locale.ALT_DIGITS) (GH-124974) (GH...
Miss Islington (bot) [Fri, 11 Oct 2024 06:37:55 +0000 (08:37 +0200)] 
[3.12] [3.13] gh-124969: Fix locale.nl_langinfo(locale.ALT_DIGITS) (GH-124974) (GH-125232) (GH-125284)

(cherry picked from commit 26a93189e4c3674a9e0acbd7923b1f27ff01419e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Returns a tuple of up to 100 strings for ALT_DIGITS lookup (an empty tuple on most locales).
Previously it returned the first item of that tuple or an empty string.
(cherry picked from commit 21c04e1a972bd1b6285e0ea41fa107d635bbe43a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.12] Doc: Upgrade Sphinx to 8.1 (GH-125276) (#125279)
Miss Islington (bot) [Thu, 10 Oct 2024 20:32:40 +0000 (22:32 +0200)] 
[3.12] Doc: Upgrade Sphinx to 8.1 (GH-125276) (#125279)

Doc: Upgrade Sphinx to 8.1 (GH-125276)
(cherry picked from commit dd0ee201da34d1d4a631d77b420728f9233f53f9)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
12 months ago[3.12] Note argparse exit code in documentation (GH-119568) (GH-125275)
Miss Islington (bot) [Thu, 10 Oct 2024 18:18:01 +0000 (20:18 +0200)] 
[3.12] Note argparse exit code in documentation (GH-119568) (GH-125275)

(cherry picked from commit 3b87fb74c907510402678bf1b7c4a94df0e5e65a)

Co-authored-by: Justin Kunimune <justinkunimune@gmail.com>
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
12 months ago[3.12] gh-121607: Edited source file import recipe to make it more clear (GH-121519...
Miss Islington (bot) [Thu, 10 Oct 2024 17:31:27 +0000 (19:31 +0200)] 
[3.12] gh-121607: Edited source file import recipe to make it more clear (GH-121519) (GH-124081)

gh-121607: Edited source file import recipe to make it more clear (GH-121519)
(cherry picked from commit 38809171b8768517824fb62d48abe2cb0aff8429)

Co-authored-by: Chris Barker <Chris.Barker@noaa.gov>
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>