]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
12 months ago[3.13] gh-84545: Clarify the 'extend' action documentation in argparse (GH-125870...
Miss Islington (bot) [Sat, 26 Oct 2024 18:37:06 +0000 (20:37 +0200)] 
[3.13] gh-84545: Clarify the 'extend' action documentation in argparse (GH-125870) (GH-125964)

(cherry picked from commit da8673da362a2135cd621ac619d3aced6bb55100)

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

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.13] gh-125698: Autoconf: Sync EXEEXT and ac_exeext (GH-125995) (#126006)
Miss Islington (bot) [Sat, 26 Oct 2024 15:36:03 +0000 (17:36 +0200)] 
[3.13] gh-125698: Autoconf: Sync EXEEXT and ac_exeext (GH-125995) (#126006)

(cherry picked from commit 8b7cdc5e0c3ee9903d41a2bfc494148db32dc379)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
12 months ago[3.13] Fix a typo in ``Doc/tutorial/errors.rst`` exception output (GH-126001) (#126009)
Miss Islington (bot) [Sat, 26 Oct 2024 15:32:37 +0000 (17:32 +0200)] 
[3.13] Fix a typo in ``Doc/tutorial/errors.rst`` exception output (GH-126001) (#126009)

Fix a typo in ``Doc/tutorial/errors.rst`` exception output (GH-126001)
(cherry picked from commit a78d5b32429e2399178ac838e0e62b2bd62c0af9)

Co-authored-by: Bogdana Vereha <bogdanap@github.com>
12 months ago[3.13] gh-125969: fix OOB in `future_schedule_callbacks` due to an evil `call_soon...
Miss Islington (bot) [Fri, 25 Oct 2024 18:43:07 +0000 (20:43 +0200)] 
[3.13] gh-125969: fix OOB in `future_schedule_callbacks` due to an evil `call_soon` (GH-125970) (#125991)

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.13] gh-125608: Trigger dictionary watchers when inline values change (GH-125611...
Miss Islington (bot) [Fri, 25 Oct 2024 14:35:04 +0000 (16:35 +0200)] 
[3.13] gh-125608: Trigger dictionary watchers when inline values change (GH-125611) (GH-125982)

Dictionary watchers on an object's attributes dictionary
(`object.__dict__`) were not triggered when the managed dictionary used
the object's inline values.
(cherry picked from commit 5989eb74463c26780632f17f221d6bf4c9372a01)

Co-authored-by: Sam Gross <colesbury@gmail.com>
12 months ago[3.13] gh-121277: Allow `.. versionadded:: next` in docs (GH-121278) (#124718)
Petr Viktorin [Fri, 25 Oct 2024 13:34:20 +0000 (15:34 +0200)] 
[3.13] gh-121277: Allow `.. versionadded:: next` in docs (GH-121278) (#124718)

* gh-121277: Allow `.. versionadded:: next` in docs (GH-121278)

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

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
(cherry picked from commit 7d24ea9db3e8fdca52058629c9ba577aba3d8e5c)

* gh-121277: Raise nice error on `next` as second argument to deprecated-removed (GH-124623)

(cherry-picked from e349f73a5ad2856b0a7cbe4aef7cc081c7aed777)

12 months ago[3.13] GH-125789: fix `fut._callbacks` to always return a copy of callbacks (#125922...
Kumar Aditya [Fri, 25 Oct 2024 13:19:31 +0000 (18:49 +0530)] 
[3.13] GH-125789: fix `fut._callbacks` to always return a copy of callbacks (#125922) (#125976)

GH-125789: fix `fut._callbacks` to always return a copy of callbacks (#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.

(cherry picked from commit cae853e3b44cd5cb033b904e163c490dd28bc30a)

12 months ago[3.13] gh-123930: Correct test of attribute failure to account for iOS (GH-125959...
Miss Islington (bot) [Fri, 25 Oct 2024 07:42:20 +0000 (09:42 +0200)] 
[3.13] gh-123930: Correct test of attribute failure to account for iOS (GH-125959) (#125960)

gh-123930: Correct test of attribute failure to account for iOS (GH-125959)

Update a test of importing attributes from binary modules to account for iOS conditions.
(cherry picked from commit 75401febc91a449cc4f4391d663e9a96ce91bb6c)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
12 months ago[3.13] gh-125259: Fix error notes removal in enum initialization (GH-125647) (GH...
Miss Islington (bot) [Fri, 25 Oct 2024 03:24:23 +0000 (05:24 +0200)] 
[3.13] gh-125259: Fix error notes removal in enum initialization (GH-125647) (GH-125858)

gh-125259: Fix error notes removal in enum initialization (GH-125647)
(cherry picked from commit 34653bba644aa5481613f398153757d7357e39ea)

Co-authored-by: Mario Šaško <mariosasko777@gmail.com>
12 months ago[3.13] gh-125942: Android: set stdout to `errors="backslashreplace"` (GH-125943)...
Miss Islington (bot) [Fri, 25 Oct 2024 00:59:23 +0000 (02:59 +0200)] 
[3.13] gh-125942: Android: set stdout to `errors="backslashreplace"` (GH-125943) (#125950)

gh-125942: Android: set stdout to `errors="backslashreplace"` (GH-125943)

Android stdout/err streams now use `backslashreplace` encoding to ensure readability of the Android log.
(cherry picked from commit b08570c90eb9fa2e2ee4429909b14240b7a427d4)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
12 months ago[3.13] gh-125940: Android: support 16 KB pages (GH-125941) (#125948)
Miss Islington (bot) [Fri, 25 Oct 2024 00:37:38 +0000 (02:37 +0200)] 
[3.13] gh-125940: Android: support 16 KB pages (GH-125941) (#125948)

gh-125940: Android: support 16 KB pages (GH-125941)

Modify Android build tooling to use 16kB pages.
(cherry picked from commit e68d4b08ff13a06a2c2877f63bf856e6bf3c2e77)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
12 months ago[3.13] gh-125245: Fix race condition when importing `collections.abc` (GH-125415...
Miss Islington (bot) [Thu, 24 Oct 2024 22:38:45 +0000 (00:38 +0200)] 
[3.13] gh-125245: Fix race condition when importing `collections.abc` (GH-125415) (GH-125944)

If multiple threads concurrently imported `collections.abc`, some of the
threads might incorrectly see the "shim" `Lib/collections/abc.py` module
instead of the correct `Lib/_collections_abc.py` module.  This affected
both the free threading build and the default GIL-enabled build.
(cherry picked from commit fed501d7247053ce46a2ba512bf0e4bb4f483be6)

Co-authored-by: Sam Gross <colesbury@gmail.com>
12 months ago[3.13] gh-125933: Add ARIA labels to select elements in the version switcher (GH...
Miss Islington (bot) [Thu, 24 Oct 2024 20:57:52 +0000 (22:57 +0200)] 
[3.13] gh-125933: Add ARIA labels to select elements in the version switcher (GH-125934) (#125938)

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.13] gh-123930: Better error for "from imports" when script shadows module (GH...
Shantanu [Thu, 24 Oct 2024 19:37:31 +0000 (12:37 -0700)] 
[3.13] gh-123930: Better error for "from imports" when script shadows module (GH-123929) (#125937)

gh-123930: Better error for "from imports" when script shadows module (#123929)

(cherry picked from commit 500f5338a8fe13719478589333fcd296e8e8eb02)

12 months ago[3.13] gh-125268: Use static string for "1e309" in AST (GH-125272) (GH-125280)
Sam Gross [Thu, 24 Oct 2024 17:59:23 +0000 (13:59 -0400)] 
[3.13] gh-125268: Use static string for "1e309" in AST (GH-125272) (GH-125280)

When formatting the AST as a string, infinite values are replaced by
1e309, which evaluates to infinity. The initialization of this string
replacement was not thread-safe in the free threading build.
(cherry picked from commit 427dcf24de4e06d239745d74d08c4b2e541dca5a)

12 months ago[3.13] gh-125909: Avoid a redirect when linking to the devguide (GH-125826) (#125929)
Miss Islington (bot) [Thu, 24 Oct 2024 16:47:01 +0000 (18:47 +0200)] 
[3.13] gh-125909: Avoid a redirect when linking to the devguide (GH-125826) (#125929)

(cherry picked from commit 5003ad5c5ea508f0dde1b374cd8bc6a481ad5c5d)

Co-authored-by: partev <petrosyan@gmail.com>
12 months ago[3.13] gh-125842: Fix `sys.exit(0xffff_ffff)` on Windows (GH-125896) (GH-125925)
Miss Islington (bot) [Thu, 24 Oct 2024 16:27:30 +0000 (18:27 +0200)] 
[3.13] gh-125842: Fix `sys.exit(0xffff_ffff)` on Windows (GH-125896) (GH-125925)

On Windows, `long` is a signed 32-bit integer so it can't represent
`0xffff_ffff` without overflow. Windows exit codes are unsigned 32-bit
integers, so if a child process exits with `-1`, it will be represented
as `0xffff_ffff`.

Also fix a number of other possible cases where `_Py_HandleSystemExit`
could return with an exception set, leading to a `SystemError` (or
fatal error in debug builds) later on during shutdown.
(cherry picked from commit ad6110a93ffa82cae71af6c78692de065d3871b5)

Co-authored-by: Sam Gross <colesbury@gmail.com>
12 months ago[3.13] gh-125859: Fix crash when `gc.get_objects` is called during GC (GH-125882...
Miss Islington (bot) [Thu, 24 Oct 2024 14:08:15 +0000 (16:08 +0200)] 
[3.13] gh-125859: Fix crash when `gc.get_objects` is called during GC (GH-125882) (GH-125921)

This fixes a crash when `gc.get_objects()` or `gc.get_referrers()` is
called during a GC in the free threading build.

Switch to `_PyObjectStack` to avoid corrupting the `struct worklist`
linked list maintained by the GC. Also, don't return objects that are frozen
(`gc.freeze()`) or in the process of being collected to more closely match
the behavior of the default build.
(cherry picked from commit e545ead66ce725aae6fb0ad5d733abe806c19750)

Co-authored-by: Sam Gross <colesbury@gmail.com>
12 months ago[3.13] gh-125884: Support breakpoint on functions with annotations (G… (#125902)
Tian Gao [Wed, 23 Oct 2024 22:37:24 +0000 (15:37 -0700)] 
[3.13] gh-125884: Support breakpoint on functions with annotations (G… (#125902)

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

12 months ago[3.13] gh-124858: fix happy eyeballs refcyles (GH-124859) (#124912)
Miss Islington (bot) [Wed, 23 Oct 2024 19:35:56 +0000 (21:35 +0200)] 
[3.13] gh-124858: fix happy eyeballs refcyles (GH-124859) (#124912)

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.13] gh-123978: Remove broken time.thread_time() on NetBSD (GH-124116) (GH-124425)
Miss Islington (bot) [Wed, 23 Oct 2024 16:39:34 +0000 (18:39 +0200)] 
[3.13] gh-123978: Remove broken time.thread_time() on NetBSD (GH-124116) (GH-124425)

(cherry picked from commit e670a113b5e1fcc3ce3bb9b5b4b1f126264ae21b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.13] gh-125038: Fix crash after genexpr.gi_frame.f_locals manipulations (GH-125178...
Jelle Zijlstra [Wed, 23 Oct 2024 13:45:28 +0000 (06:45 -0700)] 
[3.13] gh-125038: Fix crash after genexpr.gi_frame.f_locals manipulations (GH-125178) (#125846)

(cherry picked from commit 079875e39589eb0628b5883f7ffa387e7476ec06)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
12 months ago[3.13] gh-125710: [Enum] fix hashable<->nonhashable comparisons for member values...
Miss Islington (bot) [Tue, 22 Oct 2024 18:29:42 +0000 (20:29 +0200)] 
[3.13] gh-125710: [Enum] fix hashable<->nonhashable comparisons for member values (GH-125735) (GH-125851)

gh-125710: [Enum] fix hashable<->nonhashable comparisons for member values (GH-125735)
(cherry picked from commit aaed91cabcedc16c089c4b1c9abb1114659a83d3)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
12 months ago[3.13] gh-124651: Quote template strings in `venv` activation scripts (GH-124712...
Miss Islington (bot) [Tue, 22 Oct 2024 15:49:20 +0000 (17:49 +0200)] 
[3.13] gh-124651: Quote template strings in `venv` activation scripts (GH-124712) (GH-125813)

(cherry picked from commit d48cc82ed25e26b02eb97c6263d95dcaa1e9111b)

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

(cherry picked from commit 91ddde4af0c3031c84a967bcf59f6fb4f8a48c0d)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
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>
12 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>
12 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>