Commit Graph

123402 Commits

Author SHA1 Message Date
Miss Islington (bot) e52095a0c1
[3.13] gh-124651: Quote template strings in `venv` activation scripts (GH-124712) (GH-125813)
(cherry picked from commit d48cc82ed2)
2024-10-22 16:49:20 +01:00
Miss Islington (bot) 22ae72b88f
[3.13] Doc: Show object descriptions in the table of contents (GH-125757) (#125840)
(cherry picked from commit 91ddde4af0)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-10-22 13:13:35 +00:00
Miss Islington (bot) 1fe63b15eb
[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 759a54d28f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-10-22 15:58:05 +03:00
Miss Islington (bot) e3bfe1e756
[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 4efe64aa56)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
2024-10-22 09:06:26 +00:00
Miss Islington (bot) 0e350d4bf6
[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 4848b0b92c, AKA gh-125803)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
2024-10-21 22:16:32 +00:00
Miss Islington (bot) b752764f9e
[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 44f841f01a, AKA gh-125802)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
2024-10-21 20:05:06 +00:00
Miss Islington (bot) 8257ecd888
[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 9dde4638e4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-10-21 19:42:18 +00:00
Miss Islington (bot) c1c3f5d19e
[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 dcc4fb2c90)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-10-21 19:30:23 +00:00
Miss Islington (bot) 829d650ccb
[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 5b7a872b26)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2024-10-21 17:06:27 +00:00
Miss Islington (bot) ace5478673
[3.13] gh-125766: Docs: minor rewording of installation on Linux section (GH-125793)
(cherry picked from commit d67bf2d89a)

Co-authored-by: partev <petrosyan@gmail.com>
2024-10-21 11:56:01 -05:00
Miss Islington (bot) 2e56526412
[3.13] Doc: C API: Move `tp_dealloc` paragraph to `tp_dealloc` section (GH-125737) (#125798)
It looks like commit 43cf44ddcc
(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 d880c83ff7)


Co-authored-by: Richard Hansen <rhansen@rhansen.org>
2024-10-21 09:55:36 -07:00
Zachary Ware 13baff76ad
[3.13] gh-124448: Update Windows builds to use Tcl/Tk 8.6.15 (GH-125795)
(cherry picked from commit 9d8f2d8e08)
2024-10-21 11:55:15 -05:00
Serhiy Storchaka 65e43ca6d9
[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.
2024-10-21 16:31:42 +03:00
Miss Islington (bot) d9dafc790d
[3.13] gh-125660: Reject invalid unicode escapes for Python implementation of JSON decoder (GH-125683) (GH-125694)
(cherry picked from commit df751363e3)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
2024-10-21 16:07:56 +03:00
Miss Islington (bot) 6715afe349
[3.13] gh-125682: Reject non-ASCII digits in the Python implementation of JSON decoder (GH-125687) (GH-125692)
(cherry picked from commit d358425e69)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
2024-10-21 16:06:31 +03:00
Miss Islington (bot) 014d0ee341
[3.13] gh-125741: Update `build.yml` for the new check_autoconf_regen job (GH-125772) (#125779)
(cherry picked from commit f36d37bbaf)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-10-21 11:18:44 +00:00
Erlend E. Aasland a6d81b4dea
[3.13] gh-125741: Update check_generated_files CI to use our published container image (gh-125744) (#125759)
(cherry picked from commit ed24702bd0)

Co-authored-by: Donghee Na <donghee.na@python.org>
2024-10-21 12:23:07 +02:00
Miss Islington (bot) 7711a1c33f
[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 7d88140d52)

Signed-off-by: y5c4l3 <y5c4l3@proton.me>
Co-authored-by: Y5 <124019959+y5c4l3@users.noreply.github.com>
2024-10-21 09:41:15 +00:00
Miss Islington (bot) 483c747939
[3.13] Doc: Fix typos (GH-125728) (#125773)
(cherry picked from commit ded105a62b)

Co-authored-by: ember91 <31469580+ember91@users.noreply.github.com>
2024-10-21 08:49:31 +00:00
Miss Islington (bot) 6b31b2dab1
[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 c5c21fee7a)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-10-21 08:28:32 +00:00
Miss Islington (bot) 73bd5bd18f
[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 9256be7ff0)

Co-authored-by: RUANG (Roy James) <longjinyii@outlook.com>
2024-10-21 00:42:06 +00:00
Miss Islington (bot) 909d5ac295
[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>
2024-10-20 08:20:34 +01:00
Miss Islington (bot) 51659f2e5c
[3.13] Doc: Fix pluralization in os.process_cpu_count() documentation (GH-125678) (#125742)
Co-authored-by: Tom Most <twm@freecog.net>
2024-10-20 00:54:12 +00:00
Miss Islington (bot) b03281e11c
[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 8f5e39d5c8)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2024-10-19 22:11:00 +00:00
Miss Islington (bot) 9e433304c4
[3.13] gh-125398: Convert paths in venv activate script when using Git Bash under Windows (GH-125399) (GH-125733)
(cherry picked from commit 2a378dba98)
2024-10-19 19:00:07 +01:00
Miss Islington (bot) 96db216181
[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 4b421e8aca)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2024-10-19 12:14:18 +00:00
Miss Islington (bot) fbbc79ea25
[3.13] GH-125277: Increase minimum supported Sphinx to 7.2.6 (GH-125368) (#125720) 2024-10-19 04:23:22 +00:00
Miss Islington (bot) 8204014280
[3.13] Add tests for time.strftime() with invalid format string (GH-125696) (GH-125702)
(cherry picked from commit 2e950e3419)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-10-18 14:22:41 +00:00
Miss Islington (bot) 072e7a337b
[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 a0f5c8e627)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
2024-10-18 02:32:53 +00:00
Miss Islington (bot) e57831f301
[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 7cf2dbc3cb)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
2024-10-18 00:13:54 +00:00
Serhiy Storchaka 08ccbb9b3f
[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 ad3eac1963)
2024-10-17 22:48:34 +03:00
Miss Islington (bot) d894d467a6
[3.13] gh-113570: reprlib.repr does not use builtin __repr__ for reshadowed builtins (GH-113577) (GH-125654)
(cherry picked from commit 04d6dd23e2)

Co-authored-by: George Pittock <66332098+georgepittock@users.noreply.github.com>
2024-10-17 17:04:02 +00:00
Terry Jan Reedy 30d7e9e721
[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 c124577ebe)

Co-authored-by: Wulian <xiguawulian@gmail.com>
2024-10-17 12:50:07 -04:00
Miss Islington (bot) 7a2db7601a
[3.13] gh-125625: Check for `py -3.13` in PCbuild/find_python.bat (GH-125650)
(cherry picked from commit 0cb20f2e7e)

Co-authored-by: Wulian <xiguawulian@gmail.com>
2024-10-17 16:09:20 +00:00
Miss Islington (bot) 253d69feb1
[3.13] gh-95836: Add custom type converter examples to argparse tutorial (GH-125376) (GH-125643)
(cherry picked from commit dbcc5ac470)

Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
2024-10-17 15:43:08 +03:00
Miss Islington (bot) 06dc0bc6bf
gh-125550: Enable py.exe to detect Store installs of 3.14 (GH-125551)
(cherry picked from commit 8e7b2a1161)

Co-authored-by: Steve Dower <steve.dower@python.org>
2024-10-16 22:32:21 +00:00
Miss Islington (bot) ca9bbafb49
[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 aab3210271)

Authored-by: Cornelius Roemer <cornelius.roemer@gmail.com>
2024-10-16 20:58:49 +00:00
Miss Islington (bot) 4fc4067796
[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 760872efec)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2024-10-16 14:03:17 -04:00
Kirill Podoprigora 3fda8a8246
[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 d83fcf8371)
2024-10-16 15:31:00 +00:00
Miss Islington (bot) 18b9079ddb
[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 feda9aa73a)

Co-authored-by: Diego Russo <diego.russo@arm.com>
2024-10-16 14:48:40 +00:00
Miss Islington (bot) e3ae564682
[3.13] gh-125041: test_zlib: For s390x HW acceleration, only skip checking the compressed bytes (GH-125042) (#125527)
(cherry picked from commit cc5a225cdc)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2024-10-16 13:33:47 +02:00
Miss Islington (bot) 6474e296c0
[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 f1d33dbddd)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2024-10-15 17:02:32 -04:00
Miss Islington (bot) 2ded598323
[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 12eaadc0ad)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2024-10-15 20:20:16 +00:00
Miss Islington (bot) c5bad759f5
[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 9c2bb7d551)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2024-10-15 19:55:38 +00:00
Miss Islington (bot) 4d83f6ddc4
[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 54c6fcbefd)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2024-10-15 13:35:28 -04:00
Miss Islington (bot) 6c79baea4d
[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 bb9604b62a)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2024-10-15 16:28:57 +00:00
Miss Islington (bot) cc66dfc86c
[3.13] gh-89819: Add argument_default and conflict_handler to add_argument_group() docs (GH-125379) (GH-125538)
(cherry picked from commit c9826c11db)

Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
2024-10-15 16:09:50 +00:00
Miss Islington (bot) a22e11f8dc
[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 703227dd02)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2024-10-15 15:26:46 +00:00
Miss Islington (bot) 3b8477b81a
[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 55c4f4c30b)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2024-10-15 14:36:14 +00:00
Miss Islington (bot) 35d9624109
[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 67e01a430f)

Co-authored-by: Bartosz Sławecki <bartoszpiotrslawecki@gmail.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2024-10-15 13:37:59 +02:00