]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Mon, 21 Oct 2024 13:08:10 +0000 (15:08 +0200)]
[3.12] gh-125660: Reject invalid unicode escapes for Python implementation of JSON decoder (GH-125683) (GH-125695)
(cherry picked from commit
df751363e386d1f77c5ba9515a5539902457d386 )
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Miss Islington (bot) [Mon, 21 Oct 2024 13:06:02 +0000 (15:06 +0200)]
[3.12] gh-125682: Reject non-ASCII digits in the Python implementation of JSON decoder (GH-125687) (GH-125693)
(cherry picked from commit
d358425e6968858e52908794d15f37e62abc74ec )
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Erlend E. Aasland [Mon, 21 Oct 2024 10:23:41 +0000 (12:23 +0200)]
[3.12] gh-125741: Update check_generated_files CI to use our published container image (gh-125744) (#125760)
(cherry picked from commit
ed24702bd0f9925908ce48584c31dfad732208b2 )
Co-authored-by: Donghee Na <donghee.na@python.org>
Miss Islington (bot) [Mon, 21 Oct 2024 08:20:42 +0000 (10:20 +0200)]
[3.12] gh-125519: Improve traceback if `importlib.reload()` is called with a non-module object (GH-125520) (#125769)
gh-125519: Improve traceback if `importlib.reload()` is called with a non-module object (GH-125520)
(cherry picked from commit
c5c21fee7ae1ea689a351caa454c98e716a6e537 )
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Mon, 21 Oct 2024 00:43:26 +0000 (02:43 +0200)]
[3.12] gh-99030: Added documentation links for types and exceptions (GH-123857) (GH-125765)
gh-99030: Added documentation links for types and exceptions (GH-123857)
* Added documentation links for types and exceptions
* Shortened description sentences
* Change content
* Change documentation
* Move seealso
* Add a spaces
(cherry picked from commit
9256be7ff0ab035cfd262127d893c9bc88b3c84c )
Co-authored-by: RUANG (Roy James) <longjinyii@outlook.com>
Miss Islington (bot) [Sat, 19 Oct 2024 12:07:16 +0000 (14:07 +0200)]
[3.12] gh-125522: Fix bare except in test_math.testTan (GH-125544) (#125727)
gh-125522: Fix bare except in test_math.testTan (GH-125544)
(cherry picked from commit
4b421e8aca7f2dccc5ac8604b78589941dd7974c )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Sat, 19 Oct 2024 04:27:44 +0000 (06:27 +0200)]
[3.12] GH-125277: Increase minimum supported Sphinx to 7.2.6 (GH-125368) (#125721)
Miss Islington (bot) [Fri, 18 Oct 2024 14:13:31 +0000 (16:13 +0200)]
[3.12] Add tests for time.strftime() with invalid format string (GH-125696) (GH-125701)
(cherry picked from commit
2e950e341930ea79549137d4d3771d5edb940e65 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 18 Oct 2024 02:25:00 +0000 (04:25 +0200)]
[3.12] gh-125620: Skip check_resource_tracker_death on NetBSD due to long wait for SIGKILL process termination (GH-125621) (#125673)
gh-125620: Skip check_resource_tracker_death on NetBSD due to long wait for SIGKILL process termination (GH-125621)
* Skip test_resource_tracker_sigkill on NetBSD
(cherry picked from commit
a0f5c8e6272a1fd5422892d773923b138e77ae5f )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Miss Islington (bot) [Thu, 17 Oct 2024 20:04:48 +0000 (22:04 +0200)]
[3.12] gh-52551: Fix encoding issues in strftime() (GH-125193) (GH-125657) (GH-125661)
Fix time.strftime(), the strftime() method and formatting of the
datetime classes datetime, date and time.
* Characters not encodable in the current locale are now acceptable in
the format string.
* Surrogate pairs and sequence of surrogatescape-encoded bytes are no
longer recombinated.
* Embedded null character no longer terminates the format string.
This fixes also gh-78662 and gh-124531.
(cherry picked from commit
08ccbb9b3f5e20a7a0c4cf9995e172b59fb6067b )
(cherry picked from commit
ad3eac1963a5f195ef9b2c1dbb5e44fa3cce4c72 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 17 Oct 2024 17:09:05 +0000 (19:09 +0200)]
[3.12] [3.13] gh-123370: Fix the canvas not clearing after running turtledemo.clock (gh-123457) (GH-125653) (#125656)
Rewriting the day and date every tick somehow prevented them from being removed either by clicking STOP or loading another example. The solution is to rewrite them only when they change.
(cherry picked from commit
c124577ebe915a00de4033c0f7fa7c47621d79e0 )
(cherry picked from commit
30d7e9e721e8201bc7fb23f08a7d88d51eed827d )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Wulian <xiguawulian@gmail.com>
Miss Islington (bot) [Thu, 17 Oct 2024 16:59:01 +0000 (18:59 +0200)]
[3.12] gh-113570: reprlib.repr does not use builtin __repr__ for reshadowed builtins (GH-113577) (GH-125655)
(cherry picked from commit
04d6dd23e2d8a3132772cf7ce928676e26313585 )
Co-authored-by: George Pittock <66332098+georgepittock@users.noreply.github.com>
Miss Islington (bot) [Thu, 17 Oct 2024 16:01:55 +0000 (18:01 +0200)]
[3.12] gh-125625: Check for `py -3.13` in PCbuild/find_python.bat (GH-125649)
(cherry picked from commit
0cb20f2e7e867d5c34fc17dd5b8e51e8b0020bb3 )
Co-authored-by: Wulian <xiguawulian@gmail.com>
Miss Islington (bot) [Thu, 17 Oct 2024 12:42:55 +0000 (14:42 +0200)]
[3.12] gh-95836: Add custom type converter examples to argparse tutorial (GH-125376) (GH-125642)
(cherry picked from commit
dbcc5ac4709dfd8dfaf323d51f135f2218d14068 )
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
Thomas Grainger [Thu, 17 Oct 2024 04:45:59 +0000 (05:45 +0100)]
[3.12] gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (#124959) (#125466)
gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (#124959)
Miss Islington (bot) [Wed, 16 Oct 2024 22:25:16 +0000 (00:25 +0200)]
gh-125550: Enable py.exe to detect Store installs of 3.14 (GH-125551)
(cherry picked from commit
8e7b2a1161744c7d3d90966a65ed6ae1019a65cb )
Co-authored-by: Steve Dower <steve.dower@python.org>
Sam Gross [Wed, 16 Oct 2024 18:03:32 +0000 (14:03 -0400)]
[3.12] gh-125451: Fix deadlock in ProcessPoolExecutor shutdown (GH-125492) (#125599)
There was a deadlock when `ProcessPoolExecutor` shuts down at the same
time that a queueing thread handles an error processing a task.
Don't use `_shutdown_lock` to protect the `_ThreadWakeup` pipes -- use
an internal lock instead. This fixes the ordering deadlock where the
`ExecutorManagerThread` holds the `_shutdown_lock` and joins the
queueing thread, while the queueing thread is attempting to acquire the
`_shutdown_lock` while closing the `_ThreadWakeup`.
(cherry picked from commit
760872efecb95017db8e38a8eda614bf23d2a22c )
Miss Islington (bot) [Wed, 16 Oct 2024 12:44:37 +0000 (14:44 +0200)]
[3.12] gh-125041: test_zlib: For s390x HW acceleration, only skip checking the compressed bytes (GH-125042) (GH-125526)
(cherry picked from commit
cc5a225cdc2a5d4e035dd08d59cef39182c10a6c )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Tue, 15 Oct 2024 16:29:05 +0000 (18:29 +0200)]
[3.12] gh-100141: Allow pdb to deal with empty file (GH-125425) (#125537)
gh-100141: Allow pdb to deal with empty file (GH-125425)
(cherry picked from commit
bb9604b62ae7f043594ffea9287f9213067cc7fb )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Tue, 15 Oct 2024 16:09:55 +0000 (18:09 +0200)]
[3.12] gh-89819: Add argument_default and conflict_handler to add_argument_group() docs (GH-125379) (GH-125539)
(cherry picked from commit
c9826c11db25e81b1a90c837f84074879f1b1126 )
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
Miss Islington (bot) [Tue, 15 Oct 2024 15:26:41 +0000 (17:26 +0200)]
[3.12] gh-125422: Don't set the caller's f_trace if it's botframe (GH-125427) (#125531)
gh-125422: Don't set the caller's f_trace if it's botframe (GH-125427)
(cherry picked from commit
703227dd021491ceb9343f69fa48f4b6a05adbb3 )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Tue, 15 Oct 2024 14:28:23 +0000 (16:28 +0200)]
[3.12] gh-125514: fix bug in test_traceback utility. Specify exception types in except: clauses (GH-125516) (#125525)
gh-125514: fix bug in test_traceback utility. Specify exception types in except: clauses (GH-125516)
(cherry picked from commit
55c4f4c30b49734ce35dc88139b8b4fdc94c66fd )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Tue, 15 Oct 2024 07:36:17 +0000 (09:36 +0200)]
[3.12] Doc: Update CVE URL (GH-125489) (#125504)
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Miss Islington (bot) [Mon, 14 Oct 2024 22:09:23 +0000 (00:09 +0200)]
[3.12] gh-85453: Improve variable mark up for datetime.rst (GH-120702) (#125491)
Variables and literals are marked up using backticks.
(cherry picked from commit
2a5cdb251674ce8d9a824c102f7cd846d944cfa4 )
Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
Miss Islington (bot) [Mon, 14 Oct 2024 21:34:38 +0000 (23:34 +0200)]
[3.12] Fix idlelib typos (GH-125484) (#125488)
Fix idlelib typos (GH-125484)
Propagate fixes in Doc/library/idle.rst to help.html.
Change 'interruptable' to 'interruptible' in run.py.
The latter was reported by ember91 in PR 125473.
(cherry picked from commit
3fea1d000ef0a74062fd3fe218ad94618b08d9f2 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Serhiy Storchaka [Mon, 14 Oct 2024 20:59:01 +0000 (23:59 +0300)]
[3.12] gh-53203: Fix strptime() for %c, %x and %X formats on many locales (GH-125406) (GH-125454) (GH-125483)
Fixed most locales that use non-ASCII digits, like Persian, Burmese,
Odia and Shan.
(cherry picked from commit
5f4e5b598cab86d5fd5727d423c9728221889ed0 )
(cherry picked from commit
cbcdf34a4b69a28a7e31715423fb080cb5cf8075 )
Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Miss Islington (bot) [Mon, 14 Oct 2024 15:49:56 +0000 (17:49 +0200)]
[3.12] gh-125461: Remove Python 2 from identifiers in doc (GH-125462) (#125465)
gh-125461: Remove Python 2 from identifiers in doc (GH-125462)
Remove Python 2 from identifiers in doc
(cherry picked from commit
5dac0dceda9097d46a0b5a6ad7c927e002c6c7a5 )
Co-authored-by: Paul Hoffman <phoffman@proper.com>
Serhiy Storchaka [Mon, 14 Oct 2024 07:04:44 +0000 (10:04 +0300)]
[3.12] gh-86357: argparse: use str() consistently and explicitly to print choices (GH-117766) (GH-125432)
(cherry picked from commit
66b3922b97388c328c9bd8df050eef11c0261fae )
Signed-off-by: Jan Chren ~rindeal <dev.rindeal@gmail.com>
Co-authored-by: rindeal <dev.rindeal@gmail.com>
Miss Islington (bot) [Mon, 14 Oct 2024 04:51:59 +0000 (06:51 +0200)]
[3.12] gh-123133: clarify p=0 case for "f" and "e" formatting types (GH-125426) (#125429)
gh-123133: clarify p=0 case for "f" and "e" formatting types (GH-125426)
(cherry picked from commit
cfc27bc50fe165330f2295f9ac0ad56ca5b0f31c )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Barney Gale [Sun, 13 Oct 2024 18:18:41 +0000 (19:18 +0100)]
[3.12] GH-125069: Fix inconsistent joining in `WindowsPath(PosixPath(...))` (GH-125156) (#125410)
`PurePath.__init__()` incorrectly uses the `_raw_paths` of a given
`PurePath` object with a different flavour, even though the procedure to
join path segments can differ between flavours.
This change makes the `_raw_paths`-enabled deferred joining apply _only_
when the path flavours match.
(cherry picked from commit
cb8e5995d89d9b90e83cf43310ec50e177484e70 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Sun, 13 Oct 2024 17:45:59 +0000 (19:45 +0200)]
[3.12] gh-101291: Add versionadded directives for PyUnstable_Long_* (GH-125384) (#125408)
gh-101291: Add versionadded directives for PyUnstable_Long_* (GH-125384)
(cherry picked from commit
c6d7b644c2425b397cfb641f336bea70eb8a329a )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Sun, 13 Oct 2024 11:17:55 +0000 (13:17 +0200)]
[3.12] gh-125383: Update `fib` function comment for accuracy (GH-125386) (#125396)
gh-125383: Update `fib` function comment for accuracy (GH-125386)
`Doc/tutorial/controlflow.rst`: fix comment for `fib` function
(cherry picked from commit
283ea5f3b2b6a18605b8598a979afe263b0f21ce )
Co-authored-by: Wulian <xiguawulian@gmail.com>
Miss Islington (bot) [Sun, 13 Oct 2024 08:39:05 +0000 (10:39 +0200)]
[3.12] gh-61698: Use launchctl to detect macOS window manager in tests (GH-118390) (#125393)
(cherry picked from commit
ce740d46246b28bb675ba9d62214b59be9b8411e )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Sun, 13 Oct 2024 07:56:04 +0000 (09:56 +0200)]
[3.12] gh-86673: Loosen test_ttk.test_identify() requirements (GH-125335) (#125391)
In
aeca373b3 (PR gh-12011, issue gh-71500), test_identify() was changed to expect different results on Darwin. Ned's fix was later adjusted by
e52f9bee8 . This workaround is only needed for some variants of Tk/Tcl on macOS, so we now allow both the workaround and the generic results for these tests.
(cherry picked from commit
4197a796ecf3a751ad7245b8d4f980d6d444b614 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Sun, 13 Oct 2024 07:55:37 +0000 (09:55 +0200)]
[3.12] Trivial change: Update comments in activate about what running hash -r does (GH-125385) (#125388)
(cherry picked from commit
82bcaf15890cf85b76b4f62d2dd1710bb49c3ed1 )
Miss Islington (bot) [Sat, 12 Oct 2024 20:44:41 +0000 (22:44 +0200)]
[3.12] gh-125289: Update sample code in asyncio-task.rst (GH-125292) (GH-125375)
gh-125289: Update sample code in asyncio-task.rst (GH-125292)
* Update sample code in asyncio-task.rst
This will change **coroutines** sample code in the **Awaitables** section and make the example clearer.
* Update Doc/library/asyncio-task.rst
Revert the added print
* Update Doc/library/asyncio-task.rst
---------
(cherry picked from commit
fa52b82c91a8e1a0971bd5fef656473ec93f41e3 )
Co-authored-by: Ghorban M. Tavakoly <58617996+galmyk@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Miss Islington (bot) [Sat, 12 Oct 2024 18:02:52 +0000 (20:02 +0200)]
[3.12] gh-53203: Fix strptime() for %c and %x formats on many locales (GH-124946) (GH-125370)
In some locales (like French or Hebrew) the full or abbreviated names of
the default month and weekday used in __calc_date_time can be part of
other name or constant part of the %c format. The month name can also
match %m with constant suffix (like in Japanese). So the code failed to
correctly distinguish formats %a, %A, %b, %B and %m.
Cycle all month and all days of the week to find the variable part
and distinguish %a from %A and %b from %B or %m.
Fixed locales for the following languges:
Arabic, Bislama, Breton, Bodo, Kashubian, Chuvash, Estonian, French, Irish,
Ge'ez, Gurajati, Manx Gaelic, Hebrew, Hindi, Chhattisgarhi, Haitian Kreyol,
Japanese, Kannada, Korean, Marathi, Malay, Norwegian, Nynorsk, Punjabi,
Rajasthani, Tok Pisin, Yoruba, Yue Chinese, Yau/Nungon and Chinese.
(cherry picked from commit
c05f9dde8a12dfd63d3ade93da616042df2dc925 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Eli Bendersky <eliben@gmail.com>
Miss Islington (bot) [Sat, 12 Oct 2024 13:02:14 +0000 (15:02 +0200)]
[3.12] gh-85935: Explicitly document the case nargs=0 in argparse (GH-125302) (GH-125358)
(cherry picked from commit
07c2d15977738165e9dc4248e7edda7c75ecc14b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 12 Oct 2024 13:00:24 +0000 (15:00 +0200)]
[3.12] gh-125254: Fix error report about ambiguous option in argparse (GH-125273) (GH-125360)
This was a regression introduced in gh-58573. It was only tested for the
case when the ambiguous option is the last argument in the command line.
(cherry picked from commit
63cf4e914f879ee28a75c02e867baa7c6047ea2b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 12 Oct 2024 03:12:11 +0000 (05:12 +0200)]
[3.12] gh-124309: fix staggered race on eager tasks (GH-124847) (#125340)
gh-124309: fix staggered race on eager tasks (GH-124847)
This patch is entirely by Thomas and Peter
(cherry picked from commit
979c0df7c0adfb744159a5fc184043dc733d8534 )
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Sat, 12 Oct 2024 00:47:23 +0000 (02:47 +0200)]
[3.12] Doc: Fix a typo in "Function Examples" in the control-flow tutorial (GH-125338) (#125342)
Doc: Fix a typo in "Function Examples" in the control-flow tutorial (GH-125338)
(cherry picked from commit
5a074aab845f82f4a150c27b905dae05c337d381 )
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Fri, 11 Oct 2024 23:23:54 +0000 (01:23 +0200)]
[3.12] gh-116938: Clarify documentation of `dict` and `dict.update` regarding the positional argument they accept (GH-125213) (#125337)
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Jelle Zijlstra [Fri, 11 Oct 2024 22:18:46 +0000 (15:18 -0700)]
[3.12] gh-124917: Allow keyword args to os.path.exists/lexists on Windows (GH-124918) (#125334)
(cherry picked from commit
cc2938a18967c9d462ebb18bc09f73e4364aa7d2 )
Serhiy Storchaka [Fri, 11 Oct 2024 11:22:27 +0000 (14:22 +0300)]
[3.12] gh-125301: Backport some test support helpers (is_apple_mobile, is_apple) (GH-125311)
(cherry picked from commit
391659b3da570bfa28fed5fbdb6f2d9c26ab3dd0 )
Miss Islington (bot) [Fri, 11 Oct 2024 09:52:15 +0000 (11:52 +0200)]
[3.12] Add some doctest cleanups for `configparser` (GH-125288) (#125291)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Fri, 11 Oct 2024 09:07:03 +0000 (11:07 +0200)]
[3.12] gh-61011: Fix inheritance of nested mutually exclusive groups in argparse (GH-125210) (GH-125309)
Previously, all nested mutually exclusive groups lost their connection
to the group containing them and were displayed as belonging directly
to the parser.
(cherry picked from commit
18c74497681e0107d7cde53e63ea42feb38f2176 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Danica J. Sutherland <djsutherland@users.noreply.github.com>
Miss Islington (bot) [Fri, 11 Oct 2024 08:22:34 +0000 (10:22 +0200)]
[3.12] gh-125058: update `_thread` docs regarding interruptibility of `lock.acquire()` (GH-125141) (#125307)
gh-125058: update `_thread` docs regarding interruptibility of `lock.acquire()` (GH-125141)
(cherry picked from commit
0135848059162ad81478a7776fec622d68a36524 )
Co-authored-by: Jan Kaliszewski <zuo@kaliszewski.net>
Miss Islington (bot) [Fri, 11 Oct 2024 06:39:54 +0000 (08:39 +0200)]
[3.12] gh-125296: Fix strange fragment identifier for `name or flags` in argparse docs (GH-125297) (#125300)
gh-125296: Fix strange fragment identifier for `name or flags` in argparse docs (GH-125297)
(cherry picked from commit
c1913effeed4e4da4d5310a40ab518945001ffba )
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
Miss Islington (bot) [Fri, 11 Oct 2024 06:37:55 +0000 (08:37 +0200)]
[3.12] [3.13] gh-124969: Fix locale.nl_langinfo(locale.ALT_DIGITS) (GH-124974) (GH-125232) (GH-125284)
(cherry picked from commit
26a93189e4c3674a9e0acbd7923b1f27ff01419e )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Returns a tuple of up to 100 strings for ALT_DIGITS lookup (an empty tuple on most locales).
Previously it returned the first item of that tuple or an empty string.
(cherry picked from commit
21c04e1a972bd1b6285e0ea41fa107d635bbe43a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 10 Oct 2024 20:32:40 +0000 (22:32 +0200)]
[3.12] Doc: Upgrade Sphinx to 8.1 (GH-125276) (#125279)
Doc: Upgrade Sphinx to 8.1 (GH-125276)
(cherry picked from commit
dd0ee201da34d1d4a631d77b420728f9233f53f9 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Thu, 10 Oct 2024 18:18:01 +0000 (20:18 +0200)]
[3.12] Note argparse exit code in documentation (GH-119568) (GH-125275)
(cherry picked from commit
3b87fb74c907510402678bf1b7c4a94df0e5e65a )
Co-authored-by: Justin Kunimune <justinkunimune@gmail.com>
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
Miss Islington (bot) [Thu, 10 Oct 2024 17:31:27 +0000 (19:31 +0200)]
[3.12] gh-121607: Edited source file import recipe to make it more clear (GH-121519) (GH-124081)
gh-121607: Edited source file import recipe to make it more clear (GH-121519)
(cherry picked from commit
38809171b8768517824fb62d48abe2cb0aff8429 )
Co-authored-by: Chris Barker <Chris.Barker@noaa.gov>
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Sergey B Kirpichev [Thu, 10 Oct 2024 14:56:49 +0000 (17:56 +0300)]
[3.12] gh-125118: don't copy arbitrary values to _Bool in the struct module (GH-125169) (#125265)
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>
Donghee Na [Thu, 10 Oct 2024 13:01:41 +0000 (22:01 +0900)]
[3.12] gh-124471: Set name for unnamed reusable workflow (GH-124475) (gh-125257)
(cherry picked from commit
e4cab488d4445e8444932f3bed1c329c0d9e5038 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Miss Islington (bot) [Thu, 10 Oct 2024 10:37:14 +0000 (12:37 +0200)]
[3.12] gh-71784: [doc] add usage examples for traceback.TracebackException (GH-125189) (#125248)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Miss Islington (bot) [Thu, 10 Oct 2024 09:52:54 +0000 (11:52 +0200)]
[3.12] Pin the doctest workflow to Ubuntu 22.04 (GH-125236) (#125241)
Pin the doctest workflow to Ubuntu 22.04 (GH-125236)
(cherry picked from commit
7a10cdec359750b5154490fa9e24475c90d05aab )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Adam Turner [Thu, 10 Oct 2024 09:16:03 +0000 (10:16 +0100)]
[3.12] GH-121970: Extract ``availability`` into a new extension (GH-125082) (#125238)
(cherry picked from commit
cbfd39247983309a9ef0ae6da6c61cc71665b967 )
Alex Waygood [Wed, 9 Oct 2024 19:18:38 +0000 (20:18 +0100)]
[3.12] gh-101100: Consolidate documentation on `ModuleType` attributes (#124709) (#125211)
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>
Miss Islington (bot) [Wed, 9 Oct 2024 16:54:38 +0000 (18:54 +0200)]
[3.12] docs: in venv table use executable name (GH-124315) (#125171)
(cherry picked from commit
7f93dbf6fec152888727a0f25a3aa030d1fe27ca )
Miss Islington (bot) [Wed, 9 Oct 2024 14:16:13 +0000 (16:16 +0200)]
[3.12] gh-101100: Fix Sphinx warnings in `library/unittest.mock.rst` (GH-124106) (#125191)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Savannah Ostrowski [Tue, 8 Oct 2024 23:20:49 +0000 (17:20 -0600)]
[3.12] GH-124478: Cleanup argparse documentation (GH-124877) (#125164)
(cherry picked from commit
37228bd16e3ef97d32da08848552f7ef016d68ab )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Raymond Hettinger [Tue, 8 Oct 2024 20:16:18 +0000 (15:16 -0500)]
[3.12] Tee of tee was not producing n independent iterators (gh-123884) (gh-125153)
Miss Islington (bot) [Tue, 8 Oct 2024 18:27:50 +0000 (20:27 +0200)]
[3.12] gh-124832: Add a note to indicate that `datetime.now` may return the same instant (GH-124834) (#125146)
gh-124832: Add a note to indicate that `datetime.now` may return the same instant (GH-124834)
* Update datetime.rst
* Update datetime.rst
replace warning with note
* Update Doc/library/datetime.rst
* Update Doc/library/datetime.rst
---------
(cherry picked from commit
760b1e103a0aa696cdf448e0d500cd1bac2213fa )
Co-authored-by: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Tue, 8 Oct 2024 12:32:04 +0000 (14:32 +0200)]
[3.12] Doc: Improve description of ``GET_LEN`` opcode (GH-114583) (#125103)
Doc: Improve description of ``GET_LEN`` opcode (GH-114583)
(cherry picked from commit
e8773e59a835d23b9648271e0eb79c1651581564 )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Miss Islington (bot) [Tue, 8 Oct 2024 11:56:18 +0000 (13:56 +0200)]
[3.12] gh-123378: fix a crash in `UnicodeError.__str__` (GH-124935) (#125098)
gh-123378: fix a crash in `UnicodeError.__str__` (GH-124935)
(cherry picked from commit
ba14dfafd97d1fd03938ac8ddec4ca5b2f12985d )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Serhiy Storchaka [Tue, 8 Oct 2024 09:47:37 +0000 (12:47 +0300)]
[3.12] gh-53203: Improve tests for strptime() (GH-125090) (GH-125093)
Run them with different locales and different date and time.
Add the @run_with_locales() decorator to run the test with multiple
locales.
Improve the run_with_locale() context manager/decorator -- it now
catches only expected exceptions and reports the test as skipped if no
appropriate locale is available.
(cherry picked from commit
19984fe024bfd90649f1c36b78c9abf3ed72b27d )
Miss Islington (bot) [Tue, 8 Oct 2024 06:24:09 +0000 (08:24 +0200)]
[3.12] gh-124653: Relax (again) detection of queue API for logging handlers (GH-124897) (GH-125060)
(cherry picked from commit
7ffe94fb242fd51bb07c7f0d31e94efeea3619d4 )
Miss Islington (bot) [Mon, 7 Oct 2024 19:23:08 +0000 (21:23 +0200)]
[3.12] gh-122392: IDLE - Fix overlapping lines in browsers (GH-122392) (GH-124975) (#125062)
gh-122392: IDLE - Fix overlapping lines in browsers (GH-122392) (GH-124975)
Increase currently inadequate vertical spacing for the IDLE browsers (path,
module, and stack) on high-resolution monitors.
---------
(cherry picked from commit
c5df1cb7bde7e86f046196b0e34a0b90f8fc11de )
Co-authored-by: Zhikang Yan <2951256653@qq.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
T. Wouters [Mon, 7 Oct 2024 18:51:07 +0000 (11:51 -0700)]
[3.12] GH-109975: Announce final release in What's New in Python 3.13 (GH-125007) (#125034)
Prepare What's New in Python 3.13 for final release
(cherry picked from commit
31516c98dd7097047ba10da8dcf728c3d580f3d6 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Mon, 7 Oct 2024 17:59:31 +0000 (19:59 +0200)]
[3.12] gh-124182: Explain naming rules for struct sequence types (GH-124335) (#125056)
gh-124182: Explain naming rules for struct sequence types (GH-124335)
(cherry picked from commit
3287c834e5370294e310450115290979aac06efa )
Co-authored-by: ffelixg <142172984+ffelixg@users.noreply.github.com>
Miss Islington (bot) [Mon, 7 Oct 2024 16:58:47 +0000 (18:58 +0200)]
[3.12] gh-125018: Fix role syntax (GH-125050) (#125055)
gh-125018: Fix role syntax (GH-125050)
(cherry picked from commit
10094a533a947b72d01ed8195dcf540f2e7820ea )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Alyssa Coghlan [Mon, 7 Oct 2024 14:24:45 +0000 (00:24 +1000)]
[3.12] gh-125018: Add importlib.metadata semantic link targets (GH-125027) (#125048)
This allows direct intersphinx references to APIs via references
like `` :func:`importlib.metadata.version` ``.
---------
(cherry picked from commit
cda3b5a576412a8671bbe4c68bb792ec14f1a4b1 )
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sun, 6 Oct 2024 23:03:30 +0000 (01:03 +0200)]
[3.12] gh-125025: `_thread` docs: fix/update the *caveats* list (GH-125026) (GH-125031)
gh-125025: `_thread` docs: fix/update the *caveats* list (GH-125026)
(cherry picked from commit
1e098dc766ba4f29a63da4f188fb214af7623365 )
Co-authored-by: Jan Kaliszewski <zuo@kaliszewski.net>
Adam Turner [Sun, 6 Oct 2024 22:42:11 +0000 (23:42 +0100)]
[3.12] Doc: Simplify the definition of 'soft deprecated' (GH-124988) (#125030)
(cherry picked from commit
feca4cf64e9742b9c002d5533ced47e68b34a880 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Miss Islington (bot) [Sun, 6 Oct 2024 13:34:24 +0000 (15:34 +0200)]
[3.12] gh-125008: Fix `tokenize.untokenize` roundtrip for `\n{{` (GH-125013) (#125021)
Petr Viktorin [Fri, 4 Oct 2024 14:50:34 +0000 (16:50 +0200)]
[3.12] gh-113993: For string interning, do not rely on (or assert) _Py_IsImmortal (GH-121358) (GH-124938)
gh-113993: For string interning, do not rely on (or assert) _Py_IsImmortal (GH-121358)
Older stable ABI extensions are allowed to make immortal objects mortal.
Instead, use `_PyUnicode_STATE` (`interned` and `statically_allocated`).
(cherry picked from commit
956270d08d5c23f59937e2f29f8e0b7f63d68afd )
Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Miss Islington (bot) [Thu, 3 Oct 2024 10:45:25 +0000 (12:45 +0200)]
[3.12] gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` (gh-124920) (gh-124931)
gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` (gh-124920)
(cherry picked from commit
9eeb21bf761070649bf8d78976a62dabb6d67a99 )
Co-authored-by: Donghee Na <donghee.na@python.org>
Miss Islington (bot) [Thu, 3 Oct 2024 08:31:54 +0000 (10:31 +0200)]
[3.12] gh-121982: ``csv``: Add a test case for invalid ``quoting`` constant. (GH-121983) (#124925)
gh-121982: ``csv``: Add a test case for invalid ``quoting`` constant. (GH-121983)
Test invalid quoting constant
(cherry picked from commit
656b7a3c83c79f99beac950b59c47575562ea729 )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Peter Bierma [Wed, 2 Oct 2024 21:40:49 +0000 (17:40 -0400)]
[3.12] gh-120378: Fix crash caused by integer overflow in `curses` (GH-124555) (#124911)
This is actually an upstream problem in curses, and has been reported
to them already:
https://lists.gnu.org/archive/html/bug-ncurses/2024-09/msg00101.html
This is a nice workaround in the meantime to prevent the segfault.
(cherry picked from commit
c2ba931318280796a6dcc33d1a5c5c02ad4d035b )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Serhiy Storchaka [Wed, 2 Oct 2024 18:02:14 +0000 (21:02 +0300)]
[3.12] gh-123978: Remove broken time.thread_time() on NetBSD (GH-124116) (GH-124427)
(cherry picked from commit
e670a113b5e1fcc3ce3bb9b5b4b1f126264ae21b )
Miss Islington (bot) [Wed, 2 Oct 2024 14:31:20 +0000 (16:31 +0200)]
[3.12] gh-85935: Improve tests for invalid arguments in test_argparse (GH-124891) (GH-124898)
Check also specific error messages.
(cherry picked from commit
2c050d4bc28bffd2990b5a0bd03fb6fc56b13656 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 2 Oct 2024 10:36:54 +0000 (12:36 +0200)]
[3.12] gh-122864: Fix a ``test_funcattrs.test___builtins__`` when executing directly (GH-124845) (#124885)
gh-122864: Fix a ``test_funcattrs.test___builtins__`` when executing directly (GH-124845)
Previously when executing ``test_functattrs.test___builtins__`` directly, it failed because the fact, that ``__builtins__`` is refers to the built-in module ``builtins`` while it's expects a ``__builtins__.__dict__``. But when this test is being run from another module, then ``__builtins__`` is refers to ``builtins.__dict__``. Now this part of the behaviour is covered.
---------
(cherry picked from commit
8fbf10d6cfd9c69ffcc1f80fa0c5f33785197af7 )
Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 2 Oct 2024 09:07:38 +0000 (11:07 +0200)]
[3.12] gh-58282: Fix support of tuple metavar for positional arguments in argparse (GH-124782) (GH-124881)
Previously, formatting help output or error message for positional argument
with a tuple metavar raised exception.
(cherry picked from commit
9b31a2d83fa7cb0fe4d75ce7cf6a2c9ea2ce0728 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Cyker Way <cykerway@gmail.com>
Miss Islington (bot) [Wed, 2 Oct 2024 04:57:07 +0000 (06:57 +0200)]
[3.12] Highlight `datetime.timedelta.seconds` vs `.total_seconds()` in docs. (GH-124811) (GH-124863)
Highlight `datetime.timedelta.seconds` vs `.total_seconds()` in docs. (GH-124811)
Thanks to the reviewers for suggesting the use of a "caution" section instead of "warning" or "note".
(cherry picked from commit
d150e4abcfc13770c2d239878ed337fb53e51de5 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Tue, 1 Oct 2024 16:22:05 +0000 (18:22 +0200)]
[3.12] gh-124842: Fix test.support.import_helper.make_legacy_pyc() (GH-124843) (GH-124854)
For source file "path/to/file.py" it created file with incorrect path
"/absolute/path/to/path/to/file.pyc" instead of "path/to/file.pyc".
(cherry picked from commit
60ff67d010078eca15a74b1429caf779ac4f9c74 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 1 Oct 2024 09:50:59 +0000 (11:50 +0200)]
[3.12] Doc: Fix archive filenames for standard builds (GH-124826) (#124837)
Doc: Fix archive filenames for standard builds (GH-124826)
(cherry picked from commit
91e64be731fe42e6b252b95d79d900251388bfc6 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Thomas Wouters [Tue, 1 Oct 2024 05:12:34 +0000 (07:12 +0200)]
Post 3.12.7
Thomas Wouters [Tue, 1 Oct 2024 02:01:22 +0000 (04:01 +0200)]
Python 3.12.7
Miss Islington (bot) [Tue, 1 Oct 2024 01:55:03 +0000 (03:55 +0200)]
[3.12] gh-124309: Revert eager task factory fix to prevent breaking downstream (GH-124810) (#124817)
gh-124309: Revert eager task factory fix to prevent breaking downstream (GH-124810)
* Revert "GH-124639: add back loop param to staggered_race (GH-124700)"
This reverts commit
e0a41a5dd12cb6e9277b05abebac5c70be684dd7 .
* Revert "gh-124309: Modernize the `staggered_race` implementation to support eager task factories (GH-124390)"
This reverts commit
de929f353c413459834a2a37b2d9b0240673d874 .
(cherry picked from commit
133e929a791d209b578b4822a7a07f4570b3803b )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Neil Schemenauer [Tue, 1 Oct 2024 01:54:41 +0000 (18:54 -0700)]
[3.12] gh-124785: Revert "[3.12] gh-116510: Fix a crash due to shared immortal interned strings. (gh-124541)" (#124814)
Revert "[3.12] gh-116510: Fix a crash due to shared immortal interned strings. (gh-124541)"
This reverts commit
5dd07ebc0c27e2fffdfd041401c8cc7f0cda0dfc .
Hugo van Kemenade [Mon, 30 Sep 2024 21:18:03 +0000 (00:18 +0300)]
[3.12] Docs: Update and proofread `library/venv.rst` (GH-124121) (#124680)
* [3.12] Docs: Update and proofread `library/venv.rst` (GH-124121)
(cherry picked from commit
23e812b84ae688a56a1011ed69a0d178c70e35ea )
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* Remove 3.13 docs
---------
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Mon, 30 Sep 2024 21:17:16 +0000 (23:17 +0200)]
[3.12] Docs: for for/else clarify that return or raise also skip the else (GH-124591) (#124660)
Docs: for for/else clarify that return or raise also skip the else (GH-124591)
(cherry picked from commit
5329d1b74a86b3a22ff36f7976bfe720ee06d10d )
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Mon, 30 Sep 2024 21:16:42 +0000 (23:16 +0200)]
[3.12] gh-123223: Adding hyperlink of argument in warnings.catch_warnings: (GH-123231) (#124527)
gh-123223: Adding hyperlink of argument in warnings.catch_warnings: (GH-123231)
(cherry picked from commit
828583a7855f15edc96e6721c226ace098ba463b )
Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Miss Islington (bot) [Mon, 30 Sep 2024 20:02:13 +0000 (22:02 +0200)]
[3.12] gh-116810: fix memory leak in ssl module (GH-123249) (GH-124801)
gh-116810: fix memory leak in ssl module (GH-123249)
Resolve a memory leak introduced in CPython 3.10's :mod:`ssl` when the :attr:`ssl.SSLSocket.session` property was accessed. Speeds up read and write access to said property by no longer unnecessarily cloning session objects via serialization.
(cherry picked from commit
7e7223e18f58ec48fb36a68fb75b5c5b7a45042a )
Co-authored-by: Jeffrey R. Van Voorst <jeff.vanvoorst@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Antoine Pitrou <antoine@python.org>
Miss Islington (bot) [Mon, 30 Sep 2024 16:55:15 +0000 (18:55 +0200)]
[3.12] Doc: Run HTML and non-HTML daily builds separately (GH-124493) (#124791)
Doc: Run HTML and non-HTML daily builds separately (GH-124493)
(cherry picked from commit
cce1125574f7b74343afda4bd0030706f67e13df )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
sobolevn [Mon, 30 Sep 2024 13:50:33 +0000 (16:50 +0300)]
[3.12] Fix `c-api/file.rst` indexes (GH-114608) (#124786)
(cherry picked from commit
23fb9f0777b054526b3b32f58e60b2a03132bf45 )
Hugo van Kemenade [Sun, 29 Sep 2024 17:11:29 +0000 (20:11 +0300)]
[3.12] Create hyperlink and fix typos in macOS installer (#123805)
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Sun, 29 Sep 2024 11:13:25 +0000 (13:13 +0200)]
[3.12] Docs: improve generic `typing.NamedTuple` example (GH-124739) (#124765)
Docs: improve generic `typing.NamedTuple` example (GH-124739)
(cherry picked from commit
76fbee642e78eacf3866102f31e0ac969b57f1e6 )
Co-authored-by: CBerJun <121291537+CBerJun@users.noreply.github.com>
Miss Islington (bot) [Sun, 29 Sep 2024 09:18:06 +0000 (11:18 +0200)]
[3.12] gh-58573: Fix conflicts between abbreviated long options in the parent parser and subparsers in argparse (GH-124631) (GH-124759)
Check for ambiguous options if the option is consumed, not when it is
parsed.
(cherry picked from commit
3f27153e077d7e9448e2f081275931968b40cc74 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 29 Sep 2024 08:40:00 +0000 (10:40 +0200)]
[3.12] gh-116850: Fix argparse for namespaces with not directly writable dict (GH-124667) (GH-124758)
It now always uses setattr() instead of setting the dict item to modify
the namespace. This allows to use a class as a namespace.
(cherry picked from commit
95e92ef6c74e973ea13d15180190d0fa2af82fbf )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>