]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 weeks ago[3.14] gh-137113 docs: note readline no longer supported in REPL after 3.13 (GH-13714...
Miss Islington (bot) [Wed, 14 Jan 2026 09:55:52 +0000 (10:55 +0100)] 
[3.14] gh-137113 docs: note readline no longer supported in REPL after 3.13 (GH-137142) (GH-143791)

gh-137113 docs: note readline no longer supported in REPL after 3.13 (GH-137142)

Add a note to the readline module documentation stating that
Python 3.13 and later no longer supports readline in the default REPL,
as per gh-118840. Includes workaround using PYTHON_BASIC_REPL.

Update tutorial to remove the reference, and use a different key to
test things out.
(cherry picked from commit 971f387bbb598a481aa8974ddc7a358459030415)

Signed-off-by: Kuang Yu Heng <yuheng3107@gmail.com>
Co-authored-by: Kuang Yu Heng <yuheng3107@gmail.com>
2 weeks ago[3.14] gh-143460: Correct unlimited stack size skip for Emscripten (GH-143765) (...
Miss Islington (bot) [Tue, 13 Jan 2026 22:45:54 +0000 (23:45 +0100)] 
[3.14] gh-143460: Correct unlimited stack size skip for Emscripten (GH-143765) (#143819)

Modifies the test skip for unlimited stack size to add Emscripten to the
exclusion list.
(cherry picked from commit 1857a40807daeae3a1bf5efb682de9c9ae6df845)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2 weeks ago[3.14] gh-141004: Document PyUnicode_IS_COMPACT and PyUnicode_IS_COMPACT_ASCII macros...
Petr Viktorin [Tue, 13 Jan 2026 18:06:23 +0000 (19:06 +0100)] 
[3.14] gh-141004: Document PyUnicode_IS_COMPACT and PyUnicode_IS_COMPACT_ASCII macros (GH-143494) (GH-143785)

(cherry picked from commit 42f7c2dfba58a8a8f31aba727d0fc51dd3ce2fce)

Co-authored-by: Yashraj <yashrajpala8@gmail.com>
2 weeks ago[3.14] Bump GitHub Actions (GH-143757) (#143797)
Hugo van Kemenade [Tue, 13 Jan 2026 15:10:31 +0000 (17:10 +0200)] 
[3.14] Bump GitHub Actions (GH-143757) (#143797)

2 weeks ago[3.14] gh-143728: Keep `TypedDict` and `NamedTuple` in `class` role in docs (GH-14370...
Miss Islington (bot) [Tue, 13 Jan 2026 13:58:10 +0000 (14:58 +0100)] 
[3.14] gh-143728: Keep `TypedDict` and `NamedTuple` in `class` role in docs (GH-143702) (#143799)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
2 weeks ago[3.14] gh-143249: Fix buffer leak when overlapped operation fails to start on windows...
Miss Islington (bot) [Tue, 13 Jan 2026 13:57:54 +0000 (14:57 +0100)] 
[3.14] gh-143249: Fix buffer leak when overlapped operation fails to start on windows (GH-143250) (#143795)

gh-143249: Fix buffer leak when overlapped operation fails to start on windows (GH-143250)
(cherry picked from commit 103a384bfdeafc68ab39ea9bf8838a8b2eec83dd)

Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com>
2 weeks ago[3.14] gh-141004: Don't trigger `run-tests` when `Tools/check-c-api-docs/ignored_c_ap...
Miss Islington (bot) [Tue, 13 Jan 2026 13:53:59 +0000 (14:53 +0100)] 
[3.14] gh-141004: Don't trigger `run-tests` when `Tools/check-c-api-docs/ignored_c_api.txt` is changed (GH-143583) (GH-143793)

gh-141004: Don't trigger `run-tests` when `Tools/check-c-api-docs/ignored_c_api.txt` is changed (GH-143583)
(cherry picked from commit 1176facbf21388ef29276ec55a95a66423f61191)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 weeks ago[3.14] gh-106318: Add examples for str.replace() method (GH-143581) (GH-143789)
Miss Islington (bot) [Tue, 13 Jan 2026 12:22:49 +0000 (13:22 +0100)] 
[3.14] gh-106318: Add examples for str.replace() method (GH-143581) (GH-143789)

(cherry picked from commit af9f783a7e9bfdca94ce5b9619c1b82a32d9e170)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2 weeks ago[3.14] gh-143189: fix insertdict() for non-Unicode key (GH-143285) (#143771)
Inada Naoki [Tue, 13 Jan 2026 09:58:53 +0000 (18:58 +0900)] 
[3.14] gh-143189: fix insertdict() for non-Unicode key (GH-143285) (#143771)

2 weeks ago[3.14] Add example of min-heap and max-heap working together (gh-137251) (#143780)
Miss Islington (bot) [Tue, 13 Jan 2026 09:36:59 +0000 (10:36 +0100)] 
[3.14] Add example of min-heap and max-heap working together (gh-137251) (#143780)

2 weeks ago[3.14] gh-143762 Backport a6bc60d for random combinatoric recipes (#143764)
Raymond Hettinger [Tue, 13 Jan 2026 00:19:57 +0000 (18:19 -0600)] 
[3.14] gh-143762 Backport a6bc60d for random combinatoric recipes (#143764)

2 weeks ago[3.14] gh-143706: Fix sys.argv not set during multiprocessing forkserver `__main__...
Miss Islington (bot) [Tue, 13 Jan 2026 00:13:41 +0000 (01:13 +0100)] 
[3.14] gh-143706: Fix sys.argv not set during multiprocessing forkserver `__main__` preload (GH-143717) (#143763)

gh-143706: Fix sys.argv not set during multiprocessing forkserver `__main__` preload (GH-143717)

The forkserver was not passing sys.argv to its main() function, causing
sys.argv to be empty during `__main__` module import in child processes. This
fixes a non-obvious regression inadvertently introduced by the gh-126631 main
preloading fix.
(cherry picked from commit 298d5440eb83f2dfd5651bac86d1592ec358d54c)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
2 weeks ago[3.14] gh-139707: Copy-strip change to idle.rst into idlelib (GH-143718) (#143744)
Miss Islington (bot) [Mon, 12 Jan 2026 20:34:20 +0000 (21:34 +0100)] 
[3.14] gh-139707: Copy-strip change to idle.rst into idlelib (GH-143718) (#143744)

gh-139707: Copy-strip change to idle.rst into idlelib (GH-143718)

On Windows, running `python -c "from idlelib.help import copy_strip;
copy_strip()"` after idle.html is built results in
`f:\dev\3x\Doc\build\html\library\idle.html
copied to f:\dev\3x\Lib\idlelib\help.html`
This PR commits the html change to idlelib/help.html.
(cherry picked from commit ec254e2b40d70242f7b1724867a4aac4219fdc08)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2 weeks ago[3.14] Minor readability/usability improvement to the recipes section (gh-143753...
Miss Islington (bot) [Mon, 12 Jan 2026 20:18:43 +0000 (21:18 +0100)] 
[3.14] Minor readability/usability improvement to the recipes section (gh-143753) (gh-143755)

2 weeks ago[3.14] gh-143196: Fix crash in non-standard use of internal JSON encoder object ...
Miss Islington (bot) [Mon, 12 Jan 2026 18:50:40 +0000 (19:50 +0100)] 
[3.14] gh-143196: Fix crash in non-standard use of internal JSON encoder object (GH-143618) (GH-143748)

The internal encoder object returned by undocumented function
json.encoder.c_make_encoder() (aka _json.make_encoder()) crashed
when it was called with non-zero second argument.
(cherry picked from commit c559135c931789ebc752ae68814858c398cb798b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.14] gh-142461: Move misplaced NEWS entries to an appropriate section (GH-143411...
Miss Islington (bot) [Mon, 12 Jan 2026 18:20:11 +0000 (19:20 +0100)] 
[3.14] gh-142461: Move misplaced NEWS entries to an appropriate section (GH-143411) (GH-143746)

(cherry picked from commit 3d44f0ab65221d8704d9298712a5114cba3aeea9)

Co-authored-by: Aniket <148300120+Aniketsy@users.noreply.github.com>
2 weeks ago[3.14] gh-142518: Document thread-safety guarantees of list operations (GH-142519...
Miss Islington (bot) [Mon, 12 Jan 2026 16:55:14 +0000 (17:55 +0100)] 
[3.14] gh-142518: Document thread-safety guarantees of list operations (GH-142519) (#143736)

* Add everything to code blocks
* Improve wording around atomicity; specify exact types
* Better explain lock-free and atomicity
(cherry picked from commit 1de46715ec50c7ae0b8e8671287239771c121e68)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
2 weeks ago[3.14] gh-143544: Fix possible use-after-free in the JSON decoder when JSONDecodeErro...
Miss Islington (bot) [Mon, 12 Jan 2026 16:06:24 +0000 (17:06 +0100)] 
[3.14] gh-143544: Fix possible use-after-free in the JSON decoder when JSONDecodeError disappears during raising it (GH-143561) (#143733)

gh-143544: Fix possible use-after-free in the JSON decoder when JSONDecodeError disappears during raising it (GH-143561)
(cherry picked from commit c3157480601499565fd42a8afbdb0207328ac484)

Co-authored-by: VanshAgarwal24036 <148854295+VanshAgarwal24036@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2 weeks ago[3.14] gh-141004: Improve `make check-c-api-docs` (GH-143564) (GH-143593)
Petr Viktorin [Mon, 12 Jan 2026 13:04:39 +0000 (14:04 +0100)] 
[3.14] gh-141004: Improve `make check-c-api-docs` (GH-143564) (GH-143593)

- Gather all documented names into a set in a single pass.
  This makes the check much faster.

- Do not match substrings (e.g. documenting `PyErr_WarnEx`
  doesn't mean that `PyErr_Warn` is documented)

- Consider `PY`-prefixed names (a lot of old macros use this)

(cherry picked from commit 234a15dc4ec2d8f8ababea91532ebe896a96387a)

2 weeks ago[3.14] gh-78724: Raise RuntimeError's when calling methods on non-ready Struct()...
Miss Islington (bot) [Mon, 12 Jan 2026 12:45:07 +0000 (13:45 +0100)] 
[3.14] gh-78724: Raise RuntimeError's when calling methods on non-ready Struct()'s (GH-143643) (GH-143695)

(cherry picked from commit 515ae4078dffa0b74e5e5431462c2f4fe4563ffa)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2 weeks ago[3.14] gh-140806: add docs for `enum.bin` function (GH-140807) (#143726)
Miss Islington (bot) [Mon, 12 Jan 2026 12:01:01 +0000 (13:01 +0100)] 
[3.14] gh-140806: add docs for `enum.bin` function (GH-140807) (#143726)

Co-authored-by: Guo Ci <zguoci@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2 weeks ago[3.14] gh-143578: Restore note about patchlevel.h (GH-143596) (#143725)
Hugo van Kemenade [Mon, 12 Jan 2026 11:49:43 +0000 (13:49 +0200)] 
[3.14] gh-143578: Restore note about patchlevel.h (GH-143596) (#143725)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 weeks ago[3.14] gh-142881: Fix concurrent and reentrant call of atexit.unregister() (GH-142901...
Miss Islington (bot) [Mon, 12 Jan 2026 09:44:12 +0000 (10:44 +0100)] 
[3.14] gh-142881: Fix concurrent and reentrant call of atexit.unregister() (GH-142901) (GH-143721)

(cherry picked from commit dbd10a6c29ba1cfc9348924a090b5dc514470002)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.14] gh-143346: Fix calculation of the line width for wrapped Base64 in plistlib...
Miss Islington (bot) [Mon, 12 Jan 2026 09:08:52 +0000 (10:08 +0100)] 
[3.14] gh-143346: Fix calculation of the line width for wrapped Base64 in plistlib (GH-143347) (GH-143719)

It was incorrect in case of mixed tabs and spaces in indentation.
(cherry picked from commit 5f28aa2f372339ba0c70373b96d33ec4d2879e04)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.14] gh-127750: Fix annotations in singledispatchmethod signature tests (GH-143571...
Miss Islington (bot) [Sun, 11 Jan 2026 19:49:30 +0000 (20:49 +0100)] 
[3.14] gh-127750: Fix annotations in singledispatchmethod signature tests (GH-143571) (GH-143707)

These tests relied on a bug -- gh-84644, which is that singledispatch
doesn't verify the annotation is on the "first" parameter.
(cherry picked from commit 620a5b92693ac1b2cef1f90fd3c2dba1bb794552)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
2 weeks ago[3.14] gh-142972: Document arbitrary ordering in `Path.glob` and `Path.rglob` (GH...
Miss Islington (bot) [Sun, 11 Jan 2026 19:42:10 +0000 (20:42 +0100)] 
[3.14] gh-142972: Document arbitrary ordering in `Path.glob` and `Path.rglob` (GH-143025) (GH-143709)

gh-142972: Document arbitrary ordering in `Path.glob` and `Path.rglob` (GH-143025)
(cherry picked from commit 9d13ca97c1a83ed649a16fb0512b5f1c5f9ad108)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
2 weeks ago[3.14] gh-143420: Clarify sequence behavior for slice indexes (GH-143422) (#143701)
Miss Islington (bot) [Sun, 11 Jan 2026 17:23:51 +0000 (18:23 +0100)] 
[3.14] gh-143420: Clarify sequence behavior for slice indexes (GH-143422) (#143701)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2 weeks ago[3.14] gh-86139: Correct NamedTuple and TypedDict's type in typing.rst (GH-143692...
Miss Islington (bot) [Sun, 11 Jan 2026 15:59:14 +0000 (16:59 +0100)] 
[3.14] gh-86139: Correct NamedTuple and TypedDict's type in typing.rst (GH-143692) (#143696)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 weeks ago[3.14] gh-143638: Forbid cuncurrent use of the Pickler and Unpickler objects in C...
Serhiy Storchaka [Sun, 11 Jan 2026 12:37:00 +0000 (14:37 +0200)] 
[3.14] gh-143638: Forbid cuncurrent use of the Pickler and Unpickler objects in C implementation (GH-143664) (GH-143686)

Previously, this could cause crash or data corruption, now concurrent calls
of methods of the same object raise RuntimeError.
(cherry picked from commit d1282efb2b847bf9274d78c5f15ea00499b2c894)

2 weeks ago[3.14] Remove outdated comment about `excess_args` warning in `object.__init__` ...
Miss Islington (bot) [Sun, 11 Jan 2026 07:52:34 +0000 (08:52 +0100)] 
[3.14] Remove outdated comment about `excess_args` warning in `object.__init__` (GH-143669) (#143680)

Remove outdated comment about `excess_args` warning in `object.__init__` (GH-143669)

The code emitting a warning was removed in 96384b93aae1d1e45dda21c4024d7d083c91626d.
(cherry picked from commit 03e6457096d452859fb4cfd418dc9268c6454c29)

Co-authored-by: Manuel Jacob <me@manueljacob.de>
2 weeks ago[3.14] Sync the batched() example with the grouper() example. (gh-143676) (gh-143678)
Miss Islington (bot) [Sun, 11 Jan 2026 04:19:15 +0000 (05:19 +0100)] 
[3.14] Sync the batched() example with the grouper() example. (gh-143676) (gh-143678)

2 weeks ago[3.14] Add derangements() recipe (gh-143671) (gh-143677)
Miss Islington (bot) [Sun, 11 Jan 2026 04:06:37 +0000 (05:06 +0100)] 
[3.14] Add derangements() recipe (gh-143671) (gh-143677)

2 weeks ago[3.14] Doc: remove duplicate GitHub issue reference in "What's New in Python 3.13...
Miss Islington (bot) [Sat, 10 Jan 2026 13:40:39 +0000 (14:40 +0100)] 
[3.14] Doc: remove duplicate GitHub issue reference in "What's New in Python 3.13" (GH-143654) (#143656)

Doc: remove duplicate GitHub issue reference in "What's New in Python 3.13" (GH-143654)
(cherry picked from commit aa8578dc54df2af9daa3353566359e602e5905cf)

Co-authored-by: emmanuel <emmanuel20232035@gmail.com>
2 weeks ago[3.14] gh-143377: fix crashes in `_interpreters.capture_exception` (GH-143418) (...
Miss Islington (bot) [Sat, 10 Jan 2026 12:05:42 +0000 (13:05 +0100)] 
[3.14] gh-143377: fix crashes in `_interpreters.capture_exception` (GH-143418) (#143652)

gh-143377: fix crashes in `_interpreters.capture_exception` (GH-143418)
(cherry picked from commit ce6bae92da671e31013b00901591ce2b595b61ce)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2 weeks ago[3.14] gh-143641: Make `ready_to_import` always remove tempdir from `sys.path` (GH...
Miss Islington (bot) [Sat, 10 Jan 2026 10:17:10 +0000 (11:17 +0100)] 
[3.14] gh-143641: Make `ready_to_import` always remove tempdir from `sys.path` (GH-143642) (#143647)

gh-143641: Make `ready_to_import` always remove tempdir from `sys.path` (GH-143642)

Make ready_to_import always remove tempdir from sys.path
(cherry picked from commit e7f5ffa0de2476828d78b8d39caefc38d797c206)

Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
2 weeks ago[3.14] gh-141536: Fix a crash when running test_capi *after* test_code in the same...
Miss Islington (bot) [Sat, 10 Jan 2026 06:54:04 +0000 (07:54 +0100)] 
[3.14] gh-141536: Fix a crash when running test_capi *after* test_code in the same process (GH-141537) (#143522)

gh-141536: Fix a crash when running test_capi *after* test_code in the same process (GH-141537)
(cherry picked from commit b2827de18fe88152dc38c1aa76c39b69ef59cb6f)

Co-authored-by: T. Wouters <thomas@python.org>
2 weeks ago[3.14] gh-72239: Add note distinguishing concurrent.futures.Future from asyncio.Futur...
Miss Islington (bot) [Sat, 10 Jan 2026 06:53:21 +0000 (07:53 +0100)] 
[3.14] gh-72239: Add note distinguishing concurrent.futures.Future from asyncio.Future (GH-143288) (#143607)

gh-72239: Add note distinguishing concurrent.futures.Future from asyncio.Future (GH-143288)
(cherry picked from commit a9ca49d9c699ce4040f1391d9054d88b4098466b)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
2 weeks ago[3.14] gh-142829: Fix use-after-free in `Context.__eq__` via re-entrant `ContextVar...
Miss Islington (bot) [Sat, 10 Jan 2026 06:51:37 +0000 (07:51 +0100)] 
[3.14] gh-142829: Fix use-after-free in `Context.__eq__` via re-entrant `ContextVar.set` (GH-142905) (#143627)

gh-142829: Fix use-after-free in `Context.__eq__` via re-entrant `ContextVar.set` (GH-142905)
(cherry picked from commit a4086d7f89e5d388e4ffcdb13e4fba0255234286)

Co-authored-by: A.Ibrahim <abdulrasheedibrahim47@gmail.com>
2 weeks ago[3.14] Fix dunder name typo in compiler code comment (GH-143374) (#143386)
Miss Islington (bot) [Sat, 10 Jan 2026 06:51:09 +0000 (07:51 +0100)] 
[3.14] Fix dunder name typo in compiler code comment (GH-143374) (#143386)

Fix dunder name typo in compiler code comment (GH-143374)
(cherry picked from commit 6d05e55de0f9c0b07fb14b4d2b9cf9c8eee2042c)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
2 weeks ago[3.14] gh-143006: Fix and optimize mixed comparison of float and int (GH-143084)...
Miss Islington (bot) [Fri, 9 Jan 2026 17:32:23 +0000 (18:32 +0100)] 
[3.14] gh-143006: Fix and optimize mixed comparison of float and int (GH-143084) (GH-143623)

When comparing negative non-integer float and int with the same number
of bits in the integer part, __neg__() in the int subclass returning
not an int caused an assertion error.

Now the integer is no longer negated. Also, reduced the number of
temporary created Python objects.
(cherry picked from commit 66bca383bd3b12d21e879d991d77b37a4c638f88)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.14] gh-143460: Skip infinite recusion tests for infinite stack size (GH-143606...
Miss Islington (bot) [Fri, 9 Jan 2026 16:54:49 +0000 (17:54 +0100)] 
[3.14] gh-143460: Skip infinite recusion tests for infinite stack size (GH-143606) (#143619)

gh-143460: Skip infinite recusion tests for infinite stack size (GH-143606)

Avoid tests being killed due to OOM on Linux if a system is configured with
'ulimit -s unlimited' by skipping tests relying on infinite recursion.

While unclear if Python should support 'ulimit -s unlimited', we should at
least try to avoid failing a PGO build running tests due to an unlimited
stack size being set.
(cherry picked from commit 61e036691c8ac70facb8d3fc39c670bde56218e8)

Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
Co-authored-by: Jan André Reuter <jan.andre.reuter@hotmail.de>
2 weeks ago[3.14] gh-143191: Use _PyOS_MIN_STACK_SIZE in _thread.stack_size() (GH-143601) (...
Miss Islington (bot) [Fri, 9 Jan 2026 15:34:39 +0000 (16:34 +0100)] 
[3.14] gh-143191: Use _PyOS_MIN_STACK_SIZE in _thread.stack_size() (GH-143601) (#143611)

gh-143191: Use _PyOS_MIN_STACK_SIZE in _thread.stack_size() (GH-143601)

The stack size must be at least _PyOS_MIN_STACK_SIZE+SYSTEM_PAGE_SIZE
bytes.
(cherry picked from commit ba10100c3931b18812b82d7124e2238f01927910)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.14] gh-106318: Add examples for str.rfind() method (GH-143582) (#143616)
Miss Islington (bot) [Fri, 9 Jan 2026 15:30:11 +0000 (16:30 +0100)] 
[3.14] gh-106318: Add examples for str.rfind() method (GH-143582) (#143616)

gh-106318: Add examples for str.rfind() method (GH-143582)
(cherry picked from commit c696f33d9ee425d7acd5de90d5418a3280444962)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2 weeks ago[3.14] gh-106318: Improve str.removeprefix() and str.removesuffix() docs (GH-143580...
Miss Islington (bot) [Fri, 9 Jan 2026 15:28:36 +0000 (16:28 +0100)] 
[3.14] gh-106318: Improve str.removeprefix() and str.removesuffix() docs (GH-143580) (#143614)

gh-106318: Improve str.removeprefix() and str.removesuffix() docs (GH-143580)

Add doctest role and 'See also'.
(cherry picked from commit 6d6c7ed73786915d16f6ac3d8b6e6d67f404209f)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2 weeks ago[3.14] gh-143547: Fix PyErr_FormatUnraisable() fallback (#143557) (#143603)
Victor Stinner [Fri, 9 Jan 2026 15:10:50 +0000 (16:10 +0100)] 
[3.14] gh-143547: Fix PyErr_FormatUnraisable() fallback (#143557) (#143603)

gh-143547: Fix PyErr_FormatUnraisable() fallback (#143557)

Hold a strong reference to 'hook' while calling the default
unraisable took to log hook failure.

(cherry picked from commit 39a2bcf949095bd603f7b73f15b5b478dbb49ba9)

2 weeks ago[3.14] gh-143378: Fix use-after-free when BytesIO is concurrently mutated during...
Miss Islington (bot) [Fri, 9 Jan 2026 12:16:51 +0000 (13:16 +0100)] 
[3.14] gh-143378: Fix use-after-free when BytesIO is concurrently mutated during write operations (GH-143408) (GH-143599)

PyObject_GetBuffer() can execute user code (e.g. via __buffer__), which may
close or otherwise mutate a BytesIO object while write() or writelines()
is in progress. This could invalidate the internal buffer and lead to a
use-after-free.

Ensure that PyObject_GetBuffer() is called before validation checks.
(cherry picked from commit 6d54b6ac7d5744e1f59d784c8e020d632d2959a3)

Co-authored-by: zhong <60600792+superboy-zjc@users.noreply.github.com>
3 weeks ago[3.14] gh-143429: Use compile-time NaN encoding detection for test_struct (GH-143432...
Miss Islington (bot) [Fri, 9 Jan 2026 11:32:49 +0000 (12:32 +0100)] 
[3.14] gh-143429: Use compile-time NaN encoding detection for test_struct (GH-143432) (#143595)

gh-143429: Use compile-time NaN encoding detection for test_struct (GH-143432)
(cherry picked from commit dcdb23f9db2bd683e5d37558f09b458be25a9b4d)

Co-authored-by: Henry Chen <chenx97@aosc.io>
3 weeks ago[3.14] gh-142095: Use thread local frame info in `py-bt` and `py-bt-full` when availa...
Miss Islington (bot) [Thu, 8 Jan 2026 17:35:31 +0000 (18:35 +0100)] 
[3.14] gh-142095: Use thread local frame info in `py-bt` and `py-bt-full` when available (gh-143371) (#143566)

In optimized and `-Og` builds, arguments and local variables are frequently
unavailable in gdb. This makes `py-bt` fail to print anything useful. Use the
`PyThreadState*` pointers `_Py_tss_gilstate` and `Py_tss_tstate` to find the
interpreter frame if we can't get the frame from the
`_PyEval_EvalFrameDefault` call.
(cherry picked from commit 49c3b0a67a77bb42e736cea7dcbc1aa8fa704074)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
3 weeks ago[3.14] gh-143553: Add support for parametrized resources in regrtests (GH-143554...
Miss Islington (bot) [Thu, 8 Jan 2026 16:12:33 +0000 (17:12 +0100)] 
[3.14] gh-143553: Add support for parametrized resources in regrtests (GH-143554) (GH-143555)

For example, "-u xpickle=2.7" will run test_xpickle only against Python 2.7.
(cherry picked from commit c07e5ec0a9e5843fc39dec6aa94172faf6354858)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 weeks ago[3.14] gh-143513: Clarify changed argument name of `ResourceReader.is_resource` ...
Miss Islington (bot) [Thu, 8 Jan 2026 13:45:57 +0000 (14:45 +0100)] 
[3.14] gh-143513: Clarify changed argument name of `ResourceReader.is_resource` (GH-143523) (GH-143562)

gh-143513: Clarify changed argument name of `ResourceReader.is_resource` (GH-143523)
(cherry picked from commit 5462002bbefd6cb79716828051beae94de8f2529)

Co-authored-by: Alex Willmer <alex@moreati.org.uk>
3 weeks ago[3.14] gh-143528: Fix test_time.test_thread_time() (GH-143558) (#143559)
Miss Islington (bot) [Thu, 8 Jan 2026 13:31:18 +0000 (14:31 +0100)] 
[3.14] gh-143528: Fix test_time.test_thread_time() (GH-143558) (#143559)

gh-143528: Fix test_time.test_thread_time() (GH-143558)

Tolerate 100 ms instead of 20 ms to support slow CIs.
(cherry picked from commit efaa56f73cb1dc4863894444425e753afb7b997c)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 weeks ago[3.14] gh-143089: Fix ParamSpec default examples to use list instead of tuple (GH...
Miss Islington (bot) [Thu, 8 Jan 2026 11:49:41 +0000 (12:49 +0100)] 
[3.14] gh-143089: Fix ParamSpec default examples to use list instead of tuple (GH-143179) (#143538)

Co-authored-by: VanshAgarwal24036 <148854295+VanshAgarwal24036@users.noreply.github.com>
3 weeks ago[3.14] gh-143517: Fix an edge case in rewriting stringified starred annotations ...
Miss Islington (bot) [Thu, 8 Jan 2026 04:07:23 +0000 (05:07 +0100)] 
[3.14] gh-143517: Fix an edge case in rewriting stringified starred annotations (GH-143518) (#143540)

gh-143517: Fix an edge case in rewriting stringified starred annotations (GH-143518)
(cherry picked from commit 6c9f7b4406d507625ff414cddc549d4c630c59c5)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
3 weeks ago[3.14] Fix a typo in STORE_SLICE docs (GH-143500) (#143533)
Miss Islington (bot) [Wed, 7 Jan 2026 22:42:12 +0000 (23:42 +0100)] 
[3.14] Fix a typo in STORE_SLICE docs (GH-143500) (#143533)

Fix a typo in STORE_SLICE docs (GH-143500)
(cherry picked from commit 228d95582e080c60335d5f0a229a6698eb69b11c)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
3 weeks ago[3.14] gh-106318: Add examples for str.casefold() and str.lower() methods (GH-142154...
Miss Islington (bot) [Wed, 7 Jan 2026 17:03:20 +0000 (18:03 +0100)] 
[3.14] gh-106318: Add examples for str.casefold() and str.lower() methods (GH-142154) (#143524)

gh-106318: Add examples for str.casefold() and str.lower() methods (GH-142154)
(cherry picked from commit 51a56a3a7bd8cf05ceda65e843fb7bae40509799)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 weeks ago[3.14] gh-138568: Make `help` mode in PyREPL not exit on empty line input (GH-143512...
Miss Islington (bot) [Wed, 7 Jan 2026 16:06:53 +0000 (17:06 +0100)] 
[3.14] gh-138568: Make `help` mode in PyREPL not exit on empty line input (GH-143512) (GH-143519)

(cherry picked from commit b3e4a3462f6011cacdfc58c565c69e4d7de6b9cd)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: yihong0618 <zouzou0208@gmail.com>
3 weeks ago[3.14] gh-142991: socketmodule: fixed getsockaddrlen() for PF_DIVERT socket (GH-14299...
Miss Islington (bot) [Wed, 7 Jan 2026 14:20:07 +0000 (15:20 +0100)] 
[3.14] gh-142991: socketmodule: fixed getsockaddrlen() for PF_DIVERT socket (GH-142993) (#143481)

gh-142991: socketmodule: fixed getsockaddrlen() for PF_DIVERT socket (GH-142993)
(cherry picked from commit 05406b221dc9d5946c60253392788d60f1f08c8b)

Co-authored-by: Gleb Smirnoff <glebius@FreeBSD.org>
3 weeks ago[3.14] gh-75572: Fix test_xpickle and disable it by default (GH-143503) (GH-143505)
Miss Islington (bot) [Wed, 7 Jan 2026 07:21:45 +0000 (08:21 +0100)] 
[3.14] gh-75572: Fix test_xpickle and disable it by default (GH-143503) (GH-143505)

(cherry picked from commit b866a1c73f81606475456dbe8a7620c225fdc718)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 weeks ago[3.14] gh-106318: Add example for str.index() (GH-137023) (#143502)
Miss Islington (bot) [Tue, 6 Jan 2026 21:48:19 +0000 (22:48 +0100)] 
[3.14] gh-106318: Add example for str.index()  (GH-137023) (#143502)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
3 weeks ago[3.14] gh-133315: Document that compat32 should not be used with MIMEPart/EmailMessag...
Miss Islington (bot) [Tue, 6 Jan 2026 20:33:31 +0000 (21:33 +0100)] 
[3.14] gh-133315: Document that compat32 should not be used with MIMEPart/EmailMessage (GH-143307) (#143496)

gh-133315: Document that compat32 should not be used with MIMEPart/EmailMessage (GH-143307)
(cherry picked from commit ff7d1cec41f391270560b9f4726791d8476c6eba)

Co-authored-by: Andrii Hrimov <andrew.hrimov@gmail.com>
3 weeks ago[3.14] Doc: Fix missing closing parenthesis in argparse example (GH-143488) (#143489)
Miss Islington (bot) [Tue, 6 Jan 2026 17:59:49 +0000 (18:59 +0100)] 
[3.14] Doc: Fix missing closing parenthesis in argparse example (GH-143488) (#143489)

Doc: Fix missing closing parenthesis in argparse example (GH-143488)
(cherry picked from commit 51227b6b1a9181ef4da10811e7b5a55474fc4378)

Co-authored-by: Xiao Yuan <yuanx749@gmail.com>
3 weeks ago[3.14] gh-75572: Forward-port test_xpickle from Python 2 to 3 (GH-22452) (GH-143485)
Miss Islington (bot) [Tue, 6 Jan 2026 17:28:56 +0000 (18:28 +0100)] 
[3.14] gh-75572: Forward-port test_xpickle from Python 2 to 3 (GH-22452) (GH-143485)

Move data classes used in tests to separate file test_picklecommon.py,
so it can be imported in old Python versions.
(cherry picked from commit 8735daf3e82d50defd791e9be7b9ae6843bc4ed1)

Co-authored-by: Ken Jin <kenjin@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 weeks ago[3.14] gh-142302: Fix mkstemp() documentation: clarify file descriptor inheritance...
Miss Islington (bot) [Tue, 6 Jan 2026 17:14:12 +0000 (18:14 +0100)] 
[3.14] gh-142302: Fix mkstemp() documentation: clarify file descriptor inheritance behavior (GH-142338) (#143486)

gh-142302: Fix mkstemp() documentation: clarify file descriptor inheritance behavior (GH-142338)

The documentation incorrectly stated that the file descriptor is not
inherited by child processes. In reality, the close-on-exec flag (when
available) only prevents inheritance across exec() calls, not fork().
(cherry picked from commit e79c9b703117d8b0e7c4d86b704e2e7f120db883)

Co-authored-by: ADITYA RAI <adi.hack1234@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
3 weeks ago[3.14] gh-106318: Add examples for str.isprintable() (GH-140043) (#143483)
Miss Islington (bot) [Tue, 6 Jan 2026 16:49:41 +0000 (17:49 +0100)] 
[3.14] gh-106318: Add examples for str.isprintable()  (GH-140043) (#143483)

gh-106318: Add examples for str.isprintable()  (GH-140043)
(cherry picked from commit 7b0a372b20ae3b80053d52e84c2b7bdd114c19f0)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 weeks ago[3.14] gh-136282: Configparser: create unnamed sections via mapping protocol access...
Miss Islington (bot) [Tue, 6 Jan 2026 15:46:04 +0000 (16:46 +0100)] 
[3.14] gh-136282: Configparser: create unnamed sections via mapping protocol access (GH-136313) (GH-142978)

(cherry picked from commit 4aef13832521b4e7785c9643f6a995c92b4a691d)

Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
3 weeks ago[3.14] gh-143394: On macOS, run main PyREPL tests as "Apple Terminal" as well (GH...
Miss Islington (bot) [Tue, 6 Jan 2026 14:49:43 +0000 (15:49 +0100)] 
[3.14] gh-143394: On macOS, run main PyREPL tests as "Apple Terminal" as well (GH-143461) (GH-143466)

(cherry picked from commit 7dae1077cd18c1ddc50b130335936bc71e1c4ccd)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 weeks ago[3.14] gh-143331: Schedule to remove format "N" for Decimal (GH-143372) (#143476)
Semyon Moroz [Tue, 6 Jan 2026 13:58:29 +0000 (13:58 +0000)] 
[3.14] gh-143331: Schedule to remove format "N" for Decimal (GH-143372) (#143476)

(cherry picked from commit dd750b348501247d458ea8d454213d4959a8f8b9)

3 weeks ago[3.14] Allow Android to fail CI (GH-143471) (GH-143472)
Hugo van Kemenade [Tue, 6 Jan 2026 13:11:04 +0000 (15:11 +0200)] 
[3.14] Allow Android to fail CI (GH-143471) (GH-143472)

(cherry picked from commit efb4e6c73374f910e9aae9b2431a3718331c3c79)

3 weeks ago[3.14] gh-143003: Fix possible shared buffer overflow in `bytearray.extend()` (GH...
Stan Ulbrych [Tue, 6 Jan 2026 11:48:45 +0000 (11:48 +0000)] 
[3.14] gh-143003: Fix possible shared buffer overflow in `bytearray.extend()` (GH-143086) (GH-143447)

When __length_hint__() returns 0 for non-empty iterator, the data can be
written past the shared 0-terminated buffer, corrupting it.
(cherry picked from commit 522563549a49d28e763635c58274a23a6055f041)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 weeks ago[3.14] gh-143394: filter for turning off automatic margins in test_no_newline (GH...
Miss Islington (bot) [Mon, 5 Jan 2026 22:20:51 +0000 (23:20 +0100)] 
[3.14] gh-143394: filter for turning off automatic margins in test_no_newline (GH-143433) (GH-143459)

(cherry picked from commit 04ace41fe2cf648be433503d0c336b154ad63a3b)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
3 weeks ago[3.14] gh-143434: Fix typo in zstd documentation (GH-143437) (#143444)
Miss Islington (bot) [Mon, 5 Jan 2026 20:01:08 +0000 (21:01 +0100)] 
[3.14] gh-143434: Fix typo in zstd documentation (GH-143437) (#143444)

gh-143434: Fix typo in zstd documentation (GH-143437)
(cherry picked from commit 240a6c326276c01cc7714a91a3e08eb77ddc4bc7)

Co-authored-by: Ritam Pal <ritamjunior26@gmail.com>
3 weeks ago[3.14] gh-69605: Check for already imported modules in PyREPL module completion ...
Łukasz Langa [Mon, 5 Jan 2026 18:47:26 +0000 (19:47 +0100)] 
[3.14] gh-69605: Check for already imported modules in PyREPL module completion (GH-143438)

Co-authored-by: Loïc Simon <loic.simon@napta.io>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Cherry picked from commits 7db209b5647b77e9d665830d522153ed891d2e12 and aed90508b3112aa5294c6d4ff6c2026e3c794129.

3 weeks ago[3.14] gh-143309: fix `test_execve_env_concurrent_mutation_with_fspath_posix` buildbo...
Miss Islington (bot) [Sun, 4 Jan 2026 23:11:59 +0000 (00:11 +0100)] 
[3.14] gh-143309: fix `test_execve_env_concurrent_mutation_with_fspath_posix` buildbot failure (GH-143415) (#143419)

gh-143309: fix `test_execve_env_concurrent_mutation_with_fspath_posix` buildbot failure (GH-143415)
(cherry picked from commit c99f7667436d8978b4077704333e2a351f2a026f)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
3 weeks ago[3.14] gh-143309: fix UAF in `os.execve` when the environment is concurrently mutated...
Miss Islington (bot) [Sat, 3 Jan 2026 22:31:45 +0000 (23:31 +0100)] 
[3.14] gh-143309: fix UAF in `os.execve` when the environment is concurrently mutated (GH-143314) (#143398)

gh-143309: fix UAF in `os.execve` when the environment is concurrently mutated (GH-143314)
(cherry picked from commit 9609574e7fd36edfaa8b575558a82cc14e65bfbc)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
3 weeks ago[3.14] gh-143308: fix UAF when PickleBuffer is concurrently mutated in a callback...
Miss Islington (bot) [Sat, 3 Jan 2026 22:27:35 +0000 (23:27 +0100)] 
[3.14] gh-143308: fix UAF when PickleBuffer is concurrently mutated in a callback (GH-143312) (#143396)

gh-143308: fix UAF when PickleBuffer is concurrently mutated in a callback (GH-143312)
(cherry picked from commit 6c53af18f61c074d514e677b469b6201573a59da)

---------------

Co-authored-by: Aaron Wieczorek <aaronw@fastmail.com>
Co-authored-by: Aaron Wieczorek <woz@Aarons-MacBook-Pro.local>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
3 weeks ago[3.14] gh-136924: Suspend REPL colorizing when in a REPL interactive command (GH...
Miss Islington (bot) [Sat, 3 Jan 2026 14:34:47 +0000 (15:34 +0100)] 
[3.14] gh-136924: Suspend REPL colorizing when in a REPL interactive command (GH-136926) (GH-143390)

(cherry picked from commit 2c39b9d2f2ed8fb719d89f895dba114fb9096826)

Co-authored-by: Olga Matoula <olgamatoula@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 weeks ago[3.14] gh-140648: Make asyncio REPL respect the `-I` flag (isolated mode) (GH-143045...
Miss Islington (bot) [Sat, 3 Jan 2026 08:29:05 +0000 (09:29 +0100)] 
[3.14] gh-140648: Make asyncio REPL respect the `-I` flag (isolated mode) (GH-143045) (#143383)

gh-140648: Make asyncio REPL respect the `-I` flag (isolated mode) (GH-143045)
(cherry picked from commit e7c542de5f069a4b83e8eded3067613e4d59a529)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
3 weeks ago[3.14] gh-76187: Document the `c` typecode for `multiprocessing.Array`. (GH-132504...
Miss Islington (bot) [Fri, 2 Jan 2026 19:24:06 +0000 (20:24 +0100)] 
[3.14] gh-76187: Document the `c` typecode for `multiprocessing.Array`. (GH-132504) (#143369)

gh-76187: Document the `c` typecode for `multiprocessing.Array`. (GH-132504)

* Document the `c` typecode for `multiprocessing.Array`.

* Add quotes

* Mention that 'w' is not supported
(cherry picked from commit 136f6d835588e0f72cecdff855afc8f424381ed5)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
3 weeks ago[3.14] gh-138897: Use `_pyrepl.pager` for `_sitebuiltins._Printer` (GH-138898) (GH...
Miss Islington (bot) [Fri, 2 Jan 2026 16:27:09 +0000 (17:27 +0100)] 
[3.14] gh-138897: Use `_pyrepl.pager` for `_sitebuiltins._Printer` (GH-138898) (GH-143364)

(cherry picked from commit 0417dabe3f560470eec63a2485b1741ba9c5e697)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 weeks ago[3.14] gh-139262: Prevent swallowing REPL input on Windows (GH-139263) (GH-143362)
Miss Islington (bot) [Fri, 2 Jan 2026 15:43:46 +0000 (16:43 +0100)] 
[3.14] gh-139262: Prevent swallowing REPL input on Windows (GH-139263) (GH-143362)

(cherry picked from commit ef6f92a2a63fd83d62d9a431b2c3133a9a069ea0)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 weeks ago[3.14] gh-143148: Replace pre-commit with prek in CI (GH-143149) (#143360)
Miss Islington (bot) [Fri, 2 Jan 2026 15:25:28 +0000 (16:25 +0100)] 
[3.14] gh-143148: Replace pre-commit with prek in CI (GH-143149) (#143360)

Co-authored-by: Johann Christensen <johannchristensen@outlook.de>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
3 weeks ago[3.14] gh-128067: Fix pyrepl overriding printed output without newlines (GH-138732...
Miss Islington (bot) [Fri, 2 Jan 2026 15:12:02 +0000 (16:12 +0100)] 
[3.14] gh-128067: Fix pyrepl overriding printed output without newlines (GH-138732) (GH-143350)

(cherry picked from commit 8a2deea1fc725f8147254f87c6042fcf75a1d03b)

Co-authored-by: Jan-Eric Nitschke <47750513+JanEricNitschke@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
4 weeks ago[3.14] Update docstrings of `typing.Hashable`, `typing.List`, etc., to reflect their...
Miss Islington (bot) [Fri, 2 Jan 2026 11:56:56 +0000 (12:56 +0100)] 
[3.14] Update docstrings of `typing.Hashable`, `typing.List`, etc., to reflect their deprecation (GH-143295) (#143348)

Update docstrings of `typing.Hashable`, `typing.List`, etc., to reflect their deprecation (GH-143295)
(cherry picked from commit 18f3c59e57e5d30218210136060310310b10ff72)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
4 weeks ago[3.14] gh-143310: fix crash in Tcl object conversion with concurrent mutations (GH...
Miss Islington (bot) [Fri, 2 Jan 2026 10:17:13 +0000 (11:17 +0100)] 
[3.14] gh-143310: fix crash in Tcl object conversion with concurrent mutations (GH-143321) (#143343)

gh-143310: fix crash in Tcl object conversion with concurrent mutations (GH-143321)
(cherry picked from commit 9712dc1d9eb03ffa96ed746d20bd43239d251ba7)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 weeks ago[3.14] gh-143048: Remove outdated mention to `curses` in the "Interactive Mode" docs...
Miss Islington (bot) [Thu, 1 Jan 2026 11:57:57 +0000 (12:57 +0100)] 
[3.14] gh-143048: Remove outdated mention to `curses` in the "Interactive Mode" docs (GH-143049) (#143325)

gh-143048: Remove outdated mention to `curses` in the "Interactive Mode" docs (GH-143049)
(cherry picked from commit 2d9f4e357ad30e002ca0c7568047e9a818b96cd3)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
4 weeks ago[3.14] gh-142830: prevent some crashes when mutating `sqlite3` callbacks (GH-143245...
Bénédikt Tran [Thu, 1 Jan 2026 11:24:21 +0000 (12:24 +0100)] 
[3.14] gh-142830: prevent some crashes when mutating `sqlite3` callbacks (GH-143245) (#143322)

(cherry picked from commit 7f6c16a956d598663d8c67071c492f197045d967)

4 weeks ago[3.14] gh-140920: remove incorrect mentions to `concurrent.futures.interpreter.Execut...
Miss Islington (bot) [Wed, 31 Dec 2025 20:51:31 +0000 (21:51 +0100)] 
[3.14] gh-140920: remove incorrect mentions to `concurrent.futures.interpreter.ExecutionFailed` (GH-141723) (#143315)

gh-140920: remove incorrect mentions to `concurrent.futures.interpreter.ExecutionFailed` (GH-141723)

Remove documentation for inexistant `concurrent.futures.interpreter.ExecutionFailed`
and replace its occurrences by `concurrent.interpreters.ExecutionFailed` since this
is the documented exception.
(cherry picked from commit c5215978ebfea9471f313d5baa70a4e68bfb798b)

Co-authored-by: Lakshya Upadhyaya <lakshya.upadhyaya05@gmail.com>
4 weeks ago[3.14] gh-115634: document ProcessPoolExecutor max_tasks_per_child bug (GH-140897...
Miss Islington (bot) [Tue, 30 Dec 2025 23:29:56 +0000 (00:29 +0100)] 
[3.14] gh-115634: document ProcessPoolExecutor max_tasks_per_child bug (GH-140897) (#143302)

gh-115634: document ProcessPoolExecutor max_tasks_per_child bug (GH-140897)
(cherry picked from commit 04899b8539ab83657a4495203f26b3cb1a6f46dc)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
4 weeks ago[3.14] gh-130167: Add a What's New entry for changes to ``textwrap.{de,in}dent``...
Miss Islington (bot) [Tue, 30 Dec 2025 13:03:03 +0000 (14:03 +0100)] 
[3.14] gh-130167: Add a What's New entry for changes to ``textwrap.{de,in}dent`` (GH-131924) (#143292)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 weeks ago[3.14] gh-143284: Temporarily install Sphinx<9 to fix Chinese search (GH-143286)...
Miss Islington (bot) [Tue, 30 Dec 2025 12:39:28 +0000 (13:39 +0100)] 
[3.14] gh-143284: Temporarily install Sphinx<9 to fix Chinese search (GH-143286) (#143290)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 weeks ago[3.14] gh-69686: Remove untrue part of `__import__` replacement docs (GH-143261)...
Miss Islington (bot) [Tue, 30 Dec 2025 05:22:38 +0000 (06:22 +0100)] 
[3.14] gh-69686: Remove untrue part of `__import__` replacement docs (GH-143261) (#143281)

gh-69686: Remove untrue part of `__import__` replacement docs (GH-143261)

Remove untrue part of `__import__` replacement docs

The original statement effectively says that replacing `__import__` at global scope affects import statements, and not only that, but only import statements within the rest of the executing module. None of that has been true since at least Python 2.7, I think.

This was likely missed in python/cpython#69686.
(cherry picked from commit 79c03ac0015ccf1cbb759f870e2af9d68f60fe3a)

Co-authored-by: Thanos <111999343+Sachaa-Thanasius@users.noreply.github.com>
4 weeks ago[3.14] gh-143200: fix UAFs in `Element.__{set,get}item__` when the element is concurr...
Miss Islington (bot) [Mon, 29 Dec 2025 17:57:54 +0000 (18:57 +0100)] 
[3.14] gh-143200: fix UAFs in `Element.__{set,get}item__` when the element is concurrently mutated (GH-143226) (#143273)

gh-143200: fix UAFs in `Element.__{set,get}item__` when the element is concurrently mutated (GH-143226)
(cherry picked from commit b6b0e14b3d4aa9e9b89bef9a516177238883e1a7)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 weeks ago[3.14] gh-131421: Fix ASDL kw_defaults being `expr*` instead of `expr?*` (GH-133773...
Miss Islington (bot) [Mon, 29 Dec 2025 12:09:11 +0000 (13:09 +0100)] 
[3.14] gh-131421: Fix ASDL kw_defaults being `expr*` instead of `expr?*` (GH-133773) (GH-143269)

Also fix docs ASDL highlighting.
(cherry picked from commit f37f57dfe683163f390ef589301e4dd4608c4288)

Co-authored-by: Samuel <samuel@knutsen.co>
4 weeks ago[3.14] gh-140870: Full coverage for _pyrepl._module_completer (GH-143244) (#143260)
Miss Islington (bot) [Sun, 28 Dec 2025 19:31:02 +0000 (20:31 +0100)] 
[3.14] gh-140870: Full coverage for _pyrepl._module_completer (GH-143244) (#143260)

gh-140870: Full coverage for _pyrepl._module_completer (GH-143244)

Full coverage for _pyrepl._module_completer
(cherry picked from commit c3febba73b05bb15b15930d545b479a3245cfe11)

Co-authored-by: Loïc Simon <loic.simon@napta.io>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
4 weeks ago[3.14] gh-142994, gh-142996: document missing async generator and coroutine field...
Miss Islington (bot) [Sun, 28 Dec 2025 18:09:00 +0000 (19:09 +0100)] 
[3.14] gh-142994, gh-142996: document missing async generator and coroutine field entries in `inspect` (GH-142997) (#143258)

gh-142994, gh-142996: document missing async generator and coroutine field entries in `inspect` (GH-142997)
(cherry picked from commit 0efbad60e13cbc8b27a5ca3a5d9afcdcc957b19e)

Co-authored-by: wangxiaolei <fatelei@gmail.com>
4 weeks ago[3.14] gh-142195: Fixed Popen.communicate indefinite loops (GH-143203) (#143255)
Miss Islington (bot) [Sun, 28 Dec 2025 17:22:47 +0000 (18:22 +0100)] 
[3.14] gh-142195: Fixed Popen.communicate indefinite loops (GH-143203) (#143255)

gh-142195: Fixed Popen.communicate indefinite loops (GH-143203)

Changed condition to evaluate if timeout is less than or equals to 0. This is needed for simulated time environments such as Shadow where the time will match exactly on the boundary.

---------
(cherry picked from commit fa9a4254e81c0abcc3345021c45aaf5f788f9ea9)

Co-authored-by: Prithviraj Chaudhuri <p.chaudhuri1993@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
4 weeks ago[3.14] gh-143241: Fix infinite loop in `zoneinfo._common.load_data` (GH-143243) ...
Miss Islington (bot) [Sun, 28 Dec 2025 15:14:04 +0000 (16:14 +0100)] 
[3.14] gh-143241: Fix infinite loop in `zoneinfo._common.load_data` (GH-143243) (#143251)

gh-143241: Fix infinite loop in `zoneinfo._common.load_data` (GH-143243)

Correctly reject truncated TZif files in `ZoneInfo.from_file`.

---------
(cherry picked from commit 3ca1f2a370e44874d0dc8c82a01465e0171bec5c)

Co-authored-by: Fatih Çelik <fcelik.ft@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 weeks ago[3.14] gh-143228: Fix UAF in perf trampoline during finalization (GH-143233) (#143247)
Pablo Galindo Salgado [Sun, 28 Dec 2025 14:32:11 +0000 (14:32 +0000)] 
[3.14] gh-143228: Fix UAF in perf trampoline during finalization (GH-143233) (#143247)

4 weeks ago[3.14] gh-142557: fix UAF in `bytearray.__mod__` when object is mutated while formatt...
Miss Islington (bot) [Sat, 27 Dec 2025 15:23:08 +0000 (16:23 +0100)] 
[3.14] gh-142557: fix UAF in `bytearray.__mod__` when object is mutated while formatting `%`-style arguments (GH-143213) (#143227)

gh-142557: fix UAF in `bytearray.__mod__` when object is mutated while formatting `%`-style arguments (GH-143213)
(cherry picked from commit 61ee04834b096be00678c6819b4957f3f4413a5e)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 weeks ago[3.14] gh-142664: fix `PyObject_Hash` invokation post GH-143217 (GH-143223) (#143224)
Miss Islington (bot) [Sat, 27 Dec 2025 14:55:45 +0000 (15:55 +0100)] 
[3.14] gh-142664: fix `PyObject_Hash` invokation post GH-143217 (GH-143223) (#143224)

gh-142664: fix `PyObject_Hash` invokation post GH-143217 (GH-143223)
(cherry picked from commit 84fcdbd86ecd81f7cc793e22268a029ac6cf29c2)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>