]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
9 days ago[3.13] gh-141650: Fix typo in `xml.sax.saxutils.unescape` documentation (GH-141652...
Miss Islington (bot) [Mon, 17 Nov 2025 13:02:01 +0000 (14:02 +0100)] 
[3.13] gh-141650: Fix typo in `xml.sax.saxutils.unescape` documentation (GH-141652) (#141653)

Co-authored-by: Tamzin Hadasa Kelly <tk.infinity@gmail.com>
9 days ago[3.13] gh-137109: refactor warning about threads when forking (GH-141438) (GH-141614...
Miss Islington (bot) [Mon, 17 Nov 2025 03:26:34 +0000 (04:26 +0100)] 
[3.13] gh-137109: refactor warning about threads when forking (GH-141438) (GH-141614) (GH-141639)

[3.14] gh-137109: refactor warning about threads when forking (GH-141438) (GH-141614)

This splits the OS API specific functionality to get the number of threads out
from the fallback Python method and warning raising code itself.  This way the
OS APIs can be queried before we've run
`os.register_at_fork(after_in_parent=...)` registered functions which
themselves may (re)start threads that would otherwise be detected.

This is best effort.  If the OS APIs are either unavailable or fail, the
warning generating code still falls back to looking at the Python threading
state after the CPython interpreter world has been restarted and the
after_in_parent calls have been made.  The common case for most Linux and macOS
environments should work today.

This also lines up with the existing TODO refactoring, we may choose to expose
this API to get the number of OS threads in the `os` module in the future.

Note: This is a simplified backport that maintains the void return type
for warn_about_fork_with_threads() and keeps PyErr_Clear() in the warning path,
as the error handling changes from fd8f42d3d1 are not needed in 3.14.
(cherry picked from commit 0d8fb0b8523769e24f249d19dab3781a10b50e8b)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
10 days ago[3.13] gh-136057: Allow step and next to step over for loops (GH-136160) (#141641)
Tian Gao [Sun, 16 Nov 2025 22:23:03 +0000 (14:23 -0800)] 
[3.13] gh-136057: Allow step and next to step over for loops (GH-136160) (#141641)

(cherry picked from commit 8be3b2f479431f670f2e81e41b52e698c0806289)

10 days ago[3.13] gh-141004: Document missing `PyCFunction*` and `PyCMethod*` APIs (GH-141253...
Miss Islington (bot) [Sun, 16 Nov 2025 19:32:16 +0000 (20:32 +0100)] 
[3.13] gh-141004: Document missing `PyCFunction*` and `PyCMethod*` APIs (GH-141253) (GH-141638)

gh-141004: Document missing `PyCFunction*` and `PyCMethod*` APIs (GH-141253)
(cherry picked from commit be699d6c7c8793d3eb464f2e5d3f10262fe3bc37)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
10 days ago[3.13] gh-141004: Document the `PyPickleBuffer_*` C API (GH-141630) (GH-141633)
Miss Islington (bot) [Sun, 16 Nov 2025 18:58:19 +0000 (19:58 +0100)] 
[3.13] gh-141004: Document the `PyPickleBuffer_*` C API (GH-141630) (GH-141633)

gh-141004: Document the `PyPickleBuffer_*` C API (GH-141630)
(cherry picked from commit e33afa7ddbca3fca38f4ec4369b620c37cb092e2)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
11 days ago[3.13] GH-141312: Allow only integers to longrangeiter_setstate state (GH-141317...
Sergey Miryanov [Sat, 15 Nov 2025 19:14:17 +0000 (00:14 +0500)] 
[3.13] GH-141312: Allow only integers to longrangeiter_setstate state (GH-141317) (GH-141568)

This fixes an assertion error when the new computed start is not an integer.
(cherry picked from commit 10bec7c1eb3ee27f490a067426eef452b15f78f9)

11 days ago[3.13] gh-140938: Raise ValueError for infinite inputs to stdev/pstdev (GH-141531...
Gregory P. Smith [Sat, 15 Nov 2025 04:45:28 +0000 (20:45 -0800)] 
[3.13] gh-140938: Raise ValueError for infinite inputs to stdev/pstdev (GH-141531) (#141584)

gh-140938: Raise ValueError for infinite inputs to stdev/pstdev (GH-141531)

Raise ValueError for infinite inputs to stdev/pstdev

---

(cherry picked from commit f0a8bc737ab2f04d4196eee154cb1e17e26ad585)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
11 days ago[3.13] gh-141579: Fix perf_jit backend in sys.activate_stack_trampoline() (GH-141580...
Pablo Galindo Salgado [Sat, 15 Nov 2025 03:17:49 +0000 (03:17 +0000)] 
[3.13] gh-141579: Fix perf_jit backend in sys.activate_stack_trampoline() (GH-141580) (#141582)

11 days ago[3.13] gh-136442: Fix unittest to return exit code 5 when setUpClass raises an except...
Miss Islington (bot) [Sat, 15 Nov 2025 01:23:03 +0000 (02:23 +0100)] 
[3.13] gh-136442: Fix unittest to return exit code 5 when setUpClass raises an exception (GH-136487) (#141577)

gh-136442: Fix unittest to return exit code 5 when setUpClass raises an exception (GH-136487)
(cherry picked from commit 53d65c840e038ce9a5782fbd3da963c7aba90570)

Co-authored-by: Takuya UESHIN <ueshin@happy-camper.st>
12 days ago[3.13] GH-139596: Cease caching config.cache & ccache in GH Actions (GH-141429) ...
Hugo van Kemenade [Fri, 14 Nov 2025 22:51:36 +0000 (00:51 +0200)] 
[3.13] GH-139596: Cease caching config.cache & ccache in GH Actions (GH-141429) (#141569)

(cherry picked from commit a2442fda6e04d2b7c34490e44000f4dd12daf962)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
12 days ago[3.13] gh-139344: Remove pending removal notice for undeprecated importlib.resources...
Miss Islington (bot) [Fri, 14 Nov 2025 16:24:37 +0000 (17:24 +0100)] 
[3.13] gh-139344: Remove pending removal notice for undeprecated importlib.resources API (GH-141507) (GH-141557)

(cherry picked from commit 49e74210cb652d8bd538a4cc887f507396cfc893)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
12 days ago[3.13] gh-141004: Document `PyOS_InterruptOccurred` (GH-141526) (GH-141550)
Miss Islington (bot) [Fri, 14 Nov 2025 15:58:19 +0000 (16:58 +0100)] 
[3.13] gh-141004: Document `PyOS_InterruptOccurred` (GH-141526) (GH-141550)

gh-141004: Document `PyOS_InterruptOccurred` (GH-141526)
(cherry picked from commit ef90261be508b97d682589aac8f00065a9585683)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
13 days ago[3.13] gh-141004: Document `PyErr_RangedSyntaxLocationObject` (GH-141521) (#141524)
Miss Islington (bot) [Thu, 13 Nov 2025 18:05:43 +0000 (19:05 +0100)] 
[3.13] gh-141004: Document `PyErr_RangedSyntaxLocationObject` (GH-141521) (#141524)

gh-141004: Document `PyErr_RangedSyntaxLocationObject` (GH-141521)

PyErr_RangedSyntaxLocationObject
(cherry picked from commit 196f1519cd2d8134d7643536f13f2b2844bea65d)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
13 days ago[3.13] gh-141004: Document `PyCode_Optimize` (GH-141378) (GH-141515)
Miss Islington (bot) [Thu, 13 Nov 2025 15:14:32 +0000 (16:14 +0100)] 
[3.13] gh-141004: Document `PyCode_Optimize` (GH-141378) (GH-141515)

gh-141004: Document `PyCode_Optimize` (GH-141378)
(cherry picked from commit d7862e9b1bd8f82e41c4f2c4dad31e15707d856f)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
13 days ago[3.13] gh-141004: Document C APIs for dictionary keys, values, and items (GH-141009...
Miss Islington (bot) [Thu, 13 Nov 2025 15:09:23 +0000 (16:09 +0100)] 
[3.13] gh-141004: Document C APIs for dictionary keys, values, and items (GH-141009) (GH-141513)

gh-141004: Document C APIs for dictionary keys, values, and items (GH-141009)
(cherry picked from commit f72768f30e6ed9253eb3b6374b4395dfcaf4842a)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
13 days ago[3.13] gh-140748: socket_helper.transient_internet: Unwrap UrlError.__cause__ (GH...
Miss Islington (bot) [Thu, 13 Nov 2025 12:58:46 +0000 (13:58 +0100)] 
[3.13] gh-140748: socket_helper.transient_internet: Unwrap UrlError.__cause__ (GH-140749) (GH-141506)

(cherry picked from commit 75a1cbdd38b142b359849eae16a2ecc12f6b3881)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
13 days ago[3.13] gh-138189: Document type slots, and other constants, as part of Limited API...
Petr Viktorin [Thu, 13 Nov 2025 12:28:57 +0000 (13:28 +0100)] 
[3.13] gh-138189: Document type slots, and other constants, as part of Limited API (GH-138190) (GH-141193)

(cherry picked from commit d81e1ef0f3a7c63f5d246e4cf918700016b72489)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
13 days ago[3.13] gh-140601: Refactor ElementTree.iterparse() tests (GH-141499) (GH-141503)
Miss Islington (bot) [Thu, 13 Nov 2025 11:57:58 +0000 (12:57 +0100)] 
[3.13] gh-140601: Refactor ElementTree.iterparse() tests (GH-141499) (GH-141503)

Split existing tests on smaller methods and move them to separate class.
Rename variable "content" to "it".
Use BytesIO instead of StringIO.
Add few more tests.
(cherry picked from commit 2fbd39666663cb5ca1c0e3021ce2e7bc72331020)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
13 days ago[3.13] gh-103847: fix cancellation safety of `asyncio.create_subprocess_exec` (GH...
Miss Islington (bot) [Thu, 13 Nov 2025 11:35:01 +0000 (12:35 +0100)] 
[3.13] gh-103847: fix cancellation safety of `asyncio.create_subprocess_exec` (GH-140805) (#141447)

gh-103847: fix cancellation safety of `asyncio.create_subprocess_exec` (GH-140805)
(cherry picked from commit ef474cfafbdf3aa383fb1334a7ab95cef9834ced)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2 weeks ago[3.13] gh-141004: Document `PyType_SUPPORTS_WEAKREFS` (GH-141408) (GH-141487)
Peter Bierma [Wed, 12 Nov 2025 23:02:58 +0000 (18:02 -0500)] 
[3.13] gh-141004: Document `PyType_SUPPORTS_WEAKREFS` (GH-141408) (GH-141487)

* gh-141004: Document `PyType_SUPPORTS_WEAKREFS` (GH-141408)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
(cherry picked from commit 9cd5427d9619b96db20d0347a136b3d331af71ae)

2 weeks ago[3.13] gh-141004: Document `PyRun_InteractiveOneObject` (GH-141405) (GH-141486)
Miss Islington (bot) [Wed, 12 Nov 2025 22:59:55 +0000 (23:59 +0100)] 
[3.13] gh-141004: Document `PyRun_InteractiveOneObject` (GH-141405) (GH-141486)

gh-141004: Document `PyRun_InteractiveOneObject` (GH-141405)
(cherry picked from commit 26b7df2430cd5a9ee772bfa6ee03a73bd0b11619)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 weeks ago[3.13] gh-124111: Fix TCL 9 thread detection (GH-141483)
Miss Islington (bot) [Wed, 12 Nov 2025 22:44:01 +0000 (23:44 +0100)] 
[3.13] gh-124111: Fix TCL 9 thread detection (GH-141483)

(cherry picked from commit dc0987080ed66c662e8e0b24cdb8c179817bd697)

Co-authored-by: Michael Cho <michael@michaelcho.dev>
2 weeks ago[3.13] gh-141442: Add escaping to iOS testbed arguments (GH-141443) (#141480)
Miss Islington (bot) [Wed, 12 Nov 2025 22:03:51 +0000 (23:03 +0100)] 
[3.13] gh-141442: Add escaping to iOS testbed arguments (GH-141443) (#141480)

Xcode concatenates the test argument array, losing quoting in the process.
(cherry picked from commit 558936bec1f1e0f8346063a8cb2b2782d085178e)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2 weeks ago[3.13] gh-141311: Avoid assertion in BytesIO.readinto() (GH-141333) (GH-141478)
Cody Maloney [Wed, 12 Nov 2025 21:37:06 +0000 (13:37 -0800)] 
[3.13] gh-141311: Avoid assertion in BytesIO.readinto() (GH-141333) (GH-141478)

Fix error in assertion which causes failure if pos is equal to PY_SSIZE_T_MAX.
Fix undefined behavior in read() and readinto() if pos is larger that the size
of the underlying buffer.
(cherry picked from commit 7d54374f9c7d91e0ef90c4ad84baf10073cf1d8a)

2 weeks ago[3.13] gh-141412: Use reliable target URL for urllib example (GH-141475)
Miss Islington (bot) [Wed, 12 Nov 2025 18:40:22 +0000 (19:40 +0100)] 
[3.13] gh-141412: Use reliable target URL for urllib example (GH-141475)

The endpoint used for demonstrating reading URLs is no longer
stable. This change substitutes a target over which we have more
control.
(cherry picked from commit fbcac799518e0cb29fcf5f84ed1fa001010b9073)

Co-authored-by: Bob Kline <bkline@users.noreply.github.com>
2 weeks ago[3.13] gh-141004: Document `Py_MATH_{E, PI, TAU}` constants (GH-141373) (#141472)
Miss Islington (bot) [Wed, 12 Nov 2025 17:03:55 +0000 (18:03 +0100)] 
[3.13] gh-141004: Document `Py_MATH_{E, PI, TAU}` constants (GH-141373) (#141472)

gh-141004: Document `Py_MATH_{E, PI, TAU}` constants (GH-141373)
(cherry picked from commit f1330b35b8eb43904dfed0656acde80c08d63176)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-132657: add regression test for `PySet_Contains` with unhashable type ...
Miss Islington (bot) [Wed, 12 Nov 2025 15:42:18 +0000 (16:42 +0100)] 
[3.13] gh-132657: add regression test for `PySet_Contains` with unhashable type (GH-141411) (#141467)

gh-132657: add regression test for `PySet_Contains` with unhashable type (GH-141411)
(cherry picked from commit 2ac738d325a6934e39fecb097f43d4d4ed97a2b9)

Co-authored-by: M Bussonnier <bussonniermatthias@gmail.com>
2 weeks ago[3.13] gh-141314: Fix TextIOWrapper.tell() assertion failure with standalone carriage...
Mohsin Mehmood [Wed, 12 Nov 2025 10:40:14 +0000 (15:40 +0500)] 
[3.13] gh-141314: Fix TextIOWrapper.tell() assertion failure with standalone carriage return (GH-141331) (GH-141452)

The assertion was checking wrong variable (skip_back vs skip_bytes).
(cherry picked from commit af80fac42548719ede7241bfbab3c2c0775b4760)

2 weeks ago[3.13] gh-141370: document undefined behavior of Py_ABS() (GH-141439) (GH-141455)
Miss Islington (bot) [Wed, 12 Nov 2025 09:57:08 +0000 (10:57 +0100)] 
[3.13] gh-141370: document undefined behavior of Py_ABS() (GH-141439) (GH-141455)

(cherry picked from commit 20f53df07d42c495a08c73a3d54b8dd9098a62f0)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2 weeks ago[3.13] gh-141004: Document `PyBytes_Repr` and `PyBytes_DecodeEscape` (GH-141407)...
Peter Bierma [Wed, 12 Nov 2025 02:08:28 +0000 (21:08 -0500)] 
[3.13] gh-141004: Document `PyBytes_Repr` and `PyBytes_DecodeEscape` (GH-141407) (GH-141441)

* gh-141004: Document `PyBytes_Repr` and `PyBytes_DecodeEscape` (GH-141407)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
(cherry picked from commit 37e2762ee12c2d7fc465938d7161a9a0640bd71f)

2 weeks ago[3.13] gh-137952: update `csv.Sniffer().has_header()` docs to describe the actual...
Miss Islington (bot) [Wed, 12 Nov 2025 00:13:19 +0000 (01:13 +0100)] 
[3.13] gh-137952: update `csv.Sniffer().has_header()` docs to describe the actual off-by-onish behavior (GH-137953) (#141435)

gh-137952: update `csv.Sniffer().has_header()` docs to describe the actual off-by-onish behavior (GH-137953)

* checks 21, not 20
* Say "header" instead of "first row" to disambiguate per review.

---------
(cherry picked from commit 0d7b48a8f5de5c1c6d57e1cf7194b6fb222d92e5)

Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-138775: fix handle `python -m base64` stdin correct with EOF signal (GH...
Miss Islington (bot) [Wed, 12 Nov 2025 00:10:07 +0000 (01:10 +0100)] 
[3.13] gh-138775: fix handle `python -m base64` stdin correct with EOF signal (GH-138776) (#141433)

gh-138775: fix handle `python -m base64` stdin correct with EOF signal (GH-138776)

* fix: handle  stdin correct with EOF single.
* fix: flollow the comments when pipe stdin use buffer
* Apply suggestions from code review
* fix: apply review comments in Lib/base64.py
* fix: address comments
* Reword comment and NEWS entry.

---------
(cherry picked from commit f5c2a41f9a6b3be95c5be9dbae0a4a3342d356dc)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: yihong <zouzou0208@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 weeks ago[3.13] gh-141004: Document `PyFile_OpenCode` and `PyFile_OpenCodeObject` (GH-141413...
Miss Islington (bot) [Tue, 11 Nov 2025 21:48:36 +0000 (22:48 +0100)] 
[3.13] gh-141004: Document `PyFile_OpenCode` and `PyFile_OpenCodeObject` (GH-141413) (GH-141426)

gh-141004: Document `PyFile_OpenCode` and `PyFile_OpenCodeObject` (GH-141413)
(cherry picked from commit 2befce86e699fdbb6610949b029bad56a0d0780f)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-139533: fix refs to code without proper markups on turtledemo doc (GH-13953...
Miss Islington (bot) [Tue, 11 Nov 2025 19:42:01 +0000 (20:42 +0100)] 
[3.13] gh-139533: fix refs to code without proper markups on turtledemo doc (GH-139534) (#141422)

gh-139533: fix refs to code without proper markups on turtledemo doc (GH-139534)
(cherry picked from commit c903d768322989e9f8ba79e38ee87e14c85c5430)

gh-139533: fix refs to code without proper markups on turtledemo documentation

Co-authored-by: Marco Barbosa <aureliobarbosa@gmail.com>
2 weeks ago[3.13] gh-141004: Document `PyType_Unwatch` (GH-141414) (GH-141419)
Miss Islington (bot) [Tue, 11 Nov 2025 17:28:52 +0000 (18:28 +0100)] 
[3.13] gh-141004: Document `PyType_Unwatch` (GH-141414) (GH-141419)

gh-141004: Document `PyType_Unwatch` (GH-141414)
(cherry picked from commit 759a048d4bea522fda2fe929be0fba1650c62b0e)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 weeks ago[3.13] gh-141004: document Py_INFINITY and Py_NAN macros (GH-141145) (#141400)
Sergey B Kirpichev [Tue, 11 Nov 2025 13:52:05 +0000 (16:52 +0300)] 
[3.13] gh-141004: document Py_INFINITY and Py_NAN macros (GH-141145) (#141400)

(cherry picked from commit d69447445cbacf7537bf59c5c683a3b17060312d)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-140379: add hyperlinks to list and set (GH-140399) (#141387)
Miss Islington (bot) [Tue, 11 Nov 2025 06:09:28 +0000 (07:09 +0100)] 
[3.13] gh-140379: add hyperlinks to list and set (GH-140399) (#141387)

gh-140379: add hyperlinks to list and set (GH-140399)

add hyperlinks to list and set
(cherry picked from commit 92741c59f89e114474bdb2cb539107ef6bae0b9c)

Co-authored-by: Krishna Chaitanya <141550576+XChaitanyaX@users.noreply.github.com>
2 weeks ago[3.13] gh-140485: Catch ChildProcessError in multiprocessing resource tracker (GH...
Miss Islington (bot) [Tue, 11 Nov 2025 05:21:20 +0000 (06:21 +0100)] 
[3.13] gh-140485: Catch ChildProcessError in multiprocessing resource tracker (GH-141132) (#141385)

gh-140485: Catch ChildProcessError in multiprocessing resource tracker (GH-141132)
(cherry picked from commit 9cb8c52d5e9a83efe4fa3878db06befd9df52f54)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.13] gh-140578: Doc: Remove sencence implying that concurrent.futures.ThreadPoolExe...
Miss Islington (bot) [Tue, 11 Nov 2025 04:58:30 +0000 (05:58 +0100)] 
[3.13] gh-140578: Doc: Remove sencence implying that concurrent.futures.ThreadPoolExecutor does not exist (GH-140689) (#141383)

gh-140578: Doc: Remove sencence implying that concurrent.futures.ThreadPoolExecutor does not exist (GH-140689)

* Doc: Remove sencence implying that concurrent.futures.ThreadPoolExecutor does not exist

Closes GH-140578

* Add NEWS.d entry for gh-140578

---------
(cherry picked from commit 46b58e1bb9e1e17d855588935f5a259be960a3a1)

Co-authored-by: Louis <paternal@users.noreply.github.com>
Co-authored-by: Louis Paternault <spalax@gresille.org>
2 weeks ago[3.13] gh-141004: Document missing frame APIs (GH-141189) (GH-141380)
Miss Islington (bot) [Mon, 10 Nov 2025 21:42:04 +0000 (22:42 +0100)] 
[3.13] gh-141004: Document missing frame APIs (GH-141189) (GH-141380)

gh-141004: Document missing frame APIs (GH-141189)
(cherry picked from commit 86513f6c2ebdd1fb692c39b84786ea41d88c84fd)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-141004: Document `PyType_FastSubclass` (GH-141313) (GH-141369)
Miss Islington (bot) [Mon, 10 Nov 2025 17:52:22 +0000 (18:52 +0100)] 
[3.13] gh-141004: Document `PyType_FastSubclass` (GH-141313) (GH-141369)

gh-141004: Document `PyType_FastSubclass` (GH-141313)
(cherry picked from commit ed0a5fd8cacb1964111d03ff37627f6bea5e6026)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 weeks ago[3.13] gh-139707: Specify `winreg`, `msvcrt` and `winsound` module availability in...
Miss Islington (bot) [Mon, 10 Nov 2025 16:40:53 +0000 (17:40 +0100)] 
[3.13] gh-139707: Specify `winreg`, `msvcrt` and `winsound` module availability in docs (GH-140429) (GH-141350)

(cherry picked from commit 13fa313bebed71d8bc64f1cfdaf4b2f1ddd3ce5f)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-141343: Fix swapped words in `sorted` doc (GH-141356)
Miss Islington (bot) [Mon, 10 Nov 2025 15:02:45 +0000 (16:02 +0100)] 
[3.13] gh-141343: Fix swapped words in `sorted` doc (GH-141356)

(cherry picked from commit 59b793b0dd76d37229fe6d379cd5fe76023d15f1)

Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>
2 weeks ago[3.13] Clarify argument/result ownership/validity for PyModule_* functions (GH-141159...
Petr Viktorin [Mon, 10 Nov 2025 14:06:58 +0000 (15:06 +0100)] 
[3.13] Clarify argument/result ownership/validity for PyModule_* functions (GH-141159) (GH-141191)

(cherry picked from commit ffd64737d00277eea1c4721d278a0951168d07ca)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 weeks ago[3.13] gh-140500: Update download.html instructions (GH-141320) (#141346)
Miss Islington (bot) [Mon, 10 Nov 2025 12:46:06 +0000 (13:46 +0100)] 
[3.13] gh-140500: Update download.html instructions (GH-141320) (#141346)

Co-authored-by: Karina Souza <97332018+KarinaS0uza@users.noreply.github.com>
Co-authored-by: Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
2 weeks ago[3.13] gh-141004: Document `pyctype.h` macros (GH-141272) (GH-141339)
Miss Islington (bot) [Mon, 10 Nov 2025 10:11:39 +0000 (11:11 +0100)] 
[3.13] gh-141004: Document `pyctype.h` macros (GH-141272) (GH-141339)

gh-141004: Document `pyctype.h` macros (GH-141272)
(cherry picked from commit df192616212f80aaa2f672b722b925943dbd3b78)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-141004: Document `Py_DTSF_*` macros (GH-141310) (GH-141330)
Miss Islington (bot) [Mon, 10 Nov 2025 00:49:30 +0000 (01:49 +0100)] 
[3.13] gh-141004: Document `Py_DTSF_*` macros (GH-141310) (GH-141330)

gh-141004: Document `Py_DTSF_*` macros (GH-141310)
(cherry picked from commit 9b0179fa87fee39df0f75bd84fc2dd75f1d00553)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-62480: De-personalize "Partial mocking" section in `unittest.mock` examples...
Miss Islington (bot) [Mon, 10 Nov 2025 00:08:09 +0000 (01:08 +0100)] 
[3.13] gh-62480: De-personalize "Partial mocking" section in `unittest.mock` examples (GH-141321) (#141327)

gh-62480: De-personalize "Partial mocking" section in `unittest.mock` examples (GH-141321)

* Refine some wording in unittest partial mock doc

Some of the descriptions were addressed in first person,
but have now been changed to address the user reading the documentation instead.
(cherry picked from commit b618731781c31d4b5b75d199dfc14993ffd66e37)

Co-authored-by: KarnbirKhera <166065758+KarnbirKhera@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2 weeks ago[3.13] gh-62480: De-personalize "Mocking Unbound Methods" section in `unittest.mock...
Miss Islington (bot) [Mon, 10 Nov 2025 00:07:25 +0000 (01:07 +0100)] 
[3.13] gh-62480: De-personalize "Mocking Unbound Methods" section in `unittest.mock` examples (GH-141322) (#141325)

gh-62480: De-personalize "Mocking Unbound Methods" section in `unittest.mock` examples (GH-141322)

* Rewrite Mocking Unbound Methods paragraph to second person
(cherry picked from commit ec85d3cbfe315086805c33bb64c28a8509098829)

Co-authored-by: Elena O <31424287+oklena@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2 weeks ago[3.13] gh-141004: Document `PySuper_Type` (GH-141315) (GH-141319)
Miss Islington (bot) [Sun, 9 Nov 2025 20:01:33 +0000 (21:01 +0100)] 
[3.13] gh-141004: Document `PySuper_Type` (GH-141315) (GH-141319)

gh-141004: Document `PySuper_Type` (GH-141315)
(cherry picked from commit 14c62227f9fa11fb743f9e03dcc5aab553de1098)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-141004: Document `PyClassMethod*` and `PyStaticMethod*` APIs (GH-141296...
Miss Islington (bot) [Sun, 9 Nov 2025 18:09:43 +0000 (19:09 +0100)] 
[3.13] gh-141004: Document `PyClassMethod*` and `PyStaticMethod*` APIs (GH-141296) (GH-141309)

gh-141004: Document `PyClassMethod*` and `PyStaticMethod*` APIs (GH-141296)
(cherry picked from commit 807db68ddd8572cfa825373bc13461b02691f4d9)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 weeks ago[3.13] gh-141004: Document `PyFunction_SetKwDefaults` (GH-141294) (GH-141305)
Miss Islington (bot) [Sun, 9 Nov 2025 17:55:02 +0000 (18:55 +0100)] 
[3.13] gh-141004: Document `PyFunction_SetKwDefaults` (GH-141294) (GH-141305)

gh-141004: Document `PyFunction_SetKwDefaults` (GH-141294)
(cherry picked from commit 18529b580b59b8d075641da6c685bef377eb0a7b)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 weeks ago[3.13] gh-141004: Document `PyExceptionInstance*` APIs (GH-141301) (GH-141303)
Miss Islington (bot) [Sun, 9 Nov 2025 17:20:18 +0000 (18:20 +0100)] 
[3.13] gh-141004: Document `PyExceptionInstance*` APIs (GH-141301) (GH-141303)

gh-141004: Document `PyExceptionInstance*` APIs (GH-141301)
(cherry picked from commit b5a0c72492800c7e999b87adfcfeabaacb4ecb97)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-141004: Document `Py_func_type_input` (GH-141273) (GH-141299)
Miss Islington (bot) [Sun, 9 Nov 2025 16:28:26 +0000 (17:28 +0100)] 
[3.13] gh-141004: Document `Py_func_type_input` (GH-141273) (GH-141299)

gh-141004: Document `Py_func_type_input` (GH-141273)
(cherry picked from commit 8dd849828636bb3989c6d5d20f8790a3fb770fc4)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 weeks ago[3.13] gh-141004: document `curses` C API (GH-141254) (#141293)
Miss Islington (bot) [Sun, 9 Nov 2025 15:50:46 +0000 (16:50 +0100)] 
[3.13] gh-141004: document `curses` C API (GH-141254) (#141293)

gh-141004: document `curses` C API (GH-141254)
(cherry picked from commit dbe40904a78a0c8ffa25fb64e6ff1e14e6e7ba5a)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2 weeks ago[3.13] gh-141004: Document `PyWeakref_CheckRefExact` (GH-141279) (GH-141291)
Miss Islington (bot) [Sun, 9 Nov 2025 15:39:53 +0000 (16:39 +0100)] 
[3.13] gh-141004: Document `PyWeakref_CheckRefExact` (GH-141279) (GH-141291)

gh-141004: Document `PyWeakref_CheckRefExact` (GH-141279)
(cherry picked from commit 60155329a0a83a2b9e740f0c0de41c9d44f5a053)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-141004: Document deprecated aliases for memory allocation (GH-141146) ...
Peter Bierma [Sun, 9 Nov 2025 15:37:13 +0000 (10:37 -0500)] 
[3.13] gh-141004: Document deprecated aliases for memory allocation (GH-141146) (GH-141289)

* gh-141004: Document deprecated aliases for memory allocation (GH-141146)

(cherry picked from commit 1d738dea6364de004f8cec7c6309d6bbd3b996c7)

2 weeks ago[3.13] gh-140530: fix a reference leak in an error path for `raise exc from cause...
Bénédikt Tran [Sun, 9 Nov 2025 14:57:26 +0000 (15:57 +0100)] 
[3.13] gh-140530: fix a reference leak in an error path for `raise exc from cause` (GH-140908) (#141283)

gh-140530: fix a reference leak in an error path for `raise exc from cause` (#140908)

Fix a reference leak in `raise E from T` when `T` is an exception
subtype for which `T.__new__` does not return an exception instance.

(cherry picked from commit 0c77e7c23b5c270a3142105542c56c59b59c52a0)

2 weeks ago[3.13] gh-100218: correctly set `errno` when `socket.if_{nametoindex,indextoname...
Bénédikt Tran [Sun, 9 Nov 2025 13:31:49 +0000 (14:31 +0100)] 
[3.13] gh-100218: correctly set `errno` when `socket.if_{nametoindex,indextoname}` raise `OSError` (GH-140905) (#141285)

Previously, socket.if_nametoindex() and socket.if_indextoname() could raise
an `OSError` with a `None` errno. Now, the errno from libc is propagated.

(cherry picked from commit 3ce2d57b2f02030353af314d89c5f6215d2f5c96)

2 weeks ago[3.13] gh-141127: Clarify os.symlink() documentation for argument order (GH-141144...
Miss Islington (bot) [Sun, 9 Nov 2025 10:19:35 +0000 (11:19 +0100)] 
[3.13] gh-141127: Clarify os.symlink() documentation for argument order (GH-141144) (#141277)

gh-141127: Clarify os.symlink() documentation for argument order (GH-141144)
(cherry picked from commit 7ae440f262c99ba9a3327237f83c9290dc963028)

Co-authored-by: Chilla Kalyan <127284726+chillakalyan@users.noreply.github.com>
2 weeks ago[3.13] gh-141004: Document `Py_BUILD_ASSERT*` macros (GH-141266) (GH-141270)
Miss Islington (bot) [Sat, 8 Nov 2025 19:28:32 +0000 (20:28 +0100)] 
[3.13] gh-141004: Document `Py_BUILD_ASSERT*` macros (GH-141266) (GH-141270)

gh-141004: Document `Py_BUILD_ASSERT*` macros (GH-141266)
(cherry picked from commit 0ac890bea79d3e0162c8909b0999f626f1141d89)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-141004: Document the `PyDoc_VAR` macro (GH-141263) (GH-141265)
Miss Islington (bot) [Sat, 8 Nov 2025 18:20:56 +0000 (19:20 +0100)] 
[3.13] gh-141004: Document the `PyDoc_VAR` macro (GH-141263) (GH-141265)

gh-141004: Document the `PyDoc_VAR` macro (GH-141263)
(cherry picked from commit 545299773b40fb589cbd5e54d1d597207d9a2a76)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-141004: Document `PyBUF_WRITEABLE` (GH-141255) (GH-141260)
Miss Islington (bot) [Sat, 8 Nov 2025 17:37:04 +0000 (18:37 +0100)] 
[3.13] gh-141004: Document `PyBUF_WRITEABLE` (GH-141255) (GH-141260)

gh-141004: Document `PyBUF_WRITEABLE` (GH-141255)
(cherry picked from commit 5e5fc0404ed983bb37a19793a5c802d0d9852e5d)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 weeks ago[3.13] gh-141004: Document `PyErr_ProgramTextObject` and `PyErr_ProgramText` (GH...
Miss Islington (bot) [Sat, 8 Nov 2025 15:53:28 +0000 (16:53 +0100)] 
[3.13] gh-141004: Document `PyErr_ProgramTextObject` and `PyErr_ProgramText` (GH-141250) (GH-141257)

gh-141004: Document `PyErr_ProgramTextObject` and `PyErr_ProgramText` (GH-141250)
(cherry picked from commit be1c72a45d54cdd35e0a830e18224c4c74be808c)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-141246: Link to correct Windows docs in `time.sleep()` doc (GH-141248)...
Miss Islington (bot) [Sat, 8 Nov 2025 15:03:07 +0000 (16:03 +0100)] 
[3.13] gh-141246: Link to correct Windows docs in `time.sleep()` doc (GH-141248) (#141252)

gh-141246: Link to correct Windows docs in `time.sleep()` doc (GH-141248)
(cherry picked from commit 6545a4e8f83c27996fc771ed7c8c96ae0ce8d2e0)

Co-authored-by: 莯凛 <1348292515@qq.com>
2 weeks ago[3.13] gh-141004: correctly document `Py_HASH_*` and `PyHASH_*` as `hash_info` attrib...
Miss Islington (bot) [Sat, 8 Nov 2025 12:29:55 +0000 (13:29 +0100)] 
[3.13] gh-141004: correctly document `Py_HASH_*` and `PyHASH_*` as `hash_info` attributes (GH-141233) (#141235)

gh-141004: correctly document `Py_HASH_*` and `PyHASH_*` as `hash_info` attributes (GH-141233)
(cherry picked from commit 87942d911b8bc9e83caee3c0b699f0b0ba15daa9)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2 weeks ago[3.13] gh-140615: Update docstrings in the fcntl module (GH-140619) (GH-141231) ...
Serhiy Storchaka [Sat, 8 Nov 2025 11:50:17 +0000 (13:50 +0200)] 
[3.13] gh-140615: Update docstrings in the fcntl module (GH-140619) (GH-141231) (GH-141232)

* Refer to bytes objects or bytes-like objects instead of strings.
* Remove backticks -- they do not have effect on formatting.
* Re-wrap lines to ensure the pydoc output fits in 80 columns.
(cherry picked from commit 610377056bad696915d70590429e68002bee9006)
(cherry picked from commit 1a080199aff6d98b476ab19e409d7ca4d56cb3c6)

2 weeks ago[3.13] gh-140793: Improve documentatation and tests for the ensure_ascii option in...
Miss Islington (bot) [Sat, 8 Nov 2025 10:30:15 +0000 (11:30 +0100)] 
[3.13] gh-140793: Improve documentatation and tests for the ensure_ascii option in the json module (GH-140906) (GH-141228)

* Document that ensure_ascii=True forces escaping not only non-ASCII, but also
  non-printable characters (the only affected ASCII character is U+007F).
* Ensure that the help output for the json module does not exceed 80
  columns (except one long line in an example and generated lines).
* Add more tests.
(cherry picked from commit 7e90bac3cc6fd68fe6696ab4bce1262751de7531)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.13] gh-139741: Make `dist-pdf` docs archive build work for macOS (GH-140837) ...
Miss Islington (bot) [Sat, 8 Nov 2025 10:26:51 +0000 (11:26 +0100)] 
[3.13] gh-139741: Make `dist-pdf` docs archive build work for macOS (GH-140837) (#141230)

Co-authored-by: Naitree Zhu <Naitreey@gmail.com>
2 weeks ago[3.13] gh-141004: Document `Py_HASH_*` macros (GH-141205) (#141224)
Miss Islington (bot) [Sat, 8 Nov 2025 09:22:02 +0000 (10:22 +0100)] 
[3.13] gh-141004: Document `Py_HASH_*` macros (GH-141205) (#141224)

* gh-141004: Document `Py_HASH_*` macros (GH-141205)

(cherry picked from commit 3989e12d39bfe2587e5ba80873c37e0c2d449088)
(cherry picked from commit 8cec3d3a9d827aadc7008ab4312121fcf28329c6)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2 weeks ago[3.13] gh-140826: Update winreg's docstring (GH-141050) (GH-141200) (GH-141209)
Miss Islington (bot) [Fri, 7 Nov 2025 19:01:27 +0000 (20:01 +0100)] 
[3.13] gh-140826: Update winreg's docstring (GH-141050) (GH-141200) (GH-141209)

(cherry picked from commit bea0d3d12bcd122d8498b92cdd6c724822fd6505)
(cherry picked from commit b3377c3b417cb3b3162623eeba740cb366df35d5)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: AN Long <aisk@users.noreply.github.com>
2 weeks ago[3.13] gh-141004: Document `PyTraceBack*` APIs (GH-141192) (GH-141211)
Miss Islington (bot) [Fri, 7 Nov 2025 18:53:05 +0000 (19:53 +0100)] 
[3.13] gh-141004: Document `PyTraceBack*` APIs (GH-141192) (GH-141211)

gh-141004: Document `PyTraceBack*` APIs (GH-141192)
(cherry picked from commit d13ee0ae186f4704f3b6016dd52f7727b81f9194)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-141004: Document `PyErr_WarnExplicitFormat` (GH-141187) (GH-141203)
Miss Islington (bot) [Fri, 7 Nov 2025 16:25:58 +0000 (17:25 +0100)] 
[3.13] gh-141004: Document `PyErr_WarnExplicitFormat` (GH-141187) (GH-141203)

gh-141004: Document `PyErr_WarnExplicitFormat` (GH-141187)
(cherry picked from commit 9420795b47ac88f31315a8d1041e2c66c2cd9a8b)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 weeks ago[3.13] gh-141004: Document `PyCapsule_Type` (GH-141079) (GH-141198)
Miss Islington (bot) [Fri, 7 Nov 2025 14:16:14 +0000 (15:16 +0100)] 
[3.13] gh-141004: Document `PyCapsule_Type` (GH-141079) (GH-141198)

gh-141004: Document `PyCapsule_Type` (GH-141079)
(cherry picked from commit 7af9b5354dd7633df422b9f720633989b3090199)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 weeks ago[3.13] gh-139246: zero-width word paste can be wrong in default repl (GH-139254)...
Stan Ulbrych [Fri, 7 Nov 2025 12:51:03 +0000 (12:51 +0000)] 
[3.13] gh-139246: zero-width word paste can be wrong in default repl (GH-139254) (GH-141166)

(cherry picked from commit 4e6dba0ef74523a52f66547c16b9972664b18fd4)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: yihong <zouzou0208@gmail.com>
Co-authored-by: grayjk <grayjk@gmail.com>
2 weeks ago[3.13] gh-141141: Make base64.b85decode() thread safe (GH-141149) (GH-141185)
Miss Islington (bot) [Fri, 7 Nov 2025 11:10:21 +0000 (12:10 +0100)] 
[3.13] gh-141141: Make base64.b85decode() thread safe (GH-141149) (GH-141185)

(cherry picked from commit a7bf27f7f521384a8964718bdb58a5cb113bb3ec)

Co-authored-by: Benel Tayar <86257734+beneltayar@users.noreply.github.com>
2 weeks ago[3.13] gh-140734: fix off-by-one error when comparing to `_SUN_PATH_MAX` (GH-140903...
Miss Islington (bot) [Fri, 7 Nov 2025 10:18:06 +0000 (11:18 +0100)] 
[3.13] gh-140734: fix off-by-one error when comparing to `_SUN_PATH_MAX` (GH-140903) (#141182)

gh-140734: fix off-by-one error when comparing to `_SUN_PATH_MAX` (GH-140903)

The limit includes a NULL terminator.
(cherry picked from commit 9a199006733dae999f96c0f596c2035f4b9847b2)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2 weeks ago[3.13] Minor documentation improvements (GH-140626) (#141161)
Rodrigo Girão Serrão [Thu, 6 Nov 2025 17:37:31 +0000 (17:37 +0000)] 
[3.13] Minor documentation improvements (GH-140626) (#141161)

2 weeks ago[3.13] gh-141004: Document `Py_GetRecursionLimit` and `Py_SetRecursionLimit` (GH...
Miss Islington (bot) [Thu, 6 Nov 2025 17:00:03 +0000 (18:00 +0100)] 
[3.13] gh-141004: Document `Py_GetRecursionLimit` and `Py_SetRecursionLimit` (GH-141151) (GH-141157)

* gh-141004: Document `Py_GetRecursionLimit` and `Py_SetRecursionLimit` (GH-141151)
(cherry picked from commit 0b260305d302eace7d59931ca582a1953d894018)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
---------

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-140939: Fix memory leak in `_PyBytes_FormatEx` error path (GH-140957) ...
Stan Ulbrych [Thu, 6 Nov 2025 16:16:43 +0000 (16:16 +0000)] 
[3.13] gh-140939: Fix memory leak in `_PyBytes_FormatEx` error path (GH-140957) (#141155)

(cherry picked from commit d6c89a2df2c8b7603125883494e9058a88348f66)

2 weeks ago[3.13] gh-141004: Document `PyLong_FromPid` and `PyLong_AsPid` (GH-141028) (GH-141143)
Peter Bierma [Thu, 6 Nov 2025 14:10:24 +0000 (09:10 -0500)] 
[3.13] gh-141004: Document `PyLong_FromPid` and `PyLong_AsPid` (GH-141028) (GH-141143)

* gh-141004: Document `PyLong_FromPid` and `PyLong_AsPid` (GH-141028)

Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit bcc524f82d8548707046ce90f5bc56f60018767a)

2 weeks ago[3.13] gh-141004: Document `Py_hexdigits` (GH-141059) (GH-141139)
Miss Islington (bot) [Thu, 6 Nov 2025 13:56:14 +0000 (05:56 -0800)] 
[3.13] gh-141004: Document `Py_hexdigits` (GH-141059) (GH-141139)

gh-141004: Document `Py_hexdigits` (GH-141059)
(cherry picked from commit 54110e20e0ed0584e159c42d9f57516c1a3b997a)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.13] gh-141004: Document built-in iterator types in the C API (GH-141006) (GH-141135)
Miss Islington (bot) [Thu, 6 Nov 2025 12:35:31 +0000 (04:35 -0800)] 
[3.13] gh-141004: Document built-in iterator types in the C API (GH-141006) (GH-141135)

gh-141004: Document built-in iterator types in the C API (GH-141006)

Adds documentation for each of the following:

- PyEnum_Type
- PyFilter_Type
- PyMap_Type
- PyReversed_Type
- PyZip_Type

In addition, PyRange_Type and PyRange_Check are also documented.
(cherry picked from commit 1697cb5710f526d38816bb00ca3dcd4434e5e773)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 weeks ago[3.13] gh-125346: Add more base64 tests (GH-141061) (GH-141130) (GH-141133)
Miss Islington (bot) [Thu, 6 Nov 2025 12:32:42 +0000 (04:32 -0800)] 
[3.13] gh-125346: Add more base64 tests (GH-141061) (GH-141130) (GH-141133)

(cherry picked from commit fd17ee026fa9b67f6288cbafe374a3e479fe03a5)

Add more tests for the altchars argument of b64decode() and for the map01
argument of b32decode().
(cherry picked from commit 13360efd385d1a7d0659beba03787ea3d063ef9b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.13] Minor fixes to `idle.rst` and regenerate `help.html` (GH-140037) (#141122)
Miss Islington (bot) [Thu, 6 Nov 2025 12:11:50 +0000 (04:11 -0800)] 
[3.13] Minor fixes to `idle.rst` and regenerate `help.html` (GH-140037) (#141122)

Minor fixes to `idle.rst` and regenerate `help.html` (GH-140037)
(cherry picked from commit 4e6e208be9d1c52d1b55a8bb3a83682cb078e55e)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-129876: Move misplaced IDLE news item (GH-141118) (#141120)
Miss Islington (bot) [Thu, 6 Nov 2025 08:34:15 +0000 (00:34 -0800)] 
[3.13] gh-129876: Move misplaced IDLE news item (GH-141118) (#141120)

gh-129876: Move misplaced IDLE news item (GH-141118)
(cherry picked from commit 6a7c969d003d3ba932d5c7f14a58e2a6408f4a3d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 weeks ago[3.13] gh-140569: recommend the new REPL in the asyncio REPL docs (GH-140570) (#141116)
Miss Islington (bot) [Thu, 6 Nov 2025 05:45:18 +0000 (21:45 -0800)] 
[3.13] gh-140569: recommend the new REPL in the asyncio REPL docs (GH-140570) (#141116)

gh-140569: recommend the new REPL in the asyncio REPL docs (GH-140570)
(cherry picked from commit 8822166200ddb4a7635337b97b626e658a443cef)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2 weeks ago[3.13] gh-118516: clarify that subprocess are automatically killed if transport gets...
Miss Islington (bot) [Thu, 6 Nov 2025 05:05:01 +0000 (21:05 -0800)] 
[3.13] gh-118516: clarify that subprocess are automatically killed if transport gets garbage collected (GH-140997) (#141111)

gh-118516: clarify that subprocess are automatically killed if transport gets garbage collected (GH-140997)
(cherry picked from commit 101c9c0a2187940900f684086cb9ba0d456fda49)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
3 weeks ago[3.13] GH-108009: Add clarification of parser and argument defaults in argparse docs...
Miss Islington (bot) [Wed, 5 Nov 2025 22:52:43 +0000 (23:52 +0100)] 
[3.13] GH-108009: Add clarification of parser and argument defaults in argparse docs (GH-124154) (#141085)

GH-108009: Add clarification of parser and argument defaults in argparse docs (GH-124154)
(cherry picked from commit 95f6e1275b1c9de550d978cb2b4351cc4ed24fe4)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
3 weeks ago[3.13] gh-141004: Document `PyDict_GET_SIZE` (GH-141078) (GH-141083)
Miss Islington (bot) [Wed, 5 Nov 2025 22:41:16 +0000 (23:41 +0100)] 
[3.13] gh-141004: Document `PyDict_GET_SIZE` (GH-141078) (GH-141083)

gh-141004: Document `PyDict_GET_SIZE` (GH-141078)
(cherry picked from commit f0ab07f22c5fd18058a3ece7a1e745b3922af908)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
3 weeks ago[3.13] gh-76007: remove curses.__version__ doc (GH-141052) (#141077)
Miss Islington (bot) [Wed, 5 Nov 2025 22:07:32 +0000 (23:07 +0100)] 
[3.13] gh-76007: remove curses.__version__ doc (GH-141052) (#141077)

Co-authored-by: Zenith <me@arielle.codes>
3 weeks ago[3.13] gh-141004: Document `Py_RETURN_NAN` and `Py_RETURN_INF` (GH-141029) (GH-141075)
Miss Islington (bot) [Wed, 5 Nov 2025 22:06:41 +0000 (23:06 +0100)] 
[3.13] gh-141004: Document `Py_RETURN_NAN` and `Py_RETURN_INF` (GH-141029) (GH-141075)

gh-141004: Document `Py_RETURN_NAN` and `Py_RETURN_INF` (GH-141029)
(cherry picked from commit 5b02c6e920aaef4b202fc19186f742d008460fd3)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
3 weeks ago[3.13] Docs: replace an esoteric Von Neumann mention (GH-137598) (#140371)
Miss Islington (bot) [Wed, 5 Nov 2025 21:40:56 +0000 (22:40 +0100)] 
[3.13] Docs: replace an esoteric Von Neumann mention (GH-137598) (#140371)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
3 weeks ago[3.13] Fix a compiler warning in _randommodule.c (GH-141058) (#141064)
Miss Islington (bot) [Wed, 5 Nov 2025 19:08:41 +0000 (20:08 +0100)] 
[3.13] Fix a compiler warning in _randommodule.c (GH-141058) (#141064)

Fix a compiler warning in _randommodule.c (GH-141058)

The test just before the cast ensures that the cast cannot overflow.

Fix the warning on 32-bit Windows:

    Modules\_randommodule.c(525,28): warning C4244: '=': conversion
    from 'uint64_t' to 'Py_ssize_t', possible loss of data
(cherry picked from commit 4ac16dd10950fad2d3e58e8b0ba5f2e621af3cc1)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 weeks ago[3.13] gh-139313: Improve docs on XML security (GH-139460) (GH-141066)
Miss Islington (bot) [Wed, 5 Nov 2025 19:06:37 +0000 (20:06 +0100)] 
[3.13] gh-139313: Improve docs on XML security (GH-139460) (GH-141066)

Clarify that:
- it takes parsing for an attack
- that some doors are closed by default
- only Expat version 2.7.2 has all the fixes
- use of the bundle depends on configuration
(cherry picked from commit baa9f338971c6a13433a8232db77cd45e6b87b77)

Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
3 weeks ago[3.13] Docs: Fix cached calls count in factorial example (gh-140882) (gh-141032)
Miss Islington (bot) [Wed, 5 Nov 2025 18:15:05 +0000 (19:15 +0100)] 
[3.13] Docs: Fix cached calls count in factorial example (gh-140882) (gh-141032)

Co-authored-by: Clifford Gama <cliffygamy@gmail.com>
3 weeks ago[3.13] gh-140815: Fix faulthandler for invalid/freed frame (#140921) (#140985)
Victor Stinner [Wed, 5 Nov 2025 17:39:28 +0000 (18:39 +0100)] 
[3.13] gh-140815: Fix faulthandler for invalid/freed frame (#140921) (#140985)

gh-140815: Fix faulthandler for invalid/freed frame (#140921)

faulthandler now detects if a frame or a code object is invalid or
freed.

Add helper functions:

* _PyCode_SafeAddr2Line()
* _PyFrame_SafeGetCode()
* _PyFrame_SafeGetLasti()

_PyMem_IsPtrFreed() now detects pointers in [-0xff, 0xff] range
as freed.

(cherry picked from commit a84181c31bfc45a1d6bcb1296bd298ad612c54d0)

3 weeks ago[3.13] gh-141004: Document `PyMemoryView_Type` (GH-141034) (GH-141055)
Miss Islington (bot) [Wed, 5 Nov 2025 16:51:31 +0000 (17:51 +0100)] 
[3.13] gh-141004: Document `PyMemoryView_Type` (GH-141034) (GH-141055)

gh-141004: Document `PyMemoryView_Type` (GH-141034)
(cherry picked from commit 3f6aca1be49f96c5c5f52040b8e78c73c79c0a86)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
3 weeks ago[3.13] gh-138772: Add tests for Turtle.dot() signature (GH-138773) (#140992)
Jan-Eric Nitschke [Wed, 5 Nov 2025 15:24:46 +0000 (16:24 +0100)] 
[3.13] gh-138772: Add tests for Turtle.dot() signature (GH-138773) (#140992)

Co-authored-by: Jan-Eric Nitschke <47750513+JanEricNitschke@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
3 weeks ago[3.13] gh-141004: Document missing iterator types in the C API (GH-141010) (GH-141047)
Miss Islington (bot) [Wed, 5 Nov 2025 14:22:32 +0000 (15:22 +0100)] 
[3.13] gh-141004: Document missing iterator types in the C API (GH-141010) (GH-141047)

gh-141004: Document missing iterator types in the C API (GH-141010)

Add documentation for each of the following:

- PyByteArrayIter_Type
- PyBytesIter_Type
- PyListIter_Type
- PyListRevIter_Type
- PySetIter_Type
- PyTupleIter_Type
- PyRangeIter_Type
- PyLongRangeIter_Type
- PyDictIterKey_Type
- PyDictRevIterKey_Type
- PyDictIterValue_Type
- PyDictRevIterValue_Type
- PyDictIterItem_Type
- PyDictRevIterItem_Type

---------
(cherry picked from commit 35528fccdcaa0890e959eb7884332d1a426819ac)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>