]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
12 months ago[3.13] gh-125355: Rewrite parse_intermixed_args() in argparse (GH-125356) (GH-125834)
Miss Islington (bot) [Tue, 22 Oct 2024 12:58:05 +0000 (14:58 +0200)] 
[3.13] gh-125355: Rewrite parse_intermixed_args() in argparse (GH-125356) (GH-125834)

* 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)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.13] gh-125811: Remove DeprecationWarnings in test_peg_generator (GH-125812) (...
Miss Islington (bot) [Tue, 22 Oct 2024 09:06:26 +0000 (11:06 +0200)] 
[3.13] gh-125811: Remove DeprecationWarnings in test_peg_generator (GH-125812) (#125831)

gh-125811: Remove DeprecationWarnings in test_peg_generator (GH-125812)
(cherry picked from commit 4efe64aa56e7a9a96b94c0ae0201db8d402a5f53)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
12 months ago[3.13] gh-125716: Use a Global Mutex When Initializing Global State For the _interpqu...
Miss Islington (bot) [Mon, 21 Oct 2024 22:16:32 +0000 (00:16 +0200)] 
[3.13] gh-125716: Use a Global Mutex When Initializing Global State For the _interpqueues Module (gh-125817)

This includes a drive-by cleanup in _queues_init() and _queues_fini().

This change also applies to the _interpchannels module.

(cherry picked from commit 4848b0b92ce2737cea08fa3b322fd0f0a671bb07, AKA gh-125803)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
12 months ago[3.13] gh-125716: Raise an Exception If _globals_init() Fails In the _interpqueues...
Miss Islington (bot) [Mon, 21 Oct 2024 20:05:06 +0000 (22:05 +0200)] 
[3.13] gh-125716: Raise an Exception If _globals_init() Fails In the _interpqueues Module (gh-125808)

The fix applies to the _interpchannels module as well.

I've also included a drive-by typo fix for _interpqueues.

(cherry picked from commit 44f841f01af0fb038e142a07f15eda1ecdd5b08a, AKA gh-125802)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
12 months ago[3.13] gh-53203: Fix test_strptime on Solaris (GH-125785) (GH-125806)
Miss Islington (bot) [Mon, 21 Oct 2024 19:42:18 +0000 (21:42 +0200)] 
[3.13] gh-53203: Fix test_strptime on Solaris (GH-125785) (GH-125806)

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.13] gh-124969: Make locale.nl_langinfo(locale.ALT_DIGITS) returning a string again...
Miss Islington (bot) [Mon, 21 Oct 2024 19:30:23 +0000 (21:30 +0200)] 
[3.13] gh-124969: Make locale.nl_langinfo(locale.ALT_DIGITS) returning a string again (GH-125774) (GH-125804)

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.13] gh-125590: Allow FrameLocalsProxy to delete and pop keys from extra locals...
Miss Islington (bot) [Mon, 21 Oct 2024 17:06:27 +0000 (19:06 +0200)] 
[3.13] gh-125590: Allow FrameLocalsProxy to delete and pop keys from extra locals (GH-125616) (#125797)

gh-125590: Allow FrameLocalsProxy to delete and pop keys from extra locals (GH-125616)
(cherry picked from commit 5b7a872b26a9ba6c93d7c2109559a82d1c1612de)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
12 months ago[3.13] gh-125766: Docs: minor rewording of installation on Linux section (GH-125793)
Miss Islington (bot) [Mon, 21 Oct 2024 16:56:01 +0000 (18:56 +0200)] 
[3.13] gh-125766: Docs: minor rewording of installation on Linux section (GH-125793)

(cherry picked from commit d67bf2d89ab57f94608d7d2cf949dc4a8749485d)

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

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.13] gh-124448: Update Windows builds to use Tcl/Tk 8.6.15 (GH-125795)
Zachary Ware [Mon, 21 Oct 2024 16:55:15 +0000 (11:55 -0500)] 
[3.13] gh-124448: Update Windows builds to use Tcl/Tk 8.6.15 (GH-125795)

(cherry picked from commit 9d8f2d8e08336695fdade5846da4bbcc3eb5f152)

12 months ago[3.13] gh-125316: Fix using partial() as Enum member (GH-125361)
Serhiy Storchaka [Mon, 21 Oct 2024 13:31:42 +0000 (16:31 +0300)] 
[3.13] gh-125316: Fix using partial() as Enum member (GH-125361)

A FutureWarning with suggestion to use enum.member() is now emitted
when the partial instance is used as an enum member.

12 months ago[3.13] gh-125660: Reject invalid unicode escapes for Python implementation of JSON...
Miss Islington (bot) [Mon, 21 Oct 2024 13:07:56 +0000 (15:07 +0200)] 
[3.13] gh-125660: Reject invalid unicode escapes for Python implementation of JSON decoder (GH-125683) (GH-125694)

(cherry picked from commit df751363e386d1f77c5ba9515a5539902457d386)

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

(cherry picked from commit d358425e6968858e52908794d15f37e62abc74ec)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
12 months ago[3.13] gh-125741: Update `build.yml` for the new check_autoconf_regen job (GH-125772...
Miss Islington (bot) [Mon, 21 Oct 2024 11:18:44 +0000 (13:18 +0200)] 
[3.13] gh-125741: Update `build.yml` for the new check_autoconf_regen job (GH-125772) (#125779)

(cherry picked from commit f36d37bbafcee711c765a8cda9ac3ca00b8258c8)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
12 months ago[3.13] gh-125741: Update check_generated_files CI to use our published container...
Erlend E. Aasland [Mon, 21 Oct 2024 10:23:07 +0000 (12:23 +0200)] 
[3.13] gh-125741: Update check_generated_files CI to use our published container image (gh-125744) (#125759)

(cherry picked from commit ed24702bd0f9925908ce48584c31dfad732208b2)

Co-authored-by: Donghee Na <donghee.na@python.org>
12 months ago[3.13] gh-125313: Prefer `sys.base_*` paths in `Py_Get(Exec)Prefix` deprecation notes...
Miss Islington (bot) [Mon, 21 Oct 2024 09:41:15 +0000 (11:41 +0200)] 
[3.13] gh-125313: Prefer `sys.base_*` paths in `Py_Get(Exec)Prefix` deprecation notes (GH-125317) (#125776)

gh-125313: Prefer `sys.base_*` paths in `Py_Get(Exec)Prefix` deprecation notes (GH-125317)

Prefer `sys.base_*` paths in `Py_Get(Exec)Prefix` deprecation notes.

(cherry picked from commit 7d88140d5299bd086434840db66ede8ccd01a688)

Signed-off-by: y5c4l3 <y5c4l3@proton.me>
Co-authored-by: Y5 <124019959+y5c4l3@users.noreply.github.com>
12 months ago[3.13] Doc: Fix typos (GH-125728) (#125773)
Miss Islington (bot) [Mon, 21 Oct 2024 08:49:31 +0000 (10:49 +0200)] 
[3.13] Doc: Fix typos (GH-125728) (#125773)

(cherry picked from commit ded105a62b9d78717f8dc64652e3903190b585dd)

Co-authored-by: ember91 <31469580+ember91@users.noreply.github.com>
12 months ago[3.13] gh-125519: Improve traceback if `importlib.reload()` is called with a non...
Miss Islington (bot) [Mon, 21 Oct 2024 08:28:32 +0000 (10:28 +0200)] 
[3.13] gh-125519: Improve traceback if `importlib.reload()` is called with a non-module object (GH-125520) (#125768)

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.13] gh-99030: Added documentation links for types and exceptions (GH-123857) ...
Miss Islington (bot) [Mon, 21 Oct 2024 00:42:06 +0000 (02:42 +0200)] 
[3.13] gh-99030: Added documentation links for types and exceptions (GH-123857) (#125764)

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.13] gh-115382: Fix cross compiles when host and target use same SOABI
Miss Islington (bot) [Sun, 20 Oct 2024 07:20:34 +0000 (09:20 +0200)] 
[3.13] gh-115382: Fix cross compiles when host and target use same SOABI

Co-authored-by: Vincent Fazio <vfazio@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
12 months ago[3.13] Doc: Fix pluralization in os.process_cpu_count() documentation (GH-125678...
Miss Islington (bot) [Sun, 20 Oct 2024 00:54:12 +0000 (02:54 +0200)] 
[3.13] Doc: Fix pluralization in os.process_cpu_count() documentation (GH-125678) (#125742)

Co-authored-by: Tom Most <twm@freecog.net>
12 months ago[3.13] gh-125378: Trigger a repeat for the full multi-line statement for empty line...
Miss Islington (bot) [Sat, 19 Oct 2024 22:11:00 +0000 (00:11 +0200)] 
[3.13] gh-125378: Trigger a repeat for the full multi-line statement for empty line command (GH-125717) (#125736)

gh-125378: Trigger a repeat for the full multi-line statement for empty line command (GH-125717)
(cherry picked from commit 8f5e39d5c885318e3128a3e84464c098b5f79a79)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
12 months ago[3.13] gh-125398: Convert paths in venv activate script when using Git Bash under...
Miss Islington (bot) [Sat, 19 Oct 2024 18:00:07 +0000 (20:00 +0200)] 
[3.13] gh-125398: Convert paths in venv activate script when using Git Bash under Windows (GH-125399) (GH-125733)

(cherry picked from commit 2a378dba987e125521b678364f0cd44b92dd5d52)

12 months ago[3.13] gh-125522: Fix bare except in test_math.testTan (GH-125544) (#125726)
Miss Islington (bot) [Sat, 19 Oct 2024 12:14:18 +0000 (14:14 +0200)] 
[3.13] gh-125522: Fix bare except in test_math.testTan (GH-125544) (#125726)

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.13] GH-125277: Increase minimum supported Sphinx to 7.2.6 (GH-125368) (#125720)
Miss Islington (bot) [Sat, 19 Oct 2024 04:23:22 +0000 (06:23 +0200)] 
[3.13] GH-125277: Increase minimum supported Sphinx to 7.2.6 (GH-125368) (#125720)

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

(cherry picked from commit 2e950e341930ea79549137d4d3771d5edb940e65)

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

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.13] gh-125667: Statically Initialize the Arg Converter Data Values in _interpqueue...
Miss Islington (bot) [Fri, 18 Oct 2024 00:13:54 +0000 (02:13 +0200)] 
[3.13] gh-125667: Statically Initialize the Arg Converter Data Values in _interpqueuesmodule.c (gh-125670)

gh-125667: Statically Initialize the Arg Converter Data Values in _interpqueuesmodule.c (gh-125668)
(cherry picked from commit 7cf2dbc3cb3ef7be65a98bbfc87246d36d795c82)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
12 months ago[3.13] gh-52551: Fix encoding issues in strftime() (GH-125193) (GH-125657)
Serhiy Storchaka [Thu, 17 Oct 2024 19:48:34 +0000 (22:48 +0300)] 
[3.13] gh-52551: Fix encoding issues in strftime() (GH-125193) (GH-125657)

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 ad3eac1963a5f195ef9b2c1dbb5e44fa3cce4c72)

12 months ago[3.13] gh-113570: reprlib.repr does not use builtin __repr__ for reshadowed builtins...
Miss Islington (bot) [Thu, 17 Oct 2024 17:04:02 +0000 (19:04 +0200)] 
[3.13] gh-113570: reprlib.repr does not use builtin __repr__ for reshadowed builtins (GH-113577) (GH-125654)

(cherry picked from commit 04d6dd23e2d8a3132772cf7ce928676e26313585)

Co-authored-by: George Pittock <66332098+georgepittock@users.noreply.github.com>
12 months ago[3.13] gh-123370: Fix the canvas not clearing after running turtledemo.clock (gh...
Terry Jan Reedy [Thu, 17 Oct 2024 16:50:07 +0000 (12:50 -0400)] 
[3.13] gh-123370: Fix the canvas not clearing after running turtledemo.clock (gh-123457) (#125653)

[3.13] gh-123370: Fix the canvas not clearing after running turtledemo.clock (GH-123457)

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)

Co-authored-by: Wulian <xiguawulian@gmail.com>
12 months ago[3.13] gh-125625: Check for `py -3.13` in PCbuild/find_python.bat (GH-125650)
Miss Islington (bot) [Thu, 17 Oct 2024 16:09:20 +0000 (18:09 +0200)] 
[3.13] gh-125625: Check for `py -3.13` in PCbuild/find_python.bat (GH-125650)

(cherry picked from commit 0cb20f2e7e867d5c34fc17dd5b8e51e8b0020bb3)

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

(cherry picked from commit dbcc5ac4709dfd8dfaf323d51f135f2218d14068)

Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
12 months agogh-125550: Enable py.exe to detect Store installs of 3.14 (GH-125551)
Miss Islington (bot) [Wed, 16 Oct 2024 22:32:21 +0000 (00:32 +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.13] gh-125615: Fix grammar nit in tutorial's interactive interpreter appendix...
Miss Islington (bot) [Wed, 16 Oct 2024 20:58:49 +0000 (22:58 +0200)] 
[3.13] gh-125615: Fix grammar nit in tutorial's interactive interpreter appendix (GH-125619)

Replace "without ... nor" with "with neither ... nor"

(cherry picked from commit aab3210271136ad8e8fecd927b806602c463e1f2)

Authored-by: Cornelius Roemer <cornelius.roemer@gmail.com>
12 months ago[3.13] gh-125451: Fix deadlock in ProcessPoolExecutor shutdown (GH-125492) (GH-125598)
Miss Islington (bot) [Wed, 16 Oct 2024 18:03:17 +0000 (20:03 +0200)] 
[3.13] gh-125451: Fix deadlock in ProcessPoolExecutor shutdown (GH-125492) (GH-125598)

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)

Co-authored-by: Sam Gross <colesbury@gmail.com>
12 months ago[3.13] CI: Bump Python to 3.13 and mypy to 1.12 in mypy workflow (GH-… (#125596)
Kirill Podoprigora [Wed, 16 Oct 2024 15:31:00 +0000 (18:31 +0300)] 
[3.13] CI: Bump Python to 3.13 and mypy to 1.12 in mypy workflow (GH-… (#125596)

[3.13] CI: Bump Python to 3.13 and mypy to 1.12 in mypy workflow (GH-125592)

(cherry picked from commit d83fcf8371f2f33c7797bc8f5423a8bca8c46e5c)

12 months ago[3.13] gh-125444: Fix illegal instruction for older Arm architectures (GH-125574...
Miss Islington (bot) [Wed, 16 Oct 2024 14:48:40 +0000 (16:48 +0200)] 
[3.13] gh-125444: Fix illegal instruction for older Arm architectures (GH-125574) (GH-125595)

On Arm v5 it is not possible to get the thread ID via c13 register
hence the illegal instruction. The c13 register started to provide
thread ID since Arm v6K architecture variant. Other variants of
Arm v6 (T2, Z and base) don’t provide the thread ID via c13.
For the sake of simplicity we group v5 and v6 together and
consider that instructions for Arm v7 only.
(cherry picked from commit feda9aa73ab95d17a291db22c416146f8e70edeb)

Co-authored-by: Diego Russo <diego.russo@arm.com>
12 months ago[3.13] gh-125041: test_zlib: For s390x HW acceleration, only skip checking the compre...
Miss Islington (bot) [Wed, 16 Oct 2024 11:33:47 +0000 (13:33 +0200)] 
[3.13] gh-125041: test_zlib: For s390x HW acceleration, only skip checking the compressed bytes (GH-125042) (#125527)

(cherry picked from commit cc5a225cdc2a5d4e035dd08d59cef39182c10a6c)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
12 months ago[3.13] gh-125243: Fix ZoneInfo data race in free threading build (GH-125281) (gh...
Miss Islington (bot) [Tue, 15 Oct 2024 21:02:32 +0000 (23:02 +0200)] 
[3.13] gh-125243: Fix ZoneInfo data race in free threading build (GH-125281) (gh-125414)

Lock `ZoneInfoType` to protect accesses to `ZONEINFO_STRONG_CACHE`.
Refactor the `tp_new` handler to use Argument Clinic so that we can just
use `@critical_section` annotations on the relevant functions.

Also use `PyDict_SetDefaultRef` instead of `PyDict_SetDefault` when
inserting into the `TIMEDELTA_CACHE`.
(cherry picked from commit f1d33dbddd3496b062e1fbe024fb6d7b023a35f5)

Co-authored-by: Sam Gross <colesbury@gmail.com>
12 months ago[3.13] gh-58956: Set f_trace on frames with breakpoints after setting a new breakpoin...
Miss Islington (bot) [Tue, 15 Oct 2024 20:20:16 +0000 (22:20 +0200)] 
[3.13] gh-58956: Set f_trace on frames with breakpoints after setting a new breakpoint (GH-124454) (#125548)

gh-58956: Set f_trace on frames with breakpoints after setting a new breakpoint (GH-124454)
(cherry picked from commit 12eaadc0ad33411bb02945d700b6ed7e758bb188)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
12 months ago[3.13] gh-125115: Pass unknown pdb command line args to script instead of fail (GH...
Miss Islington (bot) [Tue, 15 Oct 2024 19:55:38 +0000 (21:55 +0200)] 
[3.13] gh-125115: Pass unknown pdb command line args to script instead of fail (GH-125424) (#125547)

gh-125115: Pass unknown pdb command line args to script instead of fail (GH-125424)
(cherry picked from commit 9c2bb7d551a695f35db953a671a2ddca89426bef)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
12 months ago[3.13] gh-124375: Avoid calling `_PyMem_ProcessDelayed` on other thread states (GH...
Miss Islington (bot) [Tue, 15 Oct 2024 17:35:28 +0000 (19:35 +0200)] 
[3.13] gh-124375: Avoid calling `_PyMem_ProcessDelayed` on other thread states (GH-124459) (#125540)

This fixes a crash when running the PyO3 test suite on the free-threaded
build. The `qsbr` field is initialized after the `PyThreadState` is
added to the interpreter's linked list -- it might still be NULL.

Instead, we "steal" the queue of to-be-freed memory blocks. This is
always initialized (possibly empty) and protected by the stop the world
pause.
(cherry picked from commit 54c6fcbefd33a8d8bf8c004cf1aad3be3d37b933)

Co-authored-by: Sam Gross <colesbury@gmail.com>
12 months ago[3.13] gh-100141: Allow pdb to deal with empty file (GH-125425) (#125536)
Miss Islington (bot) [Tue, 15 Oct 2024 16:28:57 +0000 (18:28 +0200)] 
[3.13] gh-100141: Allow pdb to deal with empty file (GH-125425) (#125536)

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.13] gh-89819: Add argument_default and conflict_handler to add_argument_group...
Miss Islington (bot) [Tue, 15 Oct 2024 16:09:50 +0000 (18:09 +0200)] 
[3.13] gh-89819: Add argument_default and conflict_handler to add_argument_group() docs (GH-125379) (GH-125538)

(cherry picked from commit c9826c11db25e81b1a90c837f84074879f1b1126)

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

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.13] gh-125514: fix bug in test_traceback utility. Specify exception types in excep...
Miss Islington (bot) [Tue, 15 Oct 2024 14:36:14 +0000 (16:36 +0200)] 
[3.13] gh-125514: fix bug in test_traceback utility. Specify exception types in except: clauses (GH-125516) (#125524)

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.13] gh-124594: Create and reuse the same context for the entire asyncio REPL sessi...
Miss Islington (bot) [Tue, 15 Oct 2024 11:37:59 +0000 (13:37 +0200)] 
[3.13] gh-124594: Create and reuse the same context for the entire asyncio REPL session (GH-124595) (#124848)

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>
12 months ago[3.13] gh-125269: Use `AC_LINK_IF_ELSE` to detect if `-latomic` is needed (GH-125416...
Miss Islington (bot) [Tue, 15 Oct 2024 09:29:03 +0000 (11:29 +0200)] 
[3.13] gh-125269: Use `AC_LINK_IF_ELSE` to detect if `-latomic` is needed (GH-125416) (#125493)

gh-125269: Use `AC_LINK_IF_ELSE` to detect if `-latomic` is needed (GH-125416)

We previously used `AC_RUN_IF_ELSE` with a short test program to detect
if `-latomic` is needed, but that requires choosing a specific default
value when cross-compiling because the test program is not run.
Some cross compilation targets like `wasm32-emscripten` do not support
`-latomic`, while other cross compilation targets, like
`arm-linux-gnueabi` require it.
(cherry picked from commit 8d42e2d915c3096e7eac1c649751d1da567bb7c3)

Co-authored-by: Sam Gross <colesbury@gmail.com>
12 months ago[3.13] Doc: Update CVE URL (GH-125489) (#125503)
Miss Islington (bot) [Tue, 15 Oct 2024 07:34:15 +0000 (09:34 +0200)] 
[3.13] Doc: Update CVE URL (GH-125489) (#125503)

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

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.13] Fix idlelib typos (GH-125484) (#125487)
Miss Islington (bot) [Mon, 14 Oct 2024 21:38:40 +0000 (23:38 +0200)] 
[3.13] Fix idlelib typos (GH-125484) (#125487)

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.13] gh-124960: Fixed `barry_as_FLUFL` future flag does not work in new REPL (...
Nice Zombies [Mon, 14 Oct 2024 18:00:45 +0000 (20:00 +0200)] 
[3.13] gh-124960: Fixed `barry_as_FLUFL` future flag does not work in new REPL (#124999) (#125475)

gh-124960: Fixed `barry_as_FLUFL` future flag does not work in new REPL (#124999)

Co-authored-by: Wulian <xiguawulian@gmail.com>
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 6a08a753b702ac63c9b6ac58dd204d1fe9662e9d)

12 months ago[3.13] gh-53203: Fix strptime() for %c, %x and %X formats on many locales (GH-125406...
Miss Islington (bot) [Mon, 14 Oct 2024 17:45:26 +0000 (19:45 +0200)] 
[3.13] gh-53203: Fix strptime() for %c, %x and %X formats on many locales (GH-125406) (GH-125454)

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.13] gh-125461: Remove Python 2 from identifiers in doc (GH-125462) (GH-125464)
Miss Islington (bot) [Mon, 14 Oct 2024 15:49:35 +0000 (17:49 +0200)] 
[3.13] gh-125461: Remove Python 2 from identifiers in doc (GH-125462) (GH-125464)

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.13] gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (GH-124959) (#125463)
Miss Islington (bot) [Mon, 14 Oct 2024 15:45:49 +0000 (17:45 +0200)] 
[3.13] gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (GH-124959) (#125463)

gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (GH-124959)
(cherry picked from commit d5dbbf4372cd3dbf3eead1cc70ddc4261c061fd9)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
12 months ago[3.13] gh-112088: aclocal version is updated to 1.16.5 in docs (GH-125457) (#125459)
Miss Islington (bot) [Mon, 14 Oct 2024 15:02:06 +0000 (17:02 +0200)] 
[3.13] gh-112088: aclocal version is updated to 1.16.5 in docs (GH-125457) (#125459)

gh-112088: aclocal version is updated to 1.16.5 in docs (GH-125457)
(cherry picked from commit 45df264f3ffbc0893cbfd257131d3abe21043786)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
12 months ago[3.13] gh-86357: argparse: use str() consistently and explicitly to print choices...
Serhiy Storchaka [Mon, 14 Oct 2024 07:09:06 +0000 (10:09 +0300)] 
[3.13] gh-86357: argparse: use str() consistently and explicitly to print choices (GH-117766) (GH-125431)

(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.13] gh-123133: clarify p=0 case for "f" and "e" formatting types (GH-125426) ...
Miss Islington (bot) [Mon, 14 Oct 2024 04:50:06 +0000 (06:50 +0200)] 
[3.13] gh-123133: clarify p=0 case for "f" and "e" formatting types (GH-125426) (#125428)

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.13] gh-123849: Fix test_sqlite3.test_table_dump when foreign keys are enabled...
Miss Islington (bot) [Sun, 13 Oct 2024 18:47:38 +0000 (20:47 +0200)] 
[3.13] gh-123849: Fix test_sqlite3.test_table_dump when foreign keys are enabled by default (GH-123859) (#125163)

(cherry picked from commit 14b44c58e195c4cdee6594a4aacf8bf95b19fcd7)

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
12 months ago[3.13] GH-125069: Fix inconsistent joining in `WindowsPath(PosixPath(...))` (GH-12515...
Miss Islington (bot) [Sun, 13 Oct 2024 18:12:57 +0000 (20:12 +0200)] 
[3.13] GH-125069: Fix inconsistent joining in `WindowsPath(PosixPath(...))` (GH-125156) (#125409)

`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: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months ago[3.13] gh-101291: Add versionadded directives for PyUnstable_Long_* (GH-125384) ...
Miss Islington (bot) [Sun, 13 Oct 2024 17:44:50 +0000 (19:44 +0200)] 
[3.13] gh-101291: Add versionadded directives for PyUnstable_Long_* (GH-125384) (#125407)

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.13] gh-125383: Update `fib` function comment for accuracy (GH-125386) (#125395)
Miss Islington (bot) [Sun, 13 Oct 2024 11:16:23 +0000 (13:16 +0200)] 
[3.13] gh-125383: Update `fib` function comment for accuracy (GH-125386) (#125395)

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.13] gh-61698: Use launchctl to detect macOS window manager in tests (GH-118390...
Miss Islington (bot) [Sun, 13 Oct 2024 08:46:35 +0000 (10:46 +0200)] 
[3.13] gh-61698: Use launchctl to detect macOS window manager in tests (GH-118390) (#125392)

(cherry picked from commit ce740d46246b28bb675ba9d62214b59be9b8411e)

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

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.13] Trivial change: Update comments in activate about what running hash -r does...
Miss Islington (bot) [Sun, 13 Oct 2024 07:56:09 +0000 (09:56 +0200)] 
[3.13] Trivial change: Update comments in activate about what running hash -r does (GH-125385) (GH-125387)

(cherry picked from commit 82bcaf15890cf85b76b4f62d2dd1710bb49c3ed1)

12 months ago[3.13] Doc: Fix suggested usage of `-X gil=0` in the glossary (GH-125366) (#125382)
Miss Islington (bot) [Sun, 13 Oct 2024 00:59:05 +0000 (02:59 +0200)] 
[3.13] Doc: Fix suggested usage of `-X gil=0` in the glossary (GH-125366) (#125382)

Doc: Fix suggested usage of `-X gil=0` in the glossary (GH-125366)

Currently, the "global interpreter lock" entry in the glossary mentions
that `-X gil 0` can be used to disable the GIL [1]. However, this is
invalid; the correct usage should be `-X gil=0`.

    $ python -X gil 0 -c 'print("Hello, world")'
    Fatal Python error: config_read_gil: PYTHON_GIL / -X gil must be "0" or "1"
    Python runtime state: preinitialized

    $ python -X gil=0 -c 'print("Hello, world")'
    Hello, world

[1]: https://docs.python.org/3/using/cmdline.htmlGH-cmdoption-X

(cherry picked from commit a8fa4ad9e9f7aa0cba8b23af2c583d17bb1d1847)

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
Co-authored-by: Ruoyu Zhong <zhongruoyu@outlook.com>
12 months ago[3.13] gh-125289: Update sample code in asyncio-task.rst (GH-125292) (GH-125374)
Miss Islington (bot) [Sat, 12 Oct 2024 20:43:30 +0000 (22:43 +0200)] 
[3.13] gh-125289: Update sample code in asyncio-task.rst (GH-125292) (GH-125374)

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.13] gh-53203: Fix strptime() for %c and %x formats on many locales (GH-124946...
Miss Islington (bot) [Sat, 12 Oct 2024 18:11:48 +0000 (20:11 +0200)] 
[3.13] gh-53203: Fix strptime() for %c and %x formats on many locales (GH-124946) (GH-125369)

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>
13 months ago[3.13] gh-85935: Explicitly document the case nargs=0 in argparse (GH-125302) (GH...
Miss Islington (bot) [Sat, 12 Oct 2024 13:02:26 +0000 (15:02 +0200)] 
[3.13] gh-85935: Explicitly document the case nargs=0 in argparse (GH-125302) (GH-125357)

(cherry picked from commit 07c2d15977738165e9dc4248e7edda7c75ecc14b)

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

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>
13 months ago[3.13] gh-124309: fix staggered race on eager tasks (GH-124847) (#125339)
Miss Islington (bot) [Sat, 12 Oct 2024 03:11:53 +0000 (05:11 +0200)] 
[3.13] gh-124309: fix staggered race on eager tasks (GH-124847) (#125339)

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

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>
13 months ago[3.13] gh-116938: Clarify documentation of `dict` and `dict.update` regarding the...
Miss Islington (bot) [Fri, 11 Oct 2024 23:29:01 +0000 (01:29 +0200)] 
[3.13] gh-116938: Clarify documentation of `dict` and `dict.update` regarding the positional argument they accept (GH-125213) (#125336)

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

(cherry picked from commit cc2938a18967c9d462ebb18bc09f73e4364aa7d2)

13 months ago[3.13] Fix typo in ``Doc/library/functions.rst`` (GH-125327) (#125333)
Miss Islington (bot) [Fri, 11 Oct 2024 20:06:19 +0000 (22:06 +0200)] 
[3.13] Fix typo in ``Doc/library/functions.rst`` (GH-125327) (#125333)

Fix typo in ``Doclibrary/functions.rst`` (GH-125327)
(cherry picked from commit 76b29d271b3132bf8e13bc724f10be8c630057ba)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
13 months ago[3.13] gh-116738: Make `_csv` module thread-safe (GH-118344) (#125328)
Miss Islington (bot) [Fri, 11 Oct 2024 18:22:56 +0000 (20:22 +0200)] 
[3.13] gh-116738: Make `_csv` module thread-safe (GH-118344) (#125328)

gh-116738: Make `_csv` module thread-safe (GH-118344)
(cherry picked from commit a00221e5a70e54a281ba0e2cff8d85cd37ae305f)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
13 months ago[3.13] Add some doctest cleanups for `configparser` (GH-125288) (#125290)
Miss Islington (bot) [Fri, 11 Oct 2024 09:48:32 +0000 (11:48 +0200)] 
[3.13] Add some doctest cleanups for `configparser` (GH-125288) (#125290)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
13 months ago[3.13] gh-125235: Keep `_tkinter` TCL paths pointing to base installation on Windows...
Miss Islington (bot) [Fri, 11 Oct 2024 09:34:04 +0000 (11:34 +0200)] 
[3.13] gh-125235: Keep `_tkinter` TCL paths pointing to base installation on Windows (GH-125250) (#125312)

gh-125235: Keep `_tkinter` TCL paths pointing to base installation on Windows (GH-125250)
(cherry picked from commit b3aa1b5fe260382788a2df416599325ad680a5ee)

Signed-off-by: y5c4l3 <y5c4l3@proton.me>
Co-authored-by: Y5 <124019959+y5c4l3@users.noreply.github.com>
13 months ago[3.13] gh-61011: Fix inheritance of nested mutually exclusive groups in argparse...
Miss Islington (bot) [Fri, 11 Oct 2024 09:14:04 +0000 (11:14 +0200)] 
[3.13] gh-61011: Fix inheritance of nested mutually exclusive groups in argparse (GH-125210) (GH-125308)

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>
13 months ago[3.13] gh-125221: Fix free-threading data race in `object.__reduce_ex__` (GH-125267...
Miss Islington (bot) [Fri, 11 Oct 2024 08:26:23 +0000 (10:26 +0200)] 
[3.13] gh-125221: Fix free-threading data race in `object.__reduce_ex__` (GH-125267) (#125305)

gh-125221: Fix free-threading data race in `object.__reduce_ex__` (GH-125267)
(cherry picked from commit b12e99261e656585ffbaa395af7c5dbaee5ad1ad)

Co-authored-by: Sam Gross <colesbury@gmail.com>
13 months ago[3.13] gh-125058: update `_thread` docs regarding interruptibility of `lock.acquire...
Miss Islington (bot) [Fri, 11 Oct 2024 08:20:46 +0000 (10:20 +0200)] 
[3.13] gh-125058: update `_thread` docs regarding interruptibility of `lock.acquire()` (GH-125141) (#125306)

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>
13 months ago[3.13] gh-125296: Fix strange fragment identifier for `name or flags` in argparse...
Miss Islington (bot) [Fri, 11 Oct 2024 06:35:49 +0000 (08:35 +0200)] 
[3.13] gh-125296: Fix strange fragment identifier for `name or flags` in argparse docs (GH-125297) (#125299)

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>
13 months ago[3.13] gh-124969: Fix locale.nl_langinfo(locale.ALT_DIGITS) (GH-124974) (#125232)
Serhiy Storchaka [Thu, 10 Oct 2024 21:56:22 +0000 (00:56 +0300)] 
[3.13] gh-124969: Fix locale.nl_langinfo(locale.ALT_DIGITS) (GH-124974) (#125232)

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)

13 months ago[3.13] Doc: Upgrade Sphinx to 8.1 (GH-125276) (#125278)
Miss Islington (bot) [Thu, 10 Oct 2024 20:31:40 +0000 (22:31 +0200)] 
[3.13] Doc: Upgrade Sphinx to 8.1 (GH-125276) (#125278)

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>
13 months ago[3.13] Note argparse exit code in documentation (GH-119568) (GH-125274)
Miss Islington (bot) [Thu, 10 Oct 2024 18:18:17 +0000 (20:18 +0200)] 
[3.13] Note argparse exit code in documentation (GH-119568) (GH-125274)

(cherry picked from commit 3b87fb74c907510402678bf1b7c4a94df0e5e65a)

Co-authored-by: Justin Kunimune <justinkunimune@gmail.com>
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
13 months ago[3.13] GH-122578: update to WASI SDK 24 (GH-122960) (GH-122961)
Miss Islington (bot) [Thu, 10 Oct 2024 17:46:01 +0000 (19:46 +0200)] 
[3.13] GH-122578: update to WASI SDK 24 (GH-122960) (GH-122961)

GH-122578: update to WASI SDK 24 (GH-122960)
(cherry picked from commit 0e207f3e7adc6a0fdbe1482ce01163ff04d5ddcb)

Co-authored-by: Brett Cannon <brett@python.org>
13 months ago[3.13] GH-121634: have `wasi.py` accept the host target triple as an argument (GH...
Miss Islington (bot) [Thu, 10 Oct 2024 17:44:31 +0000 (19:44 +0200)] 
[3.13] GH-121634: have `wasi.py` accept the host target triple as an argument (GH-123030) (GH-123042)

GH-121634: have `wasi.py` accept the host target triple as an argument (GH-123030)
(cherry picked from commit b15b81ed4f58196b35e3dd13b484f4c7a73e5bb8)

Co-authored-by: Brett Cannon <brett@python.org>
13 months ago[3.13] gh-122765: make prompt in activate.csh robust against unbalanced quotes and...
Miss Islington (bot) [Thu, 10 Oct 2024 17:39:39 +0000 (19:39 +0200)] 
[3.13] gh-122765: make prompt in activate.csh robust against unbalanced quotes and newlines (GH-123751) (GH-124185)

gh-122765: make prompt in activate.csh robust against unbalanced quotes and newlines (GH-123751)
(cherry picked from commit a15a584bf3f94ea11ab9363548c8872251364000)

Co-authored-by: Jacek <jacek.duszenko@gmail.com>
Co-authored-by: Brett Cannon <brett@python.org>
13 months ago[3.13] gh-125118: don't copy arbitrary values to _Bool in the struct module (GH-12516...
Sergey B Kirpichev [Thu, 10 Oct 2024 14:58:57 +0000 (17:58 +0300)] 
[3.13] gh-125118: don't copy arbitrary values to _Bool in the struct module (GH-125169) (#125263)

memcopy'ing arbitrary values to _Bool variable triggers undefined
behaviour. Avoid this.
We assume that `false` is represented by all zero bytes.

Credits to Alex Gaynor.

(cherry picked from commit 87d7315ac57250046372b0d9ae4619ba619c8c87)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
13 months ago[3.13] gh-124471: Set name for unnamed reusable workflow (GH-124475) (gh-125256)
Miss Islington (bot) [Thu, 10 Oct 2024 13:03:45 +0000 (15:03 +0200)] 
[3.13] gh-124471: Set name for unnamed reusable workflow (GH-124475) (gh-125256)

gh-124471: Set name for unnamed reusable workflow (GH-124475)
(cherry picked from commit e4cab488d4445e8444932f3bed1c329c0d9e5038)

Co-authored-by: Donghee Na <donghee.na@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
13 months ago[3.13] gh-71784: [doc] add usage examples for traceback.TracebackException (GH-125189...
Miss Islington (bot) [Thu, 10 Oct 2024 10:46:31 +0000 (12:46 +0200)] 
[3.13] gh-71784: [doc] add usage examples for traceback.TracebackException (GH-125189) (#125247)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
13 months ago[3.13] GH-121970: Extract ``availability`` into a new extension (GH-125082) (#125237)
Adam Turner [Thu, 10 Oct 2024 10:43:43 +0000 (11:43 +0100)] 
[3.13] GH-121970: Extract ``availability`` into a new extension (GH-125082) (#125237)

(cherry picked from commit cbfd39247983309a9ef0ae6da6c61cc71665b967)

13 months ago[3.13] Pin the doctest workflow to Ubuntu 22.04 (GH-125236) (#125240)
Miss Islington (bot) [Thu, 10 Oct 2024 10:27:48 +0000 (12:27 +0200)] 
[3.13] Pin the doctest workflow to Ubuntu 22.04 (GH-125236) (#125240)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
13 months ago[3.13] gh-125140: Remove the current directory from sys.path when using pyrepl (GH...
Miss Islington (bot) [Thu, 10 Oct 2024 09:35:47 +0000 (11:35 +0200)] 
[3.13] gh-125140: Remove the current directory from sys.path when using pyrepl (GH-125212) (#125224)

13 months ago[3.13] gh-101100: Consolidate documentation on `ModuleType` attributes (#124709)...
Alex Waygood [Wed, 9 Oct 2024 19:03:30 +0000 (20:03 +0100)] 
[3.13] gh-101100: Consolidate documentation on `ModuleType` attributes (#124709) (#125208)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Barry Warsaw <barry@python.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
13 months ago[3.13] docs: in venv table use executable name (GH-124315) (GH-125172)
Miss Islington (bot) [Wed, 9 Oct 2024 16:54:15 +0000 (18:54 +0200)] 
[3.13] docs: in venv table use executable name (GH-124315) (GH-125172)

(cherry picked from commit 7f93dbf6fec152888727a0f25a3aa030d1fe27ca)

13 months ago[3.13] gh-101100: Fix Sphinx warnings in `library/unittest.mock.rst` (GH-124106)...
Miss Islington (bot) [Wed, 9 Oct 2024 14:13:23 +0000 (16:13 +0200)] 
[3.13] gh-101100: Fix Sphinx warnings in `library/unittest.mock.rst` (GH-124106) (#125190)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
13 months ago[3.13] Fix importlib.resources issue reference in 3.13 What's New (GH-125175) (#125184)
Miss Islington (bot) [Wed, 9 Oct 2024 12:45:03 +0000 (14:45 +0200)] 
[3.13] Fix importlib.resources issue reference in 3.13 What's New (GH-125175) (#125184)

Previous link was to the PR that removed the
mentioned importlib.resources APIs, rather than
the issue that added back their improved forms.

(cherry picked from commit 7a303fc78a6dbd1b4c01f8a2b14ddcae29f4271b)

Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
13 months ago[3.13] gh-125150: Skip test_fma_zero_result on NetBSD due to IEE 754-2008 implementat...
Miss Islington (bot) [Wed, 9 Oct 2024 09:05:57 +0000 (11:05 +0200)] 
[3.13] gh-125150: Skip test_fma_zero_result on NetBSD due to IEE 754-2008 implementation issues (GH-125151) (#125173)

gh-125150: Skip test_fma_zero_result on NetBSD due to IEE 754-2008 implementation issues (GH-125151)

Skip test_fma_zero_result on NetBSD due to IEE 754-2008 implementation issues
(cherry picked from commit 92760bd85b8f48b88df5b81100a757048979de83)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>