]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
8 months ago[3.13] gh-129567: Add a note to `typing.TypedDict` docs about name mangling (GH-13023...
Miss Islington (bot) [Tue, 4 Mar 2025 15:21:11 +0000 (16:21 +0100)] 
[3.13] gh-129567: Add a note to `typing.TypedDict` docs about name mangling (GH-130233) (#130841)

gh-129567: Add a note to `typing.TypedDict` docs about name mangling (GH-130233)
(cherry picked from commit 63ffb406bb000a42b0dbddcfc01cb98a12f8f76a)

Co-authored-by: sobolevn <mail@sobolevn.me>
8 months ago[3.13] gh-130736: Fix asyncio test_shutdown_default_executor_timeout() (GH-130800...
Miss Islington (bot) [Tue, 4 Mar 2025 12:11:31 +0000 (13:11 +0100)] 
[3.13] gh-130736: Fix asyncio test_shutdown_default_executor_timeout() (GH-130800) (#130825)

gh-130736: Fix asyncio test_shutdown_default_executor_timeout() (GH-130800)

Replace time.sleep() with threading.Event.
(cherry picked from commit 6c48ed7d62c6ca0eb24935b0e612f9e4a1a3b1bc)

Co-authored-by: Victor Stinner <vstinner@python.org>
8 months ago[3.13] gh-130737: Fix multiprocessing test_notify() (GH-130797) (#130802)
Miss Islington (bot) [Mon, 3 Mar 2025 19:09:34 +0000 (20:09 +0100)] 
[3.13] gh-130737: Fix multiprocessing test_notify() (GH-130797) (#130802)

gh-130737: Fix multiprocessing test_notify() (GH-130797)

Replace hardcoded delay (100 ms) with a loop awaiting until a
condition is true: replace assertReturnsIfImplemented() with
assertReachesEventually().

Use sleeping_retry() in assertReachesEventually() to tolerate slow
buildbots and raise an exception on timeout (30 seconds).
(cherry picked from commit 8a64a62002fa3cdc93cb4cfee315edb235cad8cb)

Co-authored-by: Victor Stinner <vstinner@python.org>
8 months ago[3.13] gh-128388: pyrepl on Windows: add meta and ctrl+arrow keybindings (GH-128389...
Miss Islington (bot) [Mon, 3 Mar 2025 15:57:53 +0000 (16:57 +0100)] 
[3.13] gh-128388: pyrepl on Windows: add meta and ctrl+arrow keybindings (GH-128389) (GH-130500)

gh-128388: pyrepl on Windows: add meta and ctrl+arrow keybindings (GH-128389)

Fix `Lib/_pyrepl/windows_console.py` to support more keybindings, like the
`Ctrl`+`←` and `Ctrl`+`→` word-skipping keybindings and those with meta (i.e. Alt),
e.g. to `kill-word` or `backward-kill-word`.

Specifics: if Ctrl is pressed, emit "ctrl left" and "ctrl right" instead of just "left" or
"right," and if Meta/Alt is pressed, emit the special key code for meta before
emitting the other key that was pressed.
(cherry picked from commit 688f3a0d4b94874ff6d72af3baafd8bbf911153e)

Co-authored-by: Paulie Peña <203125+paulie4@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
8 months ago[3.13] gh-130379: Fix incorrect zipapp logic to avoid including the target in itself...
Miss Islington (bot) [Mon, 3 Mar 2025 15:20:05 +0000 (16:20 +0100)] 
[3.13] gh-130379: Fix incorrect zipapp logic to avoid including the target in itself (gh-130509) (gh-130791)

gh-130379: Fix incorrect zipapp logic to avoid including the target in itself (gh-130509)
(cherry picked from commit 64ccbbbf367c7510090a6f5faf826a21102a8bc6)

Co-authored-by: Paul Moore <p.f.moore@gmail.com>
8 months ago[3.13] Docs: Fix a misplaced statement in the document for `ServerProxy` (GH-130616...
Miss Islington (bot) [Mon, 3 Mar 2025 14:09:26 +0000 (15:09 +0100)] 
[3.13] Docs: Fix a misplaced statement in the document for `ServerProxy` (GH-130616) (GH-130640)

Docs: Fix a misplaced statement in the document for `ServerProxy` (GH-130616)

The sentence "If an HTTPS URL ..." explains what the parameter means,
so moved it to the paragraph explaining what the other parameters mean.
(cherry picked from commit b26286ca49d87ad8491e411f7b0283b0f15ad5be)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
8 months ago[3.13] gh-130740: Move some `stdbool.h` includes after `Python.h` (#130738) (#130756)
Bénédikt Tran [Mon, 3 Mar 2025 12:09:59 +0000 (13:09 +0100)] 
[3.13] gh-130740: Move some `stdbool.h` includes after `Python.h` (#130738) (#130756)

gh-130740: Move some `stdbool.h` includes after `Python.h` (#130738)

Move some `#include <stdbool.h>` after `#include "Python.h"` when `pyconfig.h` is not
included first and when we are in a platform-agnostic context. This is to avoid having
features defined by `stdbool.h` before those decided by `Python.h` (this caused some
build failures when compiling CPython with `zig cc`).

(cherry-picked from commit 214562ed4ddc248b007f718ed92ebcc0c3669611)

---------

Co-authored-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
8 months ago[3.13] gh-127667: fix memory leaks in `hashlib` (GH-127668) (#130784)
Bénédikt Tran [Mon, 3 Mar 2025 11:01:01 +0000 (12:01 +0100)] 
[3.13] gh-127667: fix memory leaks in `hashlib` (GH-127668) (#130784)

gh-127667: fix memory leaks in `hashlib` (GH-127668)

- Correctly handle `NULL` values returned by `EVP_MD_CTX_md`.
- Correctly free resources in error branches.
- Consistently suppress `_setException()` return value when needed.
- Collapse `_setException() + return NULL` into a single statement.

(cherry-picked from commit 097846502b7f33cb327d512e2a396acf4f4de46e)

8 months ago[3.13] gh-101100: Fix sphinx warnings in `library/email.errors.rst` (GH-130774) ...
Miss Islington (bot) [Mon, 3 Mar 2025 10:04:51 +0000 (11:04 +0100)] 
[3.13] gh-101100: Fix sphinx warnings in `library/email.errors.rst` (GH-130774) (#130781)

gh-101100: Fix sphinx warnings in `library/email.errors.rst` (GH-130774)
(cherry picked from commit a105f990199f99a352efd481ac039604feceaab5)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
8 months ago[3.13] gh-101100: Fix Sphinx documentation warnings in `collections.rst` (GH-130629...
Miss Islington (bot) [Mon, 3 Mar 2025 09:57:28 +0000 (10:57 +0100)] 
[3.13] gh-101100: Fix Sphinx documentation warnings in `collections.rst` (GH-130629) (#130779)

gh-101100: Fix Sphinx documentation warnings in `collections.rst` (GH-130629)
(cherry picked from commit 373eb1b47af6843678c477b237d787c04dda2818)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
8 months ago[3.13] gh-129015: Improve disambiguation between `NotImplemented` and `NotImplemented...
Miss Islington (bot) [Mon, 3 Mar 2025 08:29:29 +0000 (09:29 +0100)] 
[3.13] gh-129015: Improve disambiguation between `NotImplemented` and `NotImplementedError` (GH-129562) (#130776)

gh-129015: Improve disambiguation between `NotImplemented` and `NotImplementedError` (GH-129562)

---------

(cherry picked from commit a85eeb97710617404ba7a0fac3b264f586caf70c)

Co-authored-by: Mike Castle <dalgoda+github@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
8 months ago[3.13] gh-130637: Add validation for numeric response data in `stat()` method (GH...
Miss Islington (bot) [Sun, 2 Mar 2025 20:28:56 +0000 (21:28 +0100)] 
[3.13] gh-130637: Add validation for numeric response data in `stat()` method (GH-130646) (#130763)

gh-130637: Add validation for numeric response data in `stat()` method (GH-130646)
(cherry picked from commit a42168d316f0c9a4fc5658dab87682dc19054efb)

Co-authored-by: Kanishk Pachauri <itskanishkp.py@gmail.com>
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
8 months ago[3.13] gh-128481: indicate that the default value for `FrameSummary.end_lineno` chang...
Miss Islington (bot) [Sun, 2 Mar 2025 17:22:48 +0000 (18:22 +0100)] 
[3.13] gh-128481: indicate that the default value for `FrameSummary.end_lineno` changed in 3.13 (GH-130755) (#130767)

gh-128481: indicate that the default value for `FrameSummary.end_lineno` changed in 3.13 (GH-130755)

The value taken by `FrameSummary.end_lineno` when passing `end_lineno=None` changed in gh-112097.

Previously, a `end_lineno` could be specified to be `None` directly but since 939fc6d, passing None makes
the constructor use the value of `lineno` instead.
(cherry picked from commit c6513f7a627c8918a5e3f3733fa47d34a94ddff9)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
8 months ago[3.13] Fix grammar typo in `Doc/c-api/arg.rst` (GH-130741) (#130759)
Miss Islington (bot) [Sun, 2 Mar 2025 11:14:29 +0000 (12:14 +0100)] 
[3.13] Fix grammar typo in `Doc/c-api/arg.rst` (GH-130741) (#130759)

Fix grammar typo in `Doc/c-api/arg.rst` (GH-130741)
(cherry picked from commit 37145cb89fe806377a5e9ed1fdac92dd3a5df2c0)

Co-authored-by: Arijit Kumar Das <arijitkrdas2004@outlook.com>
8 months ago[3.13] Add link in the `importlib.metadata.version()` docs (GH-130739) (#130761)
Miss Islington (bot) [Sun, 2 Mar 2025 10:42:15 +0000 (11:42 +0100)] 
[3.13] Add link in the `importlib.metadata.version()` docs (GH-130739) (#130761)

Add link in the `importlib.metadata.version()` docs (GH-130739)

Link the specification for the returned data makes it clearer what this is
and what the format of the version string can be.
(cherry picked from commit c71e55869e7bc56b2bd04f3055f810026a66c076)

Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
8 months ago[3.13] gh-128481: Improve documentation for `traceback.FrameSummary` (GH-128484)...
Miss Islington (bot) [Sun, 2 Mar 2025 09:48:30 +0000 (10:48 +0100)] 
[3.13] gh-128481: Improve documentation for `traceback.FrameSummary` (GH-128484) (#130753)

* gh-128481: Improve documentation for `traceback.FrameSummary` (GH-128484)

Complete the `traceback.FrameSummary` signature and add missing
documentation for the `colno` and `end_{col,line}no` attributes.
(cherry picked from commit 051f0e5683fec3840fa7fc99723741dd2d701eae)

Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
8 months ago[3.13] gh-130160: use `.. program::` directive for documenting `cProfile` CLI (GH...
Miss Islington (bot) [Sat, 1 Mar 2025 20:45:33 +0000 (21:45 +0100)] 
[3.13] gh-130160: use `.. program::` directive for documenting `cProfile` CLI (GH-130314) (#130745)

gh-130160: use `.. program::` directive for documenting `cProfile` CLI (GH-130314)
(cherry picked from commit 5181ddb29f969c1718f3f4f9618c260807b2886c)

Co-authored-by: Apostol Fet <90645107+ApostolFet@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
8 months ago[3.13] gh-130618: Fix parser error when using lambdas inside f-strings (GH-130638...
Pablo Galindo Salgado [Sat, 1 Mar 2025 18:10:03 +0000 (18:10 +0000)] 
[3.13] gh-130618: Fix parser error when using lambdas inside f-strings (GH-130638) (#130642)

(cherry picked from commit e06bebb87e1b33f7251196e1ddb566f528c3fc98)

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
8 months ago[3.13] Revert "gh-128364: Fix flaky `test_timeout` test (gh-130724)" (gh-130732)...
Miss Islington (bot) [Sat, 1 Mar 2025 17:44:50 +0000 (18:44 +0100)] 
[3.13] Revert "gh-128364: Fix flaky `test_timeout` test (gh-130724)" (gh-130732) (#130734)

Revert "gh-128364: Fix flaky `test_timeout` test (gh-130724)" (gh-130732)

Change broke Android and iOS buildbots that do not have multiprocessing.

This reverts commit cfa0b1dc375e63cde28e61a47108c645b0e74834.
(cherry picked from commit 5221d9ce0e2beb0fe04bed072e1bb448fd522882)

Co-authored-by: Sam Gross <colesbury@gmail.com>
8 months ago[3.13] gh-128364: Fix flaky `test_timeout` test (gh-130724) (gh-130728)
Miss Islington (bot) [Sat, 1 Mar 2025 16:46:58 +0000 (17:46 +0100)] 
[3.13] gh-128364: Fix flaky `test_timeout` test (gh-130724) (gh-130728)

gh-128364: Fix flaky `test_timeout` test (gh-130724)
(cherry picked from commit cfa0b1dc375e63cde28e61a47108c645b0e74834)

Co-authored-by: Sam Gross <colesbury@gmail.com>
8 months ago[3.13] gh-124878: Add temporary TSAN suppression for free_threadstate (gh-130602...
Sam Gross [Fri, 28 Feb 2025 14:53:35 +0000 (09:53 -0500)] 
[3.13] gh-124878: Add temporary TSAN suppression for free_threadstate (gh-130602) (gh-130687)

The race condition with `free_threadstate` and daemon threads exists in
both the free threading and default builds. We were missing a
suppression in the default build.
(cherry picked from commit cc17307faaa248535c65f6a7668e06dc8ef04575)

8 months ago[3.13] gh-130607: Extend and cleanup IPv6 tests (GH-121518) (GH-130679)
Miss Islington (bot) [Fri, 28 Feb 2025 11:41:41 +0000 (12:41 +0100)] 
[3.13] gh-130607: Extend and cleanup IPv6 tests (GH-121518) (GH-130679)

Extend IPv6 tests and made little syntax refactoring
(cherry picked from commit 9f0879baf15fdcf89f1b85cc244d596d4d0f4e47)

Co-authored-by: Ilya Bazhenov <31971067+bazhil@users.noreply.github.com>
8 months ago[3.13] Postpone <stdbool.h> inclusion after Python.h (#130641) (#130675)
Victor Stinner [Fri, 28 Feb 2025 09:40:06 +0000 (10:40 +0100)] 
[3.13] Postpone <stdbool.h> inclusion after Python.h (#130641) (#130675)

Postpone <stdbool.h> inclusion after Python.h (#130641)

Remove inclusions prior to Python.h.

<stdbool.h> will cause <features.h> to be included before Python.h can
define some macros to enable some additional features, causing multiple
types not to be defined down the line.

(cherry picked from commit 830f04b5056db92ba96387db0a778dcd19a39522)

Co-authored-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
8 months ago[3.13] gh-130655: Increase test coverage of gettext._expand_lang() (GH-130656) (GH...
Miss Islington (bot) [Fri, 28 Feb 2025 09:02:18 +0000 (10:02 +0100)] 
[3.13] gh-130655: Increase test coverage of gettext._expand_lang() (GH-130656) (GH-130671)

(cherry picked from commit 24c52cb14c4b044154bd46bd1b2a9c37076caeb9)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
8 months ago[3.13] gh-129726: Break `gzip.GzipFile` reference loop (GH-130055) (#130669)
Miss Islington (bot) [Fri, 28 Feb 2025 08:32:44 +0000 (09:32 +0100)] 
[3.13] gh-129726: Break `gzip.GzipFile` reference loop (GH-130055) (#130669)

gh-129726: Break `gzip.GzipFile` reference loop (GH-130055)

A reference loop was resulting in the `fileobj` held by the `GzipFile`
being closed before the `GzipFile`.

The issue started with gh-89550 in 3.12, but was hidden in most cases
until 3.13 when gh-62948 made it more visible.
(cherry picked from commit 7f39137662f637518a74228286e7ec675fa4e27d)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
8 months ago[3.13] gh-129296: Fix `pyatomic.h` include paths (GH-129320) (#130667)
Miss Islington (bot) [Fri, 28 Feb 2025 08:22:15 +0000 (09:22 +0100)] 
[3.13] gh-129296: Fix `pyatomic.h` include paths (GH-129320) (#130667)

gh-129296: Fix `pyatomic.h` include paths (GH-129320)

Use relative includes in Include/cpython/pyatomic.h for
pyatomic_gcc.h, pyatomic_std.h and pyatomic_msc.h.

Do a similar change in Include/cpython/pythread.h for
pthread_stubs.h include.
(cherry picked from commit 3a974e39d54902699f360bc4db2fd351a6baf3ef)

Co-authored-by: Zanie Blue <contact@zanie.dev>
8 months ago[3.13] gh-130617 : fix time_clockid_converter on DragonFlyBSD (GH-130634) (#130666)
Miss Islington (bot) [Fri, 28 Feb 2025 08:19:45 +0000 (09:19 +0100)] 
[3.13] gh-130617 : fix time_clockid_converter on DragonFlyBSD (GH-130634) (#130666)

gh-130617 : fix time_clockid_converter on DragonFlyBSD (GH-130634)
(cherry picked from commit e41981704f0a6adb58c3e258b4226619521ce03c)

Signed-off-by: leleliu008 <leleliu008@gmail.com>
Co-authored-by: leleliu008 <leleliu008@gmail.com>
8 months ago[3.13] gh-129200: Add locking to the iOS testbed startup sequence. (GH-130564) (...
Miss Islington (bot) [Fri, 28 Feb 2025 02:48:46 +0000 (03:48 +0100)] 
[3.13] gh-129200: Add locking to the iOS testbed startup sequence. (GH-130564) (#130657)

Add a lock to ensure that only one iOS testbed per user can start at a time, so
that the simulator discovery process doesn't collide between instances.
(cherry picked from commit 9211b3dabeacb92713ac3f5f0fa43bc7cf69afd8)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
8 months ago[3.13] GH-121970: Extract ``issue_role`` into a new extension (GH-130615) (#130651)
Miss Islington (bot) [Thu, 27 Feb 2025 21:29:26 +0000 (22:29 +0100)] 
[3.13] GH-121970: Extract ``issue_role`` into a new extension (GH-130615) (#130651)

(cherry picked from commit 043ab3af9ac81c6315395bef814fd12acb873b23)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
8 months ago[3.13] GH-92897: schedule the check_home deprecation to 3.15 (GH-129102) (#130583)
Hugo van Kemenade [Thu, 27 Feb 2025 18:16:33 +0000 (20:16 +0200)] 
[3.13] GH-92897: schedule the check_home deprecation to 3.15 (GH-129102) (#130583)

Co-authored-by: Filipe Laíns 🇵🇸 <lains@riseup.net>
8 months ago[3.13] gh-127785: Limit check labels github action permission (GH-130596) (#130623)
shenxianpeng [Thu, 27 Feb 2025 14:57:41 +0000 (22:57 +0800)] 
[3.13] gh-127785: Limit check labels github action permission (GH-130596) (#130623)

Co-authored-by: shenxianpeng <xianpeng.shen@gmail.com>
8 months ago[3.13] Doc: Strip trailing whitespace in ``pydoc_topics`` (GH-130492) (#130635)
Miss Islington (bot) [Thu, 27 Feb 2025 14:25:30 +0000 (15:25 +0100)] 
[3.13] Doc: Strip trailing whitespace in ``pydoc_topics`` (GH-130492) (#130635)

(cherry picked from commit 3f3e1c4095ae229b0c6d0364f289a20732281a96)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
8 months ago[3.13] GH-121970: Extract `pydoc_topics` into a new extension (#129116) (#130441)
Adam Turner [Thu, 27 Feb 2025 14:18:46 +0000 (14:18 +0000)] 
[3.13] GH-121970: Extract `pydoc_topics` into a new extension (#129116) (#130441)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
8 months ago[3.13] gh-130604: Always run all matrix workflows in GitHub Actions (GH-130603) ...
Adam Turner [Wed, 26 Feb 2025 22:13:00 +0000 (22:13 +0000)] 
[3.13] gh-130604: Always run all matrix workflows in GitHub Actions (GH-130603) (#130612)

(cherry picked from commit fda056e64bdfcac3dd3d13eebda0a24994d83cb8)

8 months ago[3.13] gh-117657: Enable test_opcache under TSAN (GH-129831) (GH-130597)
Sam Gross [Wed, 26 Feb 2025 18:59:59 +0000 (13:59 -0500)] 
[3.13] gh-117657: Enable test_opcache under TSAN (GH-129831) (GH-130597)

Fix a few thread-safety bugs to enable test_opcache when run with TSAN:

 * Use relaxed atomics when clearing `ht->_spec_cache.getitem`
   (gh-115999)
 * Add temporary suppression for type slot modifications (gh-127266)
 * Use atomic load when reading `*dictptr`

(cherry picked from commit f151d271591ec525eaf01fa7b128e575374888b9)

8 months ago[3.13] GH-130396: Treat clang -Og as optimized for gdb tests (GH-130550) (#130572)
Miss Islington (bot) [Wed, 26 Feb 2025 11:37:43 +0000 (12:37 +0100)] 
[3.13] GH-130396: Treat clang -Og as optimized for gdb tests (GH-130550) (#130572)

GH-130396: Treat clang -Og as optimized for gdb tests (GH-130550)
(cherry picked from commit 129db32d6f2d7f450d2741da6a222c18e458c61b)

Co-authored-by: Mark Shannon <mark@hotpy.org>
8 months ago[3.13] gh-130163: Fix a leak in _pickle.c after backporting (GH-130568)
Serhiy Storchaka [Wed, 26 Feb 2025 10:47:41 +0000 (12:47 +0200)] 
[3.13] gh-130163: Fix a leak in _pickle.c after backporting (GH-130568)

8 months ago[3.13] Docs: Fix some semantic usages of `iterator.__iter__` (GH-130172) (GH-130543)
Miss Islington (bot) [Wed, 26 Feb 2025 10:02:53 +0000 (11:02 +0100)] 
[3.13] Docs: Fix some semantic usages of `iterator.__iter__` (GH-130172) (GH-130543)

These references to an `__iter__` method mean `object.__iter__`, not `iterator.__iter__`.
(cherry picked from commit 4d3a7ea354a8ca7a9978f48e54399526d1b83f42)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
8 months ago[3.13] gh-130433: Update documentation for `MultipartConversionError` (GH-130436...
Miss Islington (bot) [Wed, 26 Feb 2025 08:59:12 +0000 (09:59 +0100)] 
[3.13] gh-130433: Update documentation for `MultipartConversionError` (GH-130436) (GH-130565)

(cherry picked from commit b536e371044f9e9b1b34cc8276a01e67550b5428)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
8 months ago[3.13] gh-130163: Fix crashes related to PySys_GetObject() (GH-130503) (GH-130556)
Serhiy Storchaka [Tue, 25 Feb 2025 22:50:26 +0000 (00:50 +0200)] 
[3.13] gh-130163: Fix crashes related to PySys_GetObject() (GH-130503) (GH-130556)

The use of PySys_GetObject() and _PySys_GetAttr(), which return a borrowed
reference, has been replaced by using one of the following functions, which
return a strong reference and distinguish a missing attribute from an error:
_PySys_GetOptionalAttr(), _PySys_GetOptionalAttrString(),
_PySys_GetRequiredAttr(), and _PySys_GetRequiredAttrString().
(cherry picked from commit 0ef4ffeefd1737c18dc9326133c7894d58108c2e)

8 months ago[3.13] Fix a typo in code module test (GH-130530) (#130534)
Miss Islington (bot) [Tue, 25 Feb 2025 17:38:40 +0000 (18:38 +0100)] 
[3.13] Fix a typo in code module test (GH-130530) (#130534)

Fix a typo in code module test (GH-130530)
(cherry picked from commit 56e337d32b88630f2c35458231cd61929f1be6d4)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
8 months ago[3.13] gh-130461: Remove unnecessary usages of `.. index::` directives in Doc/library...
Kanishk Pachauri [Tue, 25 Feb 2025 13:24:46 +0000 (18:54 +0530)] 
[3.13] gh-130461: Remove unnecessary usages of `.. index::` directives in Doc/library/uuid.rst (#130526) (#130548)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
8 months ago[3.13] gh-130292: Allow for empty simulator list when running iOS testbed (GH-130388...
Miss Islington (bot) [Tue, 25 Feb 2025 07:29:43 +0000 (08:29 +0100)] 
[3.13] gh-130292: Allow for empty simulator list when running iOS testbed (GH-130388) (#130532)

Adds error handling when there are no pre-existing test simulators.
(cherry picked from commit 99088ab081279329b8362e1c24533fa0be303e6f)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
8 months ago[3.13] gh-46236: Add docs for PyUnicode_GetDefaultEncoding() doc (GH-130335) (GH...
Miss Islington (bot) [Mon, 24 Feb 2025 16:10:17 +0000 (17:10 +0100)] 
[3.13] gh-46236: Add docs for PyUnicode_GetDefaultEncoding() doc (GH-130335) (GH-130511)

* Clarify sys.getdefaultencoding() documentation

* Add missing documentation for PyUnicode_GetDefaultEncoding,
  the C equivalent of sys.getdefaultencoding
(cherry picked from commit 9f25c1f012c8d432a93bf2dcad5f19a64dc00d3c)

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
8 months ago[3.13] gh-129405: Fix doc for Py_mod_multiple_interpreters default, and add test...
Miss Islington (bot) [Mon, 24 Feb 2025 15:49:35 +0000 (16:49 +0100)] 
[3.13] gh-129405: Fix doc for Py_mod_multiple_interpreters default, and add test (GH-129406) (GH-130507)

(cherry picked from commit fc8d2cba541f378df0a439412665f3dbe0b9ae3c)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
8 months ago[3.13] gh-127522: wsgiref: indicate that `start_response` objects should follow a...
Miss Islington (bot) [Mon, 24 Feb 2025 14:08:07 +0000 (15:08 +0100)] 
[3.13] gh-127522: wsgiref: indicate that `start_response` objects should follow a specific protocol (GH-127525) (GH-130504)

(cherry picked from commit 39ba4b6619026bbe65c5844702a8a0bb6e75c4f7)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
8 months ago[3.13] gh-130151: Fix reference leaks in `_hashlib.hmac_{new,digest}` (GH-130152...
Miss Islington (bot) [Mon, 24 Feb 2025 08:19:49 +0000 (09:19 +0100)] 
[3.13] gh-130151: Fix reference leaks in `_hashlib.hmac_{new,digest}` (GH-130152) (#130491)

gh-130151: Fix reference leaks in `_hashlib.hmac_{new,digest}` (GH-130152)

* fix leak in `_hashlib.hmac_new`
* fix leak in `hmac_digest`
* fix exception type in `_hashlib.HMAC.copy`
(cherry picked from commit 071820113f11b8f6a21f98652d0840e10268114c)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
8 months ago[3.13] gh-127805: Clarify Formatter initialization in logging.rst. (GH-127850) (...
Miss Islington (bot) [Mon, 24 Feb 2025 05:23:16 +0000 (06:23 +0100)] 
[3.13] gh-127805: Clarify Formatter initialization in logging.rst. (GH-127850) (#130392)

(cherry picked from commit 5d66c55c8ad0a0aeff8d06021ddca1d02c5f4416)

Co-authored-by: UV <yuvrajpradhan667@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
8 months ago[3.13] gh-130160: use `.. program::` directive for documenting `idle` CLI (GH-130278...
Miss Islington (bot) [Mon, 24 Feb 2025 03:58:28 +0000 (04:58 +0100)] 
[3.13] gh-130160: use `.. program::` directive for documenting `idle` CLI (GH-130278) (#130494)

gh-130160: use `.. program::` directive for documenting `idle` CLI (GH-130278)

---------

(cherry picked from commit 0ff16115741aeaaaf7f963f68d5c575efb960277)

Co-authored-by: Kanishk Pachauri <itskanishkp.py@gmail.com>
8 months ago[3.13] gh-128714: Fix function object races in `__annotate__`, `__annotations__`...
Xuanteng Huang [Mon, 24 Feb 2025 02:49:55 +0000 (10:49 +0800)] 
[3.13] gh-128714: Fix function object races in `__annotate__`, `__annotations__` and `__type_params__` in  free-threading build (GH-129016) (#129729)

* gh-128714: Fix function object races in `__annotate__`, `__annotations__` and `__type_params__` in  free-threading build (#129016)

(cherry picked from commit 55f17b77c305be877ac856d6426b13591cbc7fc8)

---------

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
8 months ago[3.13] Add test checking value of a TypedDict's __total__ attribute when there is...
Miss Islington (bot) [Sat, 22 Feb 2025 18:33:20 +0000 (19:33 +0100)] 
[3.13] Add test checking value of a TypedDict's __total__ attribute when there is an assignment in the class body. (GH-130460) (#130462)

Add test checking value of a TypedDict's __total__ attribute when there is an assignment in the class body. (GH-130460)

In relation to GH-109544 which changed this behavior.
(cherry picked from commit d8ce092fe4e98fec414f4e60cfc958b3ac3ec9a3)

Signed-off-by: Daniel Sperber <github.blurry@9ox.net>
Co-authored-by: Daraan <github.blurry@9ox.net>
8 months ago[3.13] gh-121970: Replace `.. coroutine{method,function}` with `:async:` (GH-130448...
Miss Islington (bot) [Sat, 22 Feb 2025 18:00:49 +0000 (19:00 +0100)] 
[3.13] gh-121970: Replace `.. coroutine{method,function}` with `:async:` (GH-130448) (#130465)

(cherry picked from commit 5ec4bf86b7f4455432aebace996ef390ae3e9302)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
8 months ago[3.13] Docs: Test presence of optional extensions with importlib (GH-130445) (#130464)
Miss Islington (bot) [Sat, 22 Feb 2025 18:00:15 +0000 (19:00 +0100)] 
[3.13] Docs: Test presence of optional extensions with importlib (GH-130445) (#130464)

(cherry picked from commit 3cc9e867eba1ed139cf28c74b4a788bcc4801394)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
8 months ago[3.13] Add measuring unit to `sys.getswitchinterval` docs (GH-130457) (#130458)
Miss Islington (bot) [Sat, 22 Feb 2025 16:12:45 +0000 (17:12 +0100)] 
[3.13] Add measuring unit to `sys.getswitchinterval` docs (GH-130457) (#130458)

Add measuring unit to `sys.getswitchinterval` docs (GH-130457)
(cherry picked from commit 89d8b2d14bb6f7e5c4565b5c3f56d917e6134c89)

Co-authored-by: sobolevn <mail@sobolevn.me>
8 months ago[3.13] gh-129712: Document the wheels tags corresponding to each universal SDK. ...
Miss Islington (bot) [Sat, 22 Feb 2025 08:37:48 +0000 (09:37 +0100)] 
[3.13] gh-129712: Document the wheels tags corresponding to each universal SDK. (GH-130389) (#130449)

Document the architectures supported by macOS universal SDK configuration flags,
and add details on wheel tag naming.
(cherry picked from commit 474c388740ca5f8060c074f517dd14c54409126f)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
8 months ago[3.13] GH-121970: Replace custom abstract method directive with the ``:abstract:...
Adam Turner [Sat, 22 Feb 2025 02:04:54 +0000 (02:04 +0000)] 
[3.13] GH-121970: Replace custom abstract method directive with the ``:abstract:`` option (#129311) (#130439)

(cherry picked from commit 30e892473e0dfe5c3fecabcaac420cefe45e2ed4)

8 months ago[3.13] GH-103180: Set a timeout for every job in GitHub Actions (GH-130375) (#130431)
Adam Turner [Sat, 22 Feb 2025 02:01:19 +0000 (02:01 +0000)] 
[3.13] GH-103180: Set a timeout for every job in GitHub Actions (GH-130375) (#130431)

(cherry picked from commit d0a1e5c222f9f43b492b28806e2a185a50d64500)

8 months ago[3.13] gh-130159: Fix list indentation in collections.abc (GH-130165) (#130437)
Miss Islington (bot) [Sat, 22 Feb 2025 01:47:18 +0000 (02:47 +0100)] 
[3.13] gh-130159: Fix list indentation in collections.abc (GH-130165) (#130437)

gh-130159: Fix list indentation in collections.abc (GH-130165)
(cherry picked from commit 8e96adf4532943360f09df04cd7d3a5d35f61a24)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
8 months ago[3.13] gh-128446: Skip Windows CI for Unix build system changes (GH-128450) (#130434)
Miss Islington (bot) [Sat, 22 Feb 2025 01:37:22 +0000 (02:37 +0100)] 
[3.13] gh-128446: Skip Windows CI for Unix build system changes (GH-128450) (#130434)

gh-128446: Skip Windows CI for Unix build system changes (GH-128450)
(cherry picked from commit b05fa90b21dd01bb836285cdd41920320b09e681)

Authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
8 months ago[3.13] Convert change detection to a Python script (GH-129627) (#130367)
Hugo van Kemenade [Sat, 22 Feb 2025 00:31:45 +0000 (02:31 +0200)] 
[3.13] Convert change detection to a Python script (GH-129627) (#130367)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
8 months ago[3.13] gh-130285: Fix handling of zero or empty counts in random.sample() (gh-130291...
Miss Islington (bot) [Fri, 21 Feb 2025 17:56:51 +0000 (18:56 +0100)] 
[3.13] gh-130285: Fix handling of zero or empty counts in random.sample() (gh-130291) (gh-130416)

8 months ago[3.13] gh-126332: Add tests for _pyrepl.utils (GH-129325) (#130414)
Miss Islington (bot) [Fri, 21 Feb 2025 17:22:42 +0000 (18:22 +0100)] 
[3.13] gh-126332: Add tests for _pyrepl.utils (GH-129325) (#130414)

gh-126332: Add tests for _pyrepl.utils (GH-129325)
(cherry picked from commit 0c4248f88e279df3254d62b34dfa3204a92c56a0)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
8 months ago[3.13] gh-124234: Improve docs for `Mock.reset_mock` (GH-124237) (#130408)
Miss Islington (bot) [Fri, 21 Feb 2025 14:58:08 +0000 (15:58 +0100)] 
[3.13] gh-124234: Improve docs for `Mock.reset_mock` (GH-124237) (#130408)

Co-authored-by: sobolevn <mail@sobolevn.me>
8 months ago[3.13] gh-111609: Test `end_offset` in SyntaxError subclass (GH-127830) (#130407)
Miss Islington (bot) [Fri, 21 Feb 2025 14:56:39 +0000 (15:56 +0100)] 
[3.13] gh-111609: Test `end_offset` in SyntaxError subclass (GH-127830) (#130407)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
8 months ago[3.13] gh-129363: Change regrtest sequential mode output (GH-129476) (#130405)
Miss Islington (bot) [Fri, 21 Feb 2025 14:18:32 +0000 (15:18 +0100)] 
[3.13] gh-129363: Change regrtest sequential mode output (GH-129476) (#130405)

gh-129363: Change regrtest sequential mode output (GH-129476)

First, write the test name without color. Then, write the test name
and the result with color. Each test is displayed twice.
(cherry picked from commit f1b81c408fb83beeee519ae4fb9d3a36dd4522b3)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
8 months ago[3.13] Add `.. versionadded` directive to `dis` CLI options (GH-130267) (#130401)
sobolevn [Fri, 21 Feb 2025 13:14:27 +0000 (16:14 +0300)] 
[3.13] Add `.. versionadded` directive to `dis` CLI options (GH-130267) (#130401)

(cherry picked from commit 9bf73c032fbf0ea27ebf6e53223c3bc69ee0dbc5)

8 months ago[3.13] Fix outdated reference link in collections module (gh-130349) (gh-130386)
Miss Islington (bot) [Fri, 21 Feb 2025 00:22:05 +0000 (01:22 +0100)] 
[3.13] Fix outdated reference link in collections module (gh-130349) (gh-130386)

8 months ago[3.13] gh-129838: Don't redefine _Py_NO_SANITIZE_UNDEFINED (GH-129839) (#130366)
Miss Islington (bot) [Thu, 20 Feb 2025 16:30:46 +0000 (17:30 +0100)] 
[3.13] gh-129838: Don't redefine _Py_NO_SANITIZE_UNDEFINED (GH-129839) (#130366)

gh-129838: Don't redefine _Py_NO_SANITIZE_UNDEFINED (GH-129839)

Newer GCC versions accept both __attribute__((no_sanitize("undefined")))
and __attribute__((no_sanitize_undefined)) so check that the macro is
not already defined.
(cherry picked from commit 568db400ff07240a5ed6f263af281405ccaec716)

Co-authored-by: Collin Funk <collin.funk1@gmail.com>
8 months ago[3.13] Fix phrasing in paragraphs with leading "similar" (GH-121135) (#130364)
Miss Islington (bot) [Thu, 20 Feb 2025 15:58:16 +0000 (16:58 +0100)] 
[3.13] Fix phrasing in paragraphs with leading "similar" (GH-121135) (#130364)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
8 months ago[3.13] gh-46236: Document PyUnicode_RSplit, PyUnicode_Partition and PyUnicode_RPartit...
Miss Islington (bot) [Thu, 20 Feb 2025 15:48:13 +0000 (16:48 +0100)] 
[3.13] gh-46236: Document PyUnicode_RSplit, PyUnicode_Partition and PyUnicode_RPartition (GH-130191) (#130360)

gh-46236: Document PyUnicode_RSplit, PyUnicode_Partition and PyUnicode_RPartition (GH-130191)
(cherry picked from commit 0f5b82169e12321fd2294bf534496ad42a682ac4)

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
8 months ago[3.13] gh-129269: Exclude everything in sys.path in `test_coverage_ignore` (gh-130133...
Sam Gross [Thu, 20 Feb 2025 15:42:47 +0000 (10:42 -0500)] 
[3.13] gh-129269: Exclude everything in sys.path in `test_coverage_ignore` (gh-130133) (gh-130357)

The `test_trace.test_coverage_ignore` test would fail if you had
`setuptools` installed, such as in `~/.local/lib/python3.xxx/site-packages/`.
Ignore everything in `sys.path` when running the test.
(cherry picked from commit 35925e952911aba97bfdaee85b09d734ceac4fea)

8 months ago[3.13] [doc]: Update logging cookbook to mention domain socket configuration in a...
Miss Islington (bot) [Thu, 20 Feb 2025 14:20:26 +0000 (15:20 +0100)] 
[3.13] [doc]: Update logging cookbook to mention domain socket configuration in a recipe. (GH-130348) (GH-130351)

(cherry picked from commit 8cbcf51d614815df3ab7ea557f04e6b4b386968e)

8 months ago[3.13] gh-101100: Fix sphinx warnings in `readline.rst` (GH-130300) (#130346)
Miss Islington (bot) [Thu, 20 Feb 2025 13:06:33 +0000 (14:06 +0100)] 
[3.13] gh-101100: Fix sphinx warnings in `readline.rst` (GH-130300) (#130346)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
8 months ago[3.13] gh-130250: use support.swap_attr() in test and don't assume we're beginning...
Miss Islington (bot) [Thu, 20 Feb 2025 11:52:06 +0000 (12:52 +0100)] 
[3.13] gh-130250: use support.swap_attr() in test and don't assume we're beginning with a clean system state (GH-130342) (#130344)

gh-130250: use support.swap_attr() in test and don't assume we're beginning with a clean system state (GH-130342)
(cherry picked from commit 048ee2d5ec761296ef67f5c59aee1f24408b12db)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
8 months ago[3.13] Fix some ctypes docs typos (GH-130307) (GH-130343)
Miss Islington (bot) [Thu, 20 Feb 2025 11:05:23 +0000 (12:05 +0100)] 
[3.13] Fix some ctypes docs typos (GH-130307) (GH-130343)

Fix some ctypes docs typos (GH-130307)
(cherry picked from commit 417372bd43ecb61a848eadb3ce142f0ed3441b49)

Co-authored-by: Alcaro <floating@muncher.se>
8 months ago[3.13] gh-127750: Backport some tests for singledispatchmethod (GH-130309) (GH-130340)
Serhiy Storchaka [Thu, 20 Feb 2025 09:49:23 +0000 (11:49 +0200)] 
[3.13] gh-127750: Backport some tests for singledispatchmethod (GH-130309) (GH-130340)

(cherry picked from commit 395335d0ff292a15e26575e06f603304d9161ee1)
(cherry picked from commit 10b32054ad6bce821e3b40101d4414d025be6e36)

8 months ago[3.13] gh-69001: Convert links to more usable buttons (GH-129591) (#130338)
Miss Islington (bot) [Thu, 20 Feb 2025 08:54:31 +0000 (09:54 +0100)] 
[3.13] gh-69001: Convert links to more usable buttons (GH-129591) (#130338)

gh-69001: Convert links to more usable buttons (GH-129591)

In Lib/idlelib/help_about.py, there are 2 links that are not underlined or colored, hence hard to tell that clicking works.  All buttons might get converted to colored and underlined links in the future.
---------
(cherry picked from commit ed831b95a231ef949da13a261b40ee1ea0e126d7)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
8 months ago[3.13] gh-130130: Clarify `hash=False` docs in `dataclasses.field` (GH-130324) (...
Miss Islington (bot) [Thu, 20 Feb 2025 07:51:39 +0000 (08:51 +0100)] 
[3.13] gh-130130: Clarify `hash=False` docs in `dataclasses.field` (GH-130324) (#130337)

gh-130130: Clarify `hash=False` docs in `dataclasses.field` (GH-130324)
(cherry picked from commit 47ace539950fb675d5968736348f0d724ba199f0)

Co-authored-by: Sabfo <alpha.sabfo@gmail.com>
8 months ago[3.13] gh-130293: Ensure test__colorize will pass on dumb terminals. (GH-130333)...
Miss Islington (bot) [Thu, 20 Feb 2025 07:12:56 +0000 (08:12 +0100)] 
[3.13] gh-130293: Ensure test__colorize will pass on dumb terminals. (GH-130333) (#130334)

Ensure colorize tests will run on dumb terminals (or environment with TERM=dumb set)

(cherry picked from commit 1b070060c025a00d43566a6df65aa7631861d7af)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
8 months ago[3.13] gh-130250: fix cleanup in test (impacts refleaks runs) (GH-130329) (#130330)
Miss Islington (bot) [Thu, 20 Feb 2025 02:00:49 +0000 (03:00 +0100)] 
[3.13] gh-130250: fix cleanup in test (impacts refleaks runs) (GH-130329) (#130330)

gh-130250: fix cleanup in test (impacts refleaks runs) (GH-130329)
(cherry picked from commit c718c6be0f82af5eb0e57615ce323242155ff014)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
8 months ago[3.13] gh-130250: fix regression in traceback.print_last (GH-130318) (#130325)
Miss Islington (bot) [Wed, 19 Feb 2025 22:06:43 +0000 (23:06 +0100)] 
[3.13] gh-130250: fix regression in traceback.print_last (GH-130318) (#130325)

gh-130250: fix regression in traceback.print_last (GH-130318)
(cherry picked from commit 6c982aeb547528174f8bc843267f584d8b133d14)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
8 months ago[3.13] gh-122876: Fix "End of lines" typo (GH-125310) (#130315)
Miss Islington (bot) [Wed, 19 Feb 2025 19:23:49 +0000 (20:23 +0100)] 
[3.13] gh-122876: Fix "End of lines" typo (GH-125310) (#130315)

Co-authored-by: za <za@python.or.id>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
8 months ago[3.13] gh-128396: Fix a crash when inline comprehension has the same … (#130311)
Tian Gao [Wed, 19 Feb 2025 17:40:03 +0000 (12:40 -0500)] 
[3.13] gh-128396: Fix a crash when inline comprehension has the same … (#130311)

[3.13] gh-128396: Fix a crash when inline comprehension has the same local variable as the outside scope (GH-130235)
(cherry picked from commit ccf17323c218a2fdcf7f4845d3eaa74ebddefa44)

8 months ago[3.13] Docs: Upgrade Sphinx to 8.2 (GH-130171) (#130289)
Miss Islington (bot) [Tue, 18 Feb 2025 23:51:48 +0000 (00:51 +0100)] 
[3.13] Docs: Upgrade Sphinx to 8.2 (GH-130171) (#130289)

Docs: Upgrade Sphinx to 8.2 (GH-130171)
(cherry picked from commit 736ad664e0c3be05fad76a764b68ffb700afb612)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
8 months ago[3.13] gh-130160: use `option` instead of `cmdoption` in `dis.rst` (GH-130255) (...
sobolevn [Tue, 18 Feb 2025 13:55:30 +0000 (16:55 +0300)] 
[3.13] gh-130160: use `option` instead of `cmdoption` in `dis.rst` (GH-130255) (#130264)

(cherry picked from commit 97d0011e7ec0c8222de46ce581b8bac3cc7dddda)

8 months ago[3.13] gh-130160: use `.. program::` directive for documenting `ensurepip` CLI (gh...
Miss Islington (bot) [Tue, 18 Feb 2025 12:51:33 +0000 (13:51 +0100)] 
[3.13] gh-130160: use `.. program::` directive for documenting `ensurepip` CLI (gh-130253) (gh-130259)

gh-130160: use `.. program::` directive for documenting `ensurepip` CLI (gh-130253)
(cherry picked from commit 8cd7f8bf8d6b62f30a8bba1f968eb0c593a8781a)

Co-authored-by: Kanishk Pachauri <itskanishkp.py@gmail.com>
8 months ago[3.13] gh-130230: Fix crash in pow() with only Decimal third argument (GH-130237...
Miss Islington (bot) [Tue, 18 Feb 2025 11:18:37 +0000 (12:18 +0100)] 
[3.13] gh-130230: Fix crash in pow() with only Decimal third argument (GH-130237) (GH-130246)

(cherry picked from commit b93b7e566e5a4efe7f077af2083140e50bd2b08f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 months ago[3.13] gh-130214: Document `PyEllipsis_Type` (GH-130215) (#130223)
Miss Islington (bot) [Mon, 17 Feb 2025 16:23:42 +0000 (17:23 +0100)] 
[3.13] gh-130214: Document `PyEllipsis_Type` (GH-130215) (#130223)

gh-130214: Document `PyEllipsis_Type` (GH-130215)
(cherry picked from commit fc8c99a8ce483db23fa624592457e350e99193f6)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
8 months agogh-128703: Fix mimetypes.guess_type for empty Content-Type in registry (GH-128854)
Miss Islington (bot) [Mon, 17 Feb 2025 15:36:49 +0000 (16:36 +0100)] 
gh-128703: Fix mimetypes.guess_type for empty Content-Type in registry (GH-128854)

(cherry picked from commit 303043f5062c1e7ffb7907abde61dbf13c98f8e9)

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
8 months ago[3.13] gh-82045: Correct and deduplicate "isprintable" docs; add test. (GH-130127)
Stan Ulbrych [Mon, 17 Feb 2025 14:02:39 +0000 (14:02 +0000)] 
[3.13] gh-82045: Correct and deduplicate "isprintable" docs; add test. (GH-130127)

We had the definition of what makes a character "printable" documented in three places, giving two different definitions.
The definition in the comment on `_PyUnicode_IsPrintable` was inverted; correct that.

With that correction, the two definitions turn out to be equivalent -- but to confirm that, you have to go look up, or happen to know, that those are the only five "Other" categories and only three "Separator" categories in the Unicode character database.  That makes it hard for the reader to tell whether they really are the same, or if there's some subtle difference in the intended semantics.

Fix that by cutting the C API docs' and the C comment's copies of the subtle details, in favor of referring to the Python-level docs. That ensures it's explicit that these are all meant to agree, and also lets us concentrate improvements to the wording in one place.

Speaking of which, borrow some ideas from the C comment, along with other tweaks, to hopefully add a bit more clarity to that one newly-centralized copy in the docs.

Also add a thorough test that the implementation agrees with this definition.

Author:    Greg Price <gnprice@gmail.com>

Co-authored-by: Greg Price <gnprice@gmail.com>
(cherry picked from commit 3402e133ef26736296c07992266a82b181a5d532)

8 months ago[3.13] CI: Use ImageOS (ubuntu24) instead of runner.os (Linux) in cache keys (GH...
Hugo van Kemenade [Mon, 17 Feb 2025 13:18:30 +0000 (15:18 +0200)] 
[3.13] CI: Use ImageOS (ubuntu24) instead of runner.os (Linux) in cache keys (GH-130200) (#130222)

8 months ago[3.13] gh-130193: Increase test coverage of gettext.c2py (GH-130208) (GH-130217)
Miss Islington (bot) [Mon, 17 Feb 2025 09:21:00 +0000 (10:21 +0100)] 
[3.13] gh-130193: Increase test coverage of gettext.c2py (GH-130208) (GH-130217)

(cherry picked from commit fb2d325725dcc881868b576b9d0d9f4bf7f24fe0)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
8 months ago[3.13] gh-127750: Fix functools.singledispatchmethod() (GH-130029)
Pieter Eendebak [Mon, 17 Feb 2025 09:12:24 +0000 (10:12 +0100)] 
[3.13] gh-127750: Fix functools.singledispatchmethod()  (GH-130029)

Revert gh-107148

8 months ago[3.13] gh-86069: Add more PyNumber_InPlacePower() tests (GH-130111) (GH-130211)
Miss Islington (bot) [Mon, 17 Feb 2025 08:24:59 +0000 (09:24 +0100)] 
[3.13] gh-86069: Add more PyNumber_InPlacePower() tests (GH-130111) (GH-130211)

Test it with the third argument.
(cherry picked from commit cfe41037eb5293a051846ddc0b4afdb7a5f60540)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 months ago[3.13] gh-129805: Fix `bytes` annotation in `Tools/jit` (GH-129806) (#130216)
sobolevn [Mon, 17 Feb 2025 08:21:47 +0000 (11:21 +0300)] 
[3.13] gh-129805: Fix `bytes` annotation in `Tools/jit` (GH-129806) (#130216)

(cherry picked from commit 422f8e9e02e68d45aee3846751a003a70fca13b6)

8 months ago[3.13] gh-118761: Revert "Improve import time of `subprocess` (GH-129427)" (GH-130201...
Miss Islington (bot) [Sun, 16 Feb 2025 19:03:32 +0000 (20:03 +0100)] 
[3.13] gh-118761: Revert "Improve import time of `subprocess` (GH-129427)" (GH-130201) (#130204)

gh-118761: Revert "Improve import time of `subprocess` (GH-129427)" (GH-130201)

* Revert "gh-118761: Improve import time of `subprocess` (GH-129427)"

This reverts commit 49f24650e4541456872490ec2b59d6d186204891.
Also known as f502c8f6a6db4be27c97a0e5466383d117859b7f in 3.13 (PR GH-129447)
Also known as f65aa0d1bf7b636ab8f9d226429205854b24cd7a in 3.12 (PR GH-129448)

This caused bugs in the `__del__` finalizer:
 https://github.com/python/cpython/issues/118761#issuecomment-2661504264

---------
(cherry picked from commit ae3064608935367c860182dc1b364631082ecdff)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
8 months ago[3.13] gh-130179: Fix `persistent_{id,load}_attr` reference leaks in `_pickle` (GH...
Miss Islington (bot) [Sun, 16 Feb 2025 14:22:23 +0000 (15:22 +0100)] 
[3.13] gh-130179: Fix `persistent_{id,load}_attr` reference leaks in `_pickle` (GH-130180) (#130190)

gh-130179: Fix `persistent_{id,load}_attr` reference leaks in `_pickle` (GH-130180)
(cherry picked from commit e7f00cd14f6a0c0dee6e733ac3e2c5d92e0809bb)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
8 months ago[3.13] gh-130185: Fix unintentionally skipped tests in `test_functools` (GH-130186...
Miss Islington (bot) [Sun, 16 Feb 2025 13:57:27 +0000 (14:57 +0100)] 
[3.13] gh-130185: Fix unintentionally skipped tests in `test_functools` (GH-130186) (#130188)

gh-130185: Fix unintentionally skipped tests in `test_functools` (GH-130186)
(cherry picked from commit 73d03005b028eb6e4d1a643f3ca7a1f5ff2040fc)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
8 months ago[3.13] gh-127488: Add tests for Tools/i18n/msgfmt.py (GH-127540) (GH-130182)
Miss Islington (bot) [Sun, 16 Feb 2025 13:20:49 +0000 (14:20 +0100)] 
[3.13] gh-127488: Add tests for Tools/i18n/msgfmt.py (GH-127540) (GH-130182)

(cherry picked from commit 361083b84b0db975058b2d1f50dcbfd36f072caf)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
8 months ago[3.13] gh-130177: Fix unintentionally skipped tests in test_gettext (GH-130178) ...
Miss Islington (bot) [Sun, 16 Feb 2025 12:36:23 +0000 (13:36 +0100)] 
[3.13] gh-130177: Fix unintentionally skipped tests in test_gettext (GH-130178) (GH-130183)

(cherry picked from commit 2e8044a4f74f5fc19e5249139c171403aff0118d)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>