]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
7 months agogh-131020: py.exe launcher does not correctly detect a BOM when searching for the...
Miss Islington (bot) [Mon, 10 Mar 2025 20:12:40 +0000 (21:12 +0100)] 
gh-131020: py.exe launcher does not correctly detect a BOM when searching for the shebang (GH-131021)

(cherry picked from commit 36ef3bfe39d767e283b55fe86f34e7671b7f5d1c)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
7 months ago[3.12] gh-130711: Document `PyBaseObject_Type` (GH-130712) (GH-130793)
Miss Islington (bot) [Mon, 10 Mar 2025 14:05:45 +0000 (15:05 +0100)] 
[3.12] gh-130711: Document `PyBaseObject_Type` (GH-130712) (GH-130793)

(cherry picked from commit b3c18bfd828ba90b9c712da74095c4a052887655)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
8 months ago[3.12] gh-80421: Correct definitions of time (GH-130984) (#131023)
Miss Islington (bot) [Sun, 9 Mar 2025 20:18:31 +0000 (21:18 +0100)] 
[3.12] gh-80421: Correct definitions of time (GH-130984) (#131023)

gh-80421: Correct definitions of time (GH-130984)

Based on the Wikipedia article, UTC is better said to be a successor than a renaming of GTC and language agnostic rather than an English-French compromise.
(cherry picked from commit 98fa4a49fecbac3c990a25ce5d300592dad31be0)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
8 months ago[3.12] gh-130160: use `.. program::` directive for documenting `pdb` CLI (GH-130996...
Miss Islington (bot) [Sun, 9 Mar 2025 16:18:43 +0000 (17:18 +0100)] 
[3.12] gh-130160: use `.. program::` directive for documenting `pdb` CLI (GH-130996) (#131013)

gh-130160: use `.. program::` directive for documenting `pdb` CLI (GH-130996)
(cherry picked from commit c240c2d88a080fc3c68c220aa81062cf5f130ab9)

Co-authored-by: donBarbos <donbarbos@proton.me>
8 months ago[3.12] gh-130160: use `.. program::` directive for documenting `webbrowser` CLI ...
donBarbos [Sun, 9 Mar 2025 07:33:56 +0000 (11:33 +0400)] 
[3.12] gh-130160: use `.. program::` directive for documenting `webbrowser` CLI (GH-130995) (#131004)

* gh-130160: use `.. program::` directive for documenting `webbrowser` CLI (#130995)

use `.. program::` directive for documenting `webbrowser` CLI

(cherry picked from commit 92e5f826ace1eab29920a0a3487a3cac7eeab925)

* remove extra paragraph

8 months ago[3.12] gh-123726: Document caveats of zipfile.Path around name sanitization (GH-13053...
Miss Islington (bot) [Sat, 8 Mar 2025 21:45:48 +0000 (22:45 +0100)] 
[3.12] gh-123726: Document caveats of zipfile.Path around name sanitization (GH-130537) (#130987)

gh-123726: Document caveats of zipfile.Path around name sanitization (GH-130537)

Add a note to the `zipfile.Path` class documentation clarifying that it does not sanitize filenames. This emphasizes the caller's responsibility to validate or sanitize inputs, especially when handling untrusted ZIP archives, to prevent path traversal vulnerabilities. The note also references the `extract` and `extractall` methods for comparison and suggests using `os.path.abspath` and `os.path.commonpath` for safe filename resolution.
(cherry picked from commit a3990df6121880e8c67824a101bb1316de232898)

Co-authored-by: Affan Shaikhsurab <51104750+AffanShaikhsurab@users.noreply.github.com>
8 months ago[3.12] gh-130917: update timer and workload in test_signal (GH-130918) (#130968)
Miss Islington (bot) [Sat, 8 Mar 2025 18:21:46 +0000 (19:21 +0100)] 
[3.12] gh-130917: update timer and workload in test_signal (GH-130918) (#130968)

The workload to advance the virtual timeout is too lightweight for some
platforms. As result the test goes in timeout as it never reaches the
end of the timer. By having a heavier workload, the virtual timer
advances rapidly and the SIGVTALRM is sent before the timeout.
(cherry picked from commit 78790811989ab47319e2ee725e0c435b3cdd21ab)

Co-authored-by: Diego Russo <diego.russo@arm.com>
8 months ago[3.12] gh-130954: Fix multiprocessing test_notify_n (GH-130955) (#130982)
Miss Islington (bot) [Sat, 8 Mar 2025 18:21:37 +0000 (19:21 +0100)] 
[3.12] gh-130954: Fix multiprocessing test_notify_n (GH-130955) (#130982)

The test could deadlock trying join on the worker processes.
Apply the same technique as gh-130933.

Join the process before the test ends in `test_notify` as well.
(cherry picked from commit edd1eca336976b3431cf636aea87f08a40c94935)

Co-authored-by: Sam Gross <colesbury@gmail.com>
8 months ago[3.12] gh-113238: add Anchor to importlib.resources (GH-113801) (#130499)
Hugo van Kemenade [Sat, 8 Mar 2025 16:27:34 +0000 (18:27 +0200)] 
[3.12] gh-113238: add Anchor to importlib.resources (GH-113801) (#130499)

(cherry picked from commit c85c0026a64c2a902138feeb73a9c66af1af31e0)

Co-authored-by: Mike Zimin <122507876+mikeziminio@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
8 months ago[3.12] gh-110206: Fix multiprocessing test_notify_all (GH-130933) (#130951)
Miss Islington (bot) [Fri, 7 Mar 2025 17:20:00 +0000 (18:20 +0100)] 
[3.12] gh-110206: Fix multiprocessing test_notify_all (GH-130933) (#130951)

The test could deadlock trying join on the worker processes due to a
combination of behaviors:

* The use of `assertReachesEventually` did not ensure that workers
  actually woken.release() because the SyncManager's Semaphore does not
  implement get_value.

* This mean that the test could finish and the variable "sleeping" would
  got out of scope and be collected. This unregisters the proxy leading
  to failures in the worker or possibly the manager.

* The subsequent call to `p.join()` during cleanUp therefore never
  finished.

This takes two approaches to fix this:

1) Use woken.acquire() to ensure that the workers actually finish
   calling woken.release()

2) At the end of the test, wait until the workers are finished, while `cond`,
   `sleeping`, and `woken` are still valid.
(cherry picked from commit c476410dc5ae62ffb5e32f64f9a3a622485c7d93)

Co-authored-by: Sam Gross <colesbury@gmail.com>
8 months ago[3.12] Correct function name in `Doc/extending/embedding.rst` (GH-127539) (#130946)
Miss Islington (bot) [Fri, 7 Mar 2025 13:14:25 +0000 (14:14 +0100)] 
[3.12] Correct function name in `Doc/extending/embedding.rst` (GH-127539) (#130946)

Correct function name in `Doc/extending/embedding.rst` (GH-127539)
(cherry picked from commit e5527f2cdda501542bf94179093e1a15d7889b74)

Co-authored-by: Boris Verkhovskiy <boris.verk@gmail.com>
8 months ago[3.12] gh-127371 Avoid unbounded growth SpooledTempfile.writelines (GH-127372) (...
Miss Islington (bot) [Wed, 5 Mar 2025 17:42:35 +0000 (18:42 +0100)] 
[3.12] gh-127371 Avoid unbounded growth SpooledTempfile.writelines (GH-127372) (#130885)

gh-127371 Avoid unbounded growth SpooledTempfile.writelines (GH-127372)
(cherry picked from commit cb67b44ca92f9930b3aa2aba8420c89d12a25303)

Co-authored-by: Bert Peters <bert@bertptrs.nl>
8 months ago[3.12] Update links from typing.readthedocs.io to typing.python.org (GH-130877) ...
Miss Islington (bot) [Wed, 5 Mar 2025 15:35:46 +0000 (16:35 +0100)] 
[3.12] Update links from typing.readthedocs.io to typing.python.org (GH-130877) (#130884)

Update links from typing.readthedocs.io to typing.python.org (GH-130877)
(cherry picked from commit 4f6218959e35f649061484cce9de7fc810586533)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
8 months ago[3.12] gh-116742: Fix subprocess test_check_output_timeout() (GH-130836) (#130874)
Miss Islington (bot) [Wed, 5 Mar 2025 12:00:41 +0000 (13:00 +0100)] 
[3.12] gh-116742: Fix subprocess test_check_output_timeout() (GH-130836) (#130874)

gh-116742: Fix subprocess test_check_output_timeout() (GH-130836)

Fix a race condition in test_check_output_timeout() of
test_subprocess. Don't write into stdout anymore, since there is no
reliable way to synchronize the parent and the child processes.

Change the timeout from 3 seconds to 0.1 seconds, and remove
@requires_resource('walltime') decorator.
(cherry picked from commit 67a942d4272145ccdbdf4ceff31318e176f71355)

Co-authored-by: Victor Stinner <vstinner@python.org>
8 months ago[3.12] gh-130824: Add tests for NULL in PyLong_*AndOverflow functions (GH-130828...
Petr Viktorin [Wed, 5 Mar 2025 11:52:40 +0000 (12:52 +0100)] 
[3.12] gh-130824: Add tests for NULL in PyLong_*AndOverflow functions (GH-130828) (GH-130876)

(cherry picked from commit 90130807d9c5a55b2a64024f5dfbee4785b9a27c)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
8 months ago[3.12] GH-125722: Increase minimum supported Sphinx to 8.2.0 (GH-130444) (#130859)
Miss Islington (bot) [Wed, 5 Mar 2025 00:38:04 +0000 (01:38 +0100)] 
[3.12] GH-125722: Increase minimum supported Sphinx to 8.2.0 (GH-130444) (#130859)

GH-125722: Increase minimum supported Sphinx to 8.2.0 (GH-130444)
(cherry picked from commit e53d105872fafa77507ea33b7ecf0faddd4c3b60)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
8 months ago[3.12] gh-130730: Fix multiprocessing test_active_children() (GH-130837) (#130846)
Miss Islington (bot) [Tue, 4 Mar 2025 17:22:12 +0000 (18:22 +0100)] 
[3.12] gh-130730: Fix multiprocessing test_active_children() (GH-130837) (#130846)

gh-130730: Fix multiprocessing test_active_children() (GH-130837)

Replace a sleep with an event: sleep is not a reliable
synchronization primitive.
(cherry picked from commit 3dd3675492a3fc3b7996613ef75a9044ee7449b0)

Co-authored-by: Victor Stinner <vstinner@python.org>
8 months ago[3.12] gh-129567: Add a note to typing.TypedDict docs about name mangling (GH-130233...
sobolevn [Tue, 4 Mar 2025 15:34:34 +0000 (18:34 +0300)] 
[3.12] gh-129567: Add a note to typing.TypedDict docs about name mangling (GH-130233) (#130842)

8 months ago[3.12] gh-130736: Fix asyncio test_shutdown_default_executor_timeout() (GH-130800...
Miss Islington (bot) [Tue, 4 Mar 2025 12:11:00 +0000 (13:11 +0100)] 
[3.12] gh-130736: Fix asyncio test_shutdown_default_executor_timeout() (GH-130800) (#130826)

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.12] gh-130740: Move some `stdbool.h` includes after `Python.h` (#130738) (#130757)
Bénédikt Tran [Tue, 4 Mar 2025 09:38:24 +0000 (10:38 +0100)] 
[3.12] gh-130740: Move some `stdbool.h` includes after `Python.h` (#130738) (#130757)

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.12] gh-130737: Fix multiprocessing test_notify() (GH-130797) (#130803)
Miss Islington (bot) [Mon, 3 Mar 2025 19:02:20 +0000 (20:02 +0100)] 
[3.12] gh-130737: Fix multiprocessing test_notify() (GH-130797) (#130803)

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.12] gh-129583: update bundled pip to 25.0.1 (GH-129909) (#129947)
Hugo van Kemenade [Mon, 3 Mar 2025 15:46:07 +0000 (17:46 +0200)] 
[3.12] gh-129583: update bundled pip to 25.0.1 (GH-129909) (#129947)

(cherry picked from commit b8f7bddd6c6b5d2d13c97882042ce808aceca5a8)

Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
8 months ago[3.12] Docs: Fix a misplaced statement in the document for `ServerProxy` (GH-130616...
Miss Islington (bot) [Mon, 3 Mar 2025 14:09:20 +0000 (15:09 +0100)] 
[3.12] Docs: Fix a misplaced statement in the document for `ServerProxy` (GH-130616) (GH-130639)

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.12] gh-127667: fix memory leaks in `hashlib` (GH-127668) (#130783)
Bénédikt Tran [Mon, 3 Mar 2025 10:44:42 +0000 (11:44 +0100)] 
[3.12] gh-127667: fix memory leaks in `hashlib` (GH-127668) (#130783)

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.12] gh-101100: Fix Sphinx documentation warnings in `collections.rst` (GH-130629...
Hugo van Kemenade [Mon, 3 Mar 2025 10:05:58 +0000 (12:05 +0200)] 
[3.12] gh-101100: Fix Sphinx documentation warnings in `collections.rst` (GH-130629) (#130782)

(cherry picked from commit 373eb1b47af6843678c477b237d787c04dda2818)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
8 months ago[3.12] gh-101100: Fix sphinx warnings in `library/email.errors.rst` (GH-130774) ...
Miss Islington (bot) [Mon, 3 Mar 2025 10:05:12 +0000 (11:05 +0100)] 
[3.12] gh-101100: Fix sphinx warnings in `library/email.errors.rst` (GH-130774) (#130780)

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.12] gh-129015: Improve disambiguation between `NotImplemented` and `NotImplemented...
Miss Islington (bot) [Mon, 3 Mar 2025 08:31:08 +0000 (09:31 +0100)] 
[3.12] gh-129015: Improve disambiguation between `NotImplemented` and `NotImplementedError` (GH-129562) (#130777)

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.12] gh-130637: Add validation for numeric response data in `stat()` method (GH...
Miss Islington (bot) [Sun, 2 Mar 2025 20:05:46 +0000 (21:05 +0100)] 
[3.12] gh-130637: Add validation for numeric response data in `stat()` method (GH-130646) (#130764)

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.12] Fix grammar typo in `Doc/c-api/arg.rst` (GH-130741) (#130758)
Miss Islington (bot) [Sun, 2 Mar 2025 11:21:57 +0000 (12:21 +0100)] 
[3.12] Fix grammar typo in `Doc/c-api/arg.rst` (GH-130741) (#130758)

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.12] Add link in the `importlib.metadata.version()` docs (GH-130739) (#130760)
Miss Islington (bot) [Sun, 2 Mar 2025 10:43:06 +0000 (11:43 +0100)] 
[3.12] Add link in the `importlib.metadata.version()` docs (GH-130739) (#130760)

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.12] gh-128481: Improve documentation for `traceback.FrameSummary` (GH-128484)...
Miss Islington (bot) [Sun, 2 Mar 2025 09:50:32 +0000 (10:50 +0100)] 
[3.12] gh-128481: Improve documentation for `traceback.FrameSummary` (GH-128484) (#130754)

* 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.12] gh-130160: use `.. program::` directive for documenting `cProfile` CLI (GH...
Miss Islington (bot) [Sat, 1 Mar 2025 20:46:45 +0000 (21:46 +0100)] 
[3.12] gh-130160: use `.. program::` directive for documenting `cProfile` CLI (GH-130314) (#130746)

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.12] gh-130618: Fix parser error when using lambdas inside f-strings (GH-130638...
Pablo Galindo Salgado [Sat, 1 Mar 2025 18:10:07 +0000 (18:10 +0000)] 
[3.12] gh-130618: Fix parser error when using lambdas inside f-strings (GH-130638) (#130644)

(cherry picked from commit e06bebb87e1b33f7251196e1ddb566f528c3fc98)

8 months ago[3.12] Revert "gh-128364: Fix flaky `test_timeout` test (gh-130724)" (gh-130732)...
Miss Islington (bot) [Sat, 1 Mar 2025 17:40:51 +0000 (18:40 +0100)] 
[3.12] Revert "gh-128364: Fix flaky `test_timeout` test (gh-130724)" (gh-130732) (#130735)

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.12] gh-128364: Fix flaky `test_timeout` test (gh-130724) (gh-130729)
Miss Islington (bot) [Sat, 1 Mar 2025 16:40:53 +0000 (17:40 +0100)] 
[3.12] gh-128364: Fix flaky `test_timeout` test (gh-130724) (gh-130729)

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.12] gh-130607: Extend and cleanup IPv6 tests (GH-121518) (GH-130678)
Miss Islington (bot) [Fri, 28 Feb 2025 11:41:34 +0000 (12:41 +0100)] 
[3.12] gh-130607: Extend and cleanup IPv6 tests (GH-121518) (GH-130678)

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.12] gh-112507: Detect Cygwin and MSYS with `uname` instead of `$OSTYPE` (GH-112508...
Vinay Sajip [Fri, 28 Feb 2025 09:23:45 +0000 (09:23 +0000)] 
[3.12] gh-112507: Detect Cygwin and MSYS with `uname` instead of `$OSTYPE` (GH-112508) (GH-130674)

(cherry picked from commit d7b5f102319bb0389c5248e9ecf533eae4163424)

8 months ago[3.12] gh-130655: Increase test coverage of gettext._expand_lang() (GH-130656) (GH...
Miss Islington (bot) [Fri, 28 Feb 2025 08:58:09 +0000 (09:58 +0100)] 
[3.12] gh-130655: Increase test coverage of gettext._expand_lang() (GH-130656) (GH-130672)

(cherry picked from commit 24c52cb14c4b044154bd46bd1b2a9c37076caeb9)

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

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.12] gh-129296: Fix `pythread.h` include paths (#129320) (#130668)
Victor Stinner [Fri, 28 Feb 2025 08:19:50 +0000 (09:19 +0100)] 
[3.12] gh-129296: Fix `pythread.h` include paths (#129320) (#130668)

gh-129296: Fix `pythread.h` include paths (#129320)

Use relative includes in Include/cpython/pythread.h for
pthread_stubs.h.

(cherry picked from commit 3a974e39d54902699f360bc4db2fd351a6baf3ef)

Co-authored-by: Zanie Blue <contact@zanie.dev>
8 months ago[3.12] gh-125553: Fix backslash continuation in `untokenize` (GH-126010) (#130579)
Hugo van Kemenade [Thu, 27 Feb 2025 21:57:13 +0000 (23:57 +0200)] 
[3.12] gh-125553: Fix backslash continuation in `untokenize` (GH-126010) (#130579)

(cherry picked from commit 7ad793e5dbdf07e51a71b70d20f3e6e3ab60244d)

Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
8 months ago[3.12] GH-121970: Extract ``issue_role`` into a new extension (GH-130615) (#130652)
Miss Islington (bot) [Thu, 27 Feb 2025 21:29:33 +0000 (22:29 +0100)] 
[3.12] GH-121970: Extract ``issue_role`` into a new extension (GH-130615) (#130652)

(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.12] GH-92897: schedule the check_home deprecation to 3.15 (GH-129102) (#130585)
Hugo van Kemenade [Thu, 27 Feb 2025 18:17:08 +0000 (20:17 +0200)] 
[3.12] GH-92897: schedule the check_home deprecation to 3.15 (GH-129102) (#130585)

Co-authored-by: Filipe Laíns 🇵🇸 <lains@riseup.net>
8 months ago[3.12] gh-129405: Fix doc for Py_mod_multiple_interpreters default, and add test...
Petr Viktorin [Thu, 27 Feb 2025 15:30:46 +0000 (16:30 +0100)] 
[3.12] gh-129405: Fix doc for Py_mod_multiple_interpreters default, and add test (GH-129406) (GH-130510)

8 months ago[3.12] gh-127785: Limit check labels github action permission (GH-130596) (#130625)
shenxianpeng [Thu, 27 Feb 2025 14:47:41 +0000 (22:47 +0800)] 
[3.12] gh-127785: Limit check labels github action permission (GH-130596) (#130625)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
8 months ago[3.12] Doc: Strip trailing whitespace in ``pydoc_topics`` (GH-130492) (#130636)
Miss Islington (bot) [Thu, 27 Feb 2025 14:26:42 +0000 (15:26 +0100)] 
[3.12] Doc: Strip trailing whitespace in ``pydoc_topics`` (GH-130492) (#130636)

(cherry picked from commit 3f3e1c4095ae229b0c6d0364f289a20732281a96)

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

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

(cherry picked from commit fda056e64bdfcac3dd3d13eebda0a24994d83cb8)

8 months ago[3.12] gh-130163: Fix crashes related to PySys_GetObject() (GH-130503) (GH-130556...
Serhiy Storchaka [Wed, 26 Feb 2025 15:20:47 +0000 (17:20 +0200)] 
[3.12] gh-130163: Fix crashes related to PySys_GetObject() (GH-130503) (GH-130556) (GH-130576)

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)
(cherry picked from commit 7c1b76fce8c8df00da38830f72dbdde6881a33be)
(cherry picked from commit 2ab7e1135a2d5ca45b60881ece27729e4fc0ee8b)

8 months ago[3.12] Fix indentation for contextlib.asynccontextmanager docs (GH-127333) (#130580)
Miss Islington (bot) [Wed, 26 Feb 2025 13:03:18 +0000 (14:03 +0100)] 
[3.12] Fix indentation for contextlib.asynccontextmanager docs (GH-127333) (#130580)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
8 months ago[3.12] GH-130396: Treat clang -Og as optimized for gdb tests (GH-130550) (#130573)
Victor Stinner [Wed, 26 Feb 2025 11:38:21 +0000 (12:38 +0100)] 
[3.12] GH-130396: Treat clang -Og as optimized for gdb tests (GH-130550) (#130573)

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.12] Docs: Fix some semantic usages of `iterator.__iter__` (GH-130172) (GH-130544)
Miss Islington (bot) [Wed, 26 Feb 2025 10:03:00 +0000 (11:03 +0100)] 
[3.12] Docs: Fix some semantic usages of `iterator.__iter__` (GH-130172) (GH-130544)

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.12] gh-107526: Revert "gh-100357: Convert several functions in bltinsmodule to...
sobolevn [Wed, 26 Feb 2025 09:27:33 +0000 (12:27 +0300)] 
[3.12] gh-107526: Revert "gh-100357: Convert several functions in bltinsmodule to AC" (GH-107542) (#130371)

8 months ago[3.12] gh-130433: Update documentation for `MultipartConversionError` (GH-130436...
Miss Islington (bot) [Wed, 26 Feb 2025 08:59:19 +0000 (09:59 +0100)] 
[3.12] gh-130433: Update documentation for `MultipartConversionError` (GH-130436) (GH-130566)

(cherry picked from commit b536e371044f9e9b1b34cc8276a01e67550b5428)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
8 months ago[3.12] gh-108303: Fix and move `badsyntax_pep3120.py` (GH-109513) (#130540)
Hugo van Kemenade [Wed, 26 Feb 2025 07:46:12 +0000 (09:46 +0200)] 
[3.12] gh-108303: Fix and move `badsyntax_pep3120.py` (GH-109513) (#130540)

(cherry picked from commit 4dd47c63a97b3c39cd964ad12431fcdaf76dc823)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
8 months ago[3.12] gh-130461: Remove unnecessary usages of `.. index::` directives in Doc/library...
Kanishk Pachauri [Tue, 25 Feb 2025 13:25:20 +0000 (18:55 +0530)] 
[3.12] gh-130461: Remove unnecessary usages of `.. index::` directives in Doc/library/uuid.rst (#130526) (#130546)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
8 months ago[3.12] gh-130151: Fix reference leaks in `_hashlib.hmac_{new,digest}` (GH-130152...
Bénédikt Tran [Tue, 25 Feb 2025 11:38:47 +0000 (12:38 +0100)] 
[3.12] gh-130151: Fix reference leaks in `_hashlib.hmac_{new,digest}` (GH-130152) (#130539)

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)

8 months ago[3.12] Fix a typo in code module test (GH-130530) (GH-130533)
Miss Islington (bot) [Tue, 25 Feb 2025 09:54:15 +0000 (10:54 +0100)] 
[3.12] Fix a typo in code module test (GH-130530) (GH-130533)

(cherry picked from commit 56e337d32b88630f2c35458231cd61929f1be6d4)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
8 months ago[3.12] gh-46236: Add docs for PyUnicode_GetDefaultEncoding() doc (GH-130335) (GH...
Miss Islington (bot) [Mon, 24 Feb 2025 16:10:27 +0000 (17:10 +0100)] 
[3.12] gh-46236: Add docs for PyUnicode_GetDefaultEncoding() doc (GH-130335) (GH-130512)

* 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.12] gh-127522: wsgiref: indicate that `start_response` objects should follow a...
Miss Islington (bot) [Mon, 24 Feb 2025 14:08:22 +0000 (15:08 +0100)] 
[3.12] gh-127522: wsgiref: indicate that `start_response` objects should follow a specific protocol (GH-127525) (GH-130505)

(cherry picked from commit 39ba4b6619026bbe65c5844702a8a0bb6e75c4f7)

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

gh-127805: Clarify Formatter initialization in logging.rst. (GH-127850)
(cherry picked from commit 5d66c55c8ad0a0aeff8d06021ddca1d02c5f4416)

Co-authored-by: UV <yuvrajpradhan667@gmail.com>
8 months ago[3.12] gh-130160: use `.. program::` directive for documenting `idle` CLI (GH-130278...
Miss Islington (bot) [Mon, 24 Feb 2025 03:58:42 +0000 (04:58 +0100)] 
[3.12] gh-130160: use `.. program::` directive for documenting `idle` CLI (GH-130278) (#130495)

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.12] Docs: Test presence of optional extensions with importlib (GH-130445) (#130466)
Adam Turner [Sat, 22 Feb 2025 21:06:13 +0000 (21:06 +0000)] 
[3.12] Docs: Test presence of optional extensions with importlib (GH-130445) (#130466)

* [3.12] Docs: Test presence of optional extensions with importlib (GH-130445)
(cherry picked from commit 3cc9e867eba1ed139cf28c74b4a788bcc4801394)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
8 months ago[3.12] gh-121970: Replace `.. coroutine{method,function}` with `:async:` (GH-130448...
Adam Turner [Sat, 22 Feb 2025 18:22:29 +0000 (18:22 +0000)] 
[3.12] gh-121970: Replace `.. coroutine{method,function}` with `:async:` (GH-130448) (#130467)

(cherry picked from commit 5ec4bf86b7f4455432aebace996ef390ae3e9302)

Co-authored-by: sobolevn <mail@sobolevn.me>
8 months ago[3.12] Add measuring unit to `sys.getswitchinterval` docs (GH-130457) (#130459)
Miss Islington (bot) [Sat, 22 Feb 2025 16:13:31 +0000 (17:13 +0100)] 
[3.12] Add measuring unit to `sys.getswitchinterval` docs (GH-130457) (#130459)

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.12] gh-129712: Document the wheels tags corresponding to each universal SDK. ...
Miss Islington (bot) [Sat, 22 Feb 2025 08:38:41 +0000 (09:38 +0100)] 
[3.12] gh-129712: Document the wheels tags corresponding to each universal SDK. (GH-130389) (#130450)

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.12] GH-121970: Replace custom abstract method directive with the ``:abstract:...
Adam Turner [Sat, 22 Feb 2025 02:11:47 +0000 (02:11 +0000)] 
[3.12] GH-121970: Replace custom abstract method directive with the ``:abstract:`` option (GH-129311) (#130440)

(cherry picked from commit 30e892473e0dfe5c3fecabcaac420cefe45e2ed4)

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

(cherry picked from commit d0a1e5c222f9f43b492b28806e2a185a50d64500)

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

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.12] gh-128446: Skip Windows CI for Unix build system changes (GH-128450) (#130435)
Adam Turner [Sat, 22 Feb 2025 01:33:56 +0000 (01:33 +0000)] 
[3.12] gh-128446: Skip Windows CI for Unix build system changes (GH-128450) (#130435)

(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.12] gh-130285: Fix handling of zero or empty counts in random.sample() (gh-130291...
Miss Islington (bot) [Fri, 21 Feb 2025 17:48:46 +0000 (18:48 +0100)] 
[3.12] gh-130285: Fix handling of zero or empty counts in random.sample() (gh-130291) (gh-130417)

8 months ago[3.12] Convert change detection to a Python script (GH-129627) (#130370)
Hugo van Kemenade [Fri, 21 Feb 2025 15:18:44 +0000 (17:18 +0200)] 
[3.12] Convert change detection to a Python script (GH-129627) (#130370)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
8 months ago[3.12] gh-129363: Change regrtest sequential mode output (GH-129476) (#130406)
Miss Islington (bot) [Fri, 21 Feb 2025 14:16:27 +0000 (15:16 +0100)] 
[3.12] gh-129363: Change regrtest sequential mode output (GH-129476) (#130406)

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.12] Fix outdated reference link in collections module (gh-130349) (gh-130387)
Miss Islington (bot) [Fri, 21 Feb 2025 00:15:48 +0000 (01:15 +0100)] 
[3.12] Fix outdated reference link in collections module (gh-130349) (gh-130387)

8 months ago[3.12] Itertool recipe additions (gh-127483) (gh-130362)
Hugo van Kemenade [Thu, 20 Feb 2025 23:32:35 +0000 (01:32 +0200)] 
[3.12] Itertool recipe additions (gh-127483) (gh-130362)

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

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.12] gh-46236: Document PyUnicode_RSplit, PyUnicode_Partition and PyUnicode_RPartit...
Miss Islington (bot) [Thu, 20 Feb 2025 15:50:37 +0000 (16:50 +0100)] 
[3.12] gh-46236: Document PyUnicode_RSplit, PyUnicode_Partition and PyUnicode_RPartition (GH-130191) (#130361)

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.12] gh-119727: Add --single-process option to regrtest (GH-119728) (#130359)
Hugo van Kemenade [Thu, 20 Feb 2025 15:47:10 +0000 (17:47 +0200)] 
[3.12] gh-119727: Add --single-process option to regrtest (GH-119728) (#130359)

Co-authored-by: Victor Stinner <vstinner@python.org>
8 months ago[3.12] gh-129269: Exclude everything in sys.path in `test_coverage_ignore` (gh-130133...
Sam Gross [Thu, 20 Feb 2025 15:37:43 +0000 (10:37 -0500)] 
[3.12] gh-129269: Exclude everything in sys.path in `test_coverage_ignore` (gh-130133) (gh-130358)

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.12] [doc]: Update logging cookbook to mention domain socket configuration in a...
Miss Islington (bot) [Thu, 20 Feb 2025 14:20:00 +0000 (15:20 +0100)] 
[3.12] [doc]: Update logging cookbook to mention domain socket configuration in a recipe. (GH-130348) (GH-130352)

(cherry picked from commit 8cbcf51d614815df3ab7ea557f04e6b4b386968e)

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

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
8 months ago[3.12] gh-127750: Backport some tests for singledispatchmethod (GH-130309) (GH-130340...
Miss Islington (bot) [Thu, 20 Feb 2025 12:16:19 +0000 (13:16 +0100)] 
[3.12] gh-127750: Backport some tests for singledispatchmethod (GH-130309) (GH-130340) (GH-130341)

(cherry picked from commit 68c57d6f338ebc16be304e640493e29e1c7c3ef5)

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 months ago[3.12] gh-130250: use support.swap_attr() in test and don't assume we're beginning...
Miss Islington (bot) [Thu, 20 Feb 2025 11:45:42 +0000 (12:45 +0100)] 
[3.12] gh-130250: use support.swap_attr() in test and don't assume we're beginning with a clean system state (GH-130342) (#130345)

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.12] gh-69001: Convert links to more usable buttons (GH-129591) (#130339)
Miss Islington (bot) [Thu, 20 Feb 2025 08:49:51 +0000 (09:49 +0100)] 
[3.12] gh-69001: Convert links to more usable buttons (GH-129591) (#130339)

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.12] gh-130130: Clarify `hash=False` docs in `dataclasses.field` (GH-130324) (...
Miss Islington (bot) [Thu, 20 Feb 2025 07:53:58 +0000 (08:53 +0100)] 
[3.12] gh-130130: Clarify `hash=False` docs in `dataclasses.field` (GH-130324) (#130336)

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.12] gh-130250: fix cleanup in test (impacts refleaks runs) (GH-130329) (#130331)
Miss Islington (bot) [Thu, 20 Feb 2025 01:54:37 +0000 (02:54 +0100)] 
[3.12] gh-130250: fix cleanup in test (impacts refleaks runs) (GH-130329) (#130331)

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.12] gh-130250: fix regression in traceback.print_last (GH-130318) (#130326)
Miss Islington (bot) [Wed, 19 Feb 2025 22:01:32 +0000 (23:01 +0100)] 
[3.12] gh-130250: fix regression in traceback.print_last (GH-130318) (#130326)

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.12] gh-122876: Fix "End of lines" typo (GH-125310) (#130316)
Miss Islington (bot) [Wed, 19 Feb 2025 19:24:21 +0000 (20:24 +0100)] 
[3.12] gh-122876: Fix "End of lines" typo (GH-125310) (#130316)

Co-authored-by: za <za@python.or.id>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
8 months ago[3.12] CI: Make macOS required to succeed (GH-110362) (#130299)
Hugo van Kemenade [Wed, 19 Feb 2025 11:46:45 +0000 (13:46 +0200)] 
[3.12] CI: Make macOS required to succeed (GH-110362) (#130299)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
8 months ago[3.12] Docs: Upgrade Sphinx to 8.2 (GH-130171) (#130288)
Miss Islington (bot) [Tue, 18 Feb 2025 23:55:11 +0000 (00:55 +0100)] 
[3.12] Docs: Upgrade Sphinx to 8.2 (GH-130171) (#130288)

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.12] gh-130160: use `option` instead of `cmdoption` in `dis.rst` (GH-130255) (...
sobolevn [Tue, 18 Feb 2025 14:18:30 +0000 (17:18 +0300)] 
[3.12] gh-130160: use `option` instead of `cmdoption` in `dis.rst` (GH-130255) (#130265)

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

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.12] gh-130230: Add new tests for 3-arg pow() with Decimal (GH-130237) (GH-130247)
Serhiy Storchaka [Tue, 18 Feb 2025 08:18:40 +0000 (10:18 +0200)] 
[3.12] gh-130230: Add new tests for 3-arg pow() with Decimal (GH-130237) (GH-130247)

(cherry picked from commit b93b7e566e5a4efe7f077af2083140e50bd2b08f)

8 months ago[3.12] gh-130214: Document `PyEllipsis_Type` (GH-130215) (#130224)
Miss Islington (bot) [Mon, 17 Feb 2025 16:24:30 +0000 (17:24 +0100)] 
[3.12] gh-130214: Document `PyEllipsis_Type` (GH-130215) (#130224)

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

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
8 months ago[3.12] gh-125741: Update `build.yml` for the new check_autoconf_regen job (GH-125772...
Miss Islington (bot) [Mon, 17 Feb 2025 16:01:27 +0000 (17:01 +0100)] 
[3.12] gh-125741: Update `build.yml` for the new check_autoconf_regen job (GH-125772) (#130229)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
8 months ago[3.12] CI: Use ImageOS (ubuntu24) instead of runner.os (Linux) in cache keys (GH...
Hugo van Kemenade [Mon, 17 Feb 2025 13:42:19 +0000 (15:42 +0200)] 
[3.12] CI: Use ImageOS (ubuntu24) instead of runner.os (Linux) in cache keys (GH-130200) (#130226)

8 months ago[3.12] gh-82045: Correct and deduplicate "isprintable" docs; add test. (GH-130125)
Stan Ulbrych [Mon, 17 Feb 2025 13:07:59 +0000 (13:07 +0000)] 
[3.12] gh-82045: Correct and deduplicate "isprintable" docs; add test. (GH-130125)

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.

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

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

(cherry picked from commit fb2d325725dcc881868b576b9d0d9f4bf7f24fe0)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
8 months ago[3.12] gh-86069: Add more PyNumber_InPlacePower() tests (GH-130111) (GH-130212)
Miss Islington (bot) [Mon, 17 Feb 2025 08:25:20 +0000 (09:25 +0100)] 
[3.12] gh-86069: Add more PyNumber_InPlacePower() tests (GH-130111) (GH-130212)

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
8 months ago[3.12] gh-118761: Revert "Improve import time of `subprocess` (GH-129427)" (GH-130201...
Miss Islington (bot) [Sun, 16 Feb 2025 18:56:18 +0000 (19:56 +0100)] 
[3.12] gh-118761: Revert "Improve import time of `subprocess` (GH-129427)" (GH-130201) (#130205)

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>