]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
13 days 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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)

2 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>
2 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>
2 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>
2 weeks ago[3.13] Omit `Python/perf_jit_trampoline.c` from the `**/*jit*` CODEOWNERS rule (GH...
Hugo van Kemenade [Wed, 5 Nov 2025 12:24:12 +0000 (14:24 +0200)] 
[3.13] Omit `Python/perf_jit_trampoline.c` from the `**/*jit*` CODEOWNERS rule (GH-136519) (#140988)

Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
2 weeks ago[3.13] gh-141004: Document `Py_UNICODE_{HIGH, LOW}_SURROGATE` functions (GH-141019...
Miss Islington (bot) [Tue, 4 Nov 2025 21:24:52 +0000 (22:24 +0100)] 
[3.13] gh-141004: Document `Py_UNICODE_{HIGH, LOW}_SURROGATE` functions (GH-141019) (GH-141026)

gh-141004: Document `Py_UNICODE_{HIGH, LOW}_SURROGATE` functions (GH-141019)
(cherry picked from commit bfe54810c408ff066591d1af0411b1d9c10084b1)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.13] gh-139434: Update selected RFC 2822 references to RFC 5322 (GH-139435) (#141024)
Filip Łajszczak [Tue, 4 Nov 2025 21:22:31 +0000 (22:22 +0100)] 
[3.13] gh-139434: Update selected RFC 2822 references to RFC 5322 (GH-139435) (#141024)

Update selected RFC 2822 references to RFC 5322

RFC 2822 was obsoleted by RFC 5322 in 2008. This updates references
to use the current standard in documentation, docstrings, and comments.

It preserves RFC 2822 references in legacy API components to maintain their
historical context.

RFC 822 → RFC 2822 → RFC 5322 progression is explained where relevant.

In some places specific sections of RFC are referenced where it seems helpful.

Scout rule was applied in some places and RFC mentions format was
normalized in doc strings and comments.
(cherry picked from commit ce1bb85d286130f44b7e874430b0b12990d61dc1)

2 weeks ago[3.13] Docs: Fix typo in `email.headerregistry.rst` (GH-140965) (#141021)
Miss Islington (bot) [Tue, 4 Nov 2025 19:35:14 +0000 (20:35 +0100)] 
[3.13] Docs: Fix typo in `email.headerregistry.rst` (GH-140965) (#141021)

Docs: Fix typo in `email.headerregistry.rst` (GH-140965)

Fix missing 'Header' suffix on header class name in `email.headerregistry.rst`
(cherry picked from commit 97d8dda980fcddf88b782be343118257f483a864)

Co-authored-by: Guo Ci <zguoci@gmail.com>
2 weeks ago[3.13] gh-134817: Restore accidentally deleted line in documentation. (GH-141013...
Miss Islington (bot) [Tue, 4 Nov 2025 18:57:32 +0000 (19:57 +0100)] 
[3.13] gh-134817: Restore accidentally deleted line in documentation. (GH-141013) (GH-141017)

(cherry picked from commit 66c86c6)

3 weeks ago[3.13] Document that returning `sys.monitoring.DISABLE` in response to a global event...
Miss Islington (bot) [Tue, 4 Nov 2025 18:36:40 +0000 (19:36 +0100)] 
[3.13] Document that returning `sys.monitoring.DISABLE` in response to a global event raises `ValueError` (GH-140726) (GH-141015)

Document that returning `sys.monitoring.DISABLE` in response to a global event raises `ValueError` (GH-140726)
(cherry picked from commit 8a7dbb7a68b5da1f3f1805f564c028f1eea4ebc3)

Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 weeks ago[3.13] gh-139590: Stricter `ruff` rules for `Tools/wasm` (GH-139752) (#140986)
Hugo van Kemenade [Tue, 4 Nov 2025 18:17:57 +0000 (20:17 +0200)] 
[3.13] gh-139590: Stricter `ruff` rules for `Tools/wasm` (GH-139752) (#140986)

Co-authored-by: sobolevn <mail@sobolevn.me>
3 weeks ago[3.13] gh-140826 Remove the wrong documents about comparison behavior on winreg.HKEYT...
Miss Islington (bot) [Tue, 4 Nov 2025 16:36:46 +0000 (17:36 +0100)] 
[3.13] gh-140826 Remove the wrong documents about comparison behavior on winreg.HKEYType (GH-140999) (GH-141003)

(cherry picked from commit c3f9702f04f64f9cf9848b9a51a4aead4a612fa1)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
3 weeks ago[3.13] gh-140979: Fix off-by-one error in the RE code validator (GH-140984) (GH-141000)
Miss Islington (bot) [Tue, 4 Nov 2025 16:16:40 +0000 (17:16 +0100)] 
[3.13] gh-140979: Fix off-by-one error in the RE code validator (GH-140984) (GH-141000)

It was too lenient and allowed MARK opcodes with too large value.
(cherry picked from commit 1326d2a808245e5f2de9e515460bab30556e8f05)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 weeks ago[3.13] Fix minor typo: 'web site' -> 'website' (GH-140561) (GH-140977)
Miss Islington (bot) [Tue, 4 Nov 2025 13:11:15 +0000 (14:11 +0100)] 
[3.13] Fix minor typo: 'web site' -> 'website' (GH-140561) (GH-140977)

(cherry picked from commit 08115d241a724a4769599993f654f77abcdebf5a)

Co-authored-by: commitWithTisha <tishaa1010@gmail.com>
3 weeks ago[3.13] gh-140797: Forbid capturing groups in re.Scanner lexicon patterns (GH-140944...
Miss Islington (bot) [Tue, 4 Nov 2025 11:17:29 +0000 (12:17 +0100)] 
[3.13] gh-140797: Forbid capturing groups in re.Scanner lexicon patterns (GH-140944) (GH-140983)

(cherry picked from commit fa9c3eefd475f0647a69bf3f49db8100848fb6a9)

Co-authored-by: Abhishek Tiwari <Abhi210@users.noreply.github.com>
3 weeks ago[3.13] Docs: Fix a typo in `idle.rst` (Chitespace -> Whitespace) (GH-140946) (#140954)
Miss Islington (bot) [Tue, 4 Nov 2025 08:02:17 +0000 (09:02 +0100)] 
[3.13] Docs: Fix a typo in `idle.rst` (Chitespace -> Whitespace) (GH-140946) (#140954)

Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>
3 weeks ago[3.13] Fix minor typos and wording in C API docs (GH-140955) (#140967)
Hugo van Kemenade [Tue, 4 Nov 2025 07:46:18 +0000 (09:46 +0200)] 
[3.13] Fix minor typos and wording in C API docs (GH-140955) (#140967)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
3 weeks ago[3.13] gh-135307: Fix email error when policy max_line_length is set to 0 or None...
Jiucheng(Oliver) [Sun, 2 Nov 2025 20:20:29 +0000 (15:20 -0500)] 
[3.13] gh-135307: Fix email error when policy max_line_length is set to 0 or None (GH-135367) (#140917)

[3.13] gh-135307: Fix email error when policy max_line_length is set to 0 or None (GH-135367)
(cherry picked from commit 6d45cd8dbb07ae020ec07f2c3375dd06e52377f6)

Co-authored-by: Jiucheng(Oliver) <git.jiucheng@gmail.com>
RDM: Like the change made in a earlier PR to the folder, we can/must use 'maxlen' as a stand in for 'unlimited' when computing line lengths when max_line_length is 0 or None; otherwise the computation results in a traceback.

3 weeks ago[3.13] Docs: avoid informal formulation in `Doc/c-api/conversion.rst` (GH-140898...
Miss Islington (bot) [Sun, 2 Nov 2025 13:57:03 +0000 (14:57 +0100)] 
[3.13] Docs: avoid informal formulation in `Doc/c-api/conversion.rst` (GH-140898) (#140913)

Docs: avoid informal formulation in `Doc/c-api/conversion.rst` (GH-140898)
(cherry picked from commit 173cc53d9fdc596d7a19102fa407c829f9c71516)

Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
3 weeks ago[3.13] gh-90949: add Expat API to prevent XML deadly allocations (CVE-2025-59375...
Sebastian Pipping [Sun, 2 Nov 2025 12:39:11 +0000 (13:39 +0100)] 
[3.13] gh-90949: add Expat API to prevent XML deadly allocations (CVE-2025-59375) (GH-139234) (#139367)

* gh-90949: add Expat API to prevent XML deadly allocations (CVE-2025-59375) (#139234)

Expose the XML Expat 2.7.2 mitigation APIs to disallow use of
disproportional amounts of dynamic memory from within an Expat
parser (see CVE-2025-59375 for instance).

The exposed APIs are available on Expat parsers, that is,
parsers created by `xml.parsers.expat.ParserCreate()`, as:

- `parser.SetAllocTrackerActivationThreshold(threshold)`, and
- `parser.SetAllocTrackerMaximumAmplification(max_factor)`.

(cherry picked from commit f04bea44c37793561d753dd4ca6e7cd658137553)
(cherry picked from commit 68a1778b7721f3fb853cd3aa674f7039c2a4df36)

3 weeks ago[3.13] Docs: fix some grammatical errors in `Doc/c-api/dict.rst` (GH-140899) (#140902)
Miss Islington (bot) [Sun, 2 Nov 2025 08:39:12 +0000 (09:39 +0100)] 
[3.13] Docs: fix some grammatical errors in `Doc/c-api/dict.rst` (GH-140899) (#140902)

Docs: fix some grammatical errors in `Doc/c-api/dict.rst` (GH-140899)
(cherry picked from commit d12cbf2865d2845d238f697ddace83face814972)

Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
3 weeks ago[3.13] gh-140874: Upgrade bundled pip to 25.3 (GH-140876) (gh-140880)
Miss Islington (bot) [Sat, 1 Nov 2025 12:42:15 +0000 (13:42 +0100)] 
[3.13] gh-140874: Upgrade bundled pip to 25.3 (GH-140876) (gh-140880)

* gh-140874: Upgrade bundled pip to 25.3 (GH-140876)

Upgrade bundled pip to 25.3
(cherry picked from commit d440a0f96c6e87ee93810e0184068e90087af466)

Co-authored-by: Damian Shaw <damian.peter.shaw@gmail.com>
* Update Misc/NEWS.d/next/Library/2025-11-01-00-36-14.gh-issue-140874.eAWt3K.rst

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

Co-authored-by: Damian Shaw <damian.peter.shaw@gmail.com>
Co-authored-by: Paul Moore <p.f.moore@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 weeks ago[3.13] gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952) (GH...
Łukasz Langa [Fri, 31 Oct 2025 16:58:09 +0000 (17:58 +0100)] 
[3.13] gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952) (GH-140845)

(cherry picked from commit f029e8db626ddc6e3a3beea4eff511a71aaceb5c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 weeks ago[3.13] Fix the versionchanged directive for gh-137836 (GH-140859)
Serhiy Storchaka [Fri, 31 Oct 2025 16:55:54 +0000 (18:55 +0200)] 
[3.13] Fix the versionchanged directive for gh-137836 (GH-140859)

3 weeks ago[3.13] gh-137836: Support more RAWTEXT and PLAINTEXT elements in HTMLParser (GH-13783...
Miss Islington (bot) [Fri, 31 Oct 2025 16:08:42 +0000 (17:08 +0100)] 
[3.13] gh-137836: Support more RAWTEXT and PLAINTEXT elements in HTMLParser (GH-137837) (GH-140842)

* the "plaintext" element
* the RAWTEXT elements "xmp", "iframe", "noembed" and "noframes"
* optionally RAWTEXT (if scripting=True) element "noscript"
(cherry picked from commit a17c57eee5b5cc81390750d07e4800b19c0c3084)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 weeks ago[3.13] gh-140551: Fix dict crash if clear is called at lookup stage (GH-140558) ...
Mikhail Efimov [Thu, 30 Oct 2025 17:06:49 +0000 (20:06 +0300)] 
[3.13] gh-140551: Fix dict crash if clear is called at lookup stage (GH-140558) (#140744)

* gh-140551: Fix `dict` crash if `clear` is called at `lookup` stage (#140558)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
3 weeks ago[3.13] gh-137821: Fix wrongly tested json.decoder.scanstring (gh-140781)
Donghee Na [Thu, 30 Oct 2025 13:51:10 +0000 (22:51 +0900)] 
[3.13] gh-137821: Fix wrongly tested json.decoder.scanstring (gh-140781)

3 weeks ago[3.13] gh-138162: Fix logging.LoggerAdapter with merge_extra=True and without the...
Miss Islington (bot) [Thu, 30 Oct 2025 11:31:54 +0000 (12:31 +0100)] 
[3.13] gh-138162: Fix logging.LoggerAdapter with merge_extra=True and without the extra argument (GH-140511) (GH-140785)

(cherry picked from commit 327dbbedffa3f2c95e70129a11974b83e27864f9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 weeks ago[3.13] gh-140576: Fixed crash produced by lexer in case of dedented zero byte (GH...
Mikhail Efimov [Wed, 29 Oct 2025 14:33:55 +0000 (17:33 +0300)] 
[3.13] gh-140576: Fixed crash produced by lexer in case of dedented zero byte (GH-140583) (#140762)

3 weeks ago[3.13] gh-140082: Forward colorizing from libregrtest to unittest (GH-140083) (#140755)
Miss Islington (bot) [Wed, 29 Oct 2025 12:55:54 +0000 (13:55 +0100)] 
[3.13] gh-140082: Forward colorizing from libregrtest to unittest (GH-140083) (#140755)

gh-140082: Forward colorizing from libregrtest to unittest (GH-140083)

libregrtest redirects test output to a file as part of its operation.
When `unittest` checks to see if it should colorize with
`isatty(sys.stdout)` that fails resulting in no colorizing of the
unittest output.

Update `libregrtest` to set `FORCE_COLOR=1` when redirecting test output
so that unittest will do color printing.
(cherry picked from commit 6ff62ac4fbc3f17529823c146cc3a3f8c21eed42)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
3 weeks ago[3.13] gh-140702: Log color and GHA env vars in test.pythoninfo (GH-140747) (#140754)
Miss Islington (bot) [Wed, 29 Oct 2025 12:51:18 +0000 (13:51 +0100)] 
[3.13] gh-140702: Log color and GHA env vars in test.pythoninfo (GH-140747) (#140754)

gh-140702: Log color and GHA env vars in test.pythoninfo (GH-140747)
(cherry picked from commit 376559bf54762d7b6e0a14591a1f284c8f09a855)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 weeks ago[3.13] gh-140607: Validate returned byte count in RawIOBase.read (GH-140611) (#140730)
Cody Maloney [Wed, 29 Oct 2025 12:31:57 +0000 (05:31 -0700)] 
[3.13] gh-140607: Validate returned byte count in RawIOBase.read (GH-140611) (#140730)

* [3.13] gh-140607: Validate returned byte count in RawIOBase.read (GH-140611)

While `RawIOBase.readinto` should return a count of bytes between 0 and
the length of the given buffer, it is not required to. Add validation
inside RawIOBase.read() that the returned byte count is valid.
(cherry picked from commit 0f0a362768aecb4c791724cce486d8317533a94d)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Shamil <ashm.tech@proton.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
* fixup: Use older attribute name

---------

Co-authored-by: Shamil <ashm.tech@proton.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
3 weeks ago[3.13] gh-139588: Increase maximum LaTeX list depth (GH-140709) (#140725)
Miss Islington (bot) [Tue, 28 Oct 2025 20:05:32 +0000 (21:05 +0100)] 
[3.13] gh-139588: Increase maximum LaTeX list depth (GH-140709) (#140725)

Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
4 weeks ago[3.13] gh-140657: Don't rerun test_import single phase init test (GH-140712) (#140714)
Miss Islington (bot) [Tue, 28 Oct 2025 17:29:44 +0000 (18:29 +0100)] 
[3.13] gh-140657: Don't rerun test_import single phase init test (GH-140712) (#140714)

gh-140657: Don't rerun test_import single phase init test (GH-140712)

test_basic_multiple_interpreters_main_no_reset() leaks memory:
import_in_subinterp() is called with postcleanup=False.
(cherry picked from commit c6d4c79c9abac5c5cc2e7b429d72946d15c5e132)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 weeks ago[3.13] GH-140590: Fix setstate for functools.partial C-module (GH-140671) (#140699)
Miss Islington (bot) [Tue, 28 Oct 2025 12:44:14 +0000 (13:44 +0100)] 
[3.13] GH-140590: Fix setstate for functools.partial C-module (GH-140671) (#140699)

GH-140590: Fix setstate for functools.partial C-module (GH-140671)

(cherry picked from commit d26686a7f87d63499f7296c0811fa0535637a93b)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
4 weeks ago[3.13] gh-140634: Fix a reference counting bug in os.sched_param.__reduce__() (GH...
Miss Islington (bot) [Mon, 27 Oct 2025 20:05:10 +0000 (21:05 +0100)] 
[3.13] gh-140634: Fix a reference counting bug in os.sched_param.__reduce__() (GH-140667) (GH-140686)

(cherry picked from commit 364ae607d8035db8ba92486ebebd8225446c1a90)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 weeks ago[3.13] gh-140301: Fix memory leak in subinterpreter PyConfig cleanup (GH-140303)...
Shamil [Mon, 27 Oct 2025 19:42:13 +0000 (22:42 +0300)] 
[3.13] gh-140301: Fix memory leak in subinterpreter PyConfig cleanup (GH-140303) (#140684)

[3.13] gh-140301: Fix memory leak in subinterpreter `PyConfig` cleanup (GH-140303)
(cherry picked from commit a615fb49c948902a982c3256899507abcc9f9bc8)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>