]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
11 days ago[3.14] gh-106318: Add examples for str.rpartition() method (GH-143891) (#144040)
Miss Islington (bot) [Mon, 19 Jan 2026 14:22:03 +0000 (15:22 +0100)] 
[3.14] gh-106318: Add examples for str.rpartition() method (GH-143891) (#144040)

gh-106318: Add examples for str.rpartition() method (GH-143891)
(cherry picked from commit 3c9c3d33cbdef257526871cbc12e93635026f5d6)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
11 days ago[3.14] gh-142461: Move misplaced NEWS entries to an appropriate section (GH-143392...
Miss Islington (bot) [Mon, 19 Jan 2026 13:07:31 +0000 (14:07 +0100)] 
[3.14] gh-142461: Move misplaced NEWS entries to an appropriate section (GH-143392) (GH-144039)

(cherry picked from commit 72bacb0cd0882bce6bd7e9e2e4e9c112d70213e7)

Co-authored-by: Aniket <148300120+Aniketsy@users.noreply.github.com>
11 days ago[3.14] gh-143754: Modernize Tkinter docs (GH-143841) (GH-144032)
Miss Islington (bot) [Mon, 19 Jan 2026 12:27:32 +0000 (13:27 +0100)] 
[3.14] gh-143754: Modernize Tkinter docs (GH-143841) (GH-144032)

Use more relevant terminology instead of "master"/"slave" widgets where possible.
(cherry picked from commit 813fc7a291c98654c27f2b5d8f9afa8e53b066a6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
11 days ago[3.14] gh-143866: Verify return value of `pathlib.write_{bytes,text}` methods in...
Miss Islington (bot) [Mon, 19 Jan 2026 11:50:54 +0000 (12:50 +0100)] 
[3.14] gh-143866: Verify return value of `pathlib.write_{bytes,text}` methods in tests (GH-143870) (#144029)

gh-143866: Verify return value of `pathlib.write_{bytes,text}` methods in tests (GH-143870)
(cherry picked from commit cb6a662bb0f7a9da9d4ba9dda820053f8d54a9f8)

Co-authored-by: b9788213 <b9788213@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
11 days ago[3.14] gh-143831: Compare cells by identity in forward references (GH-143848) (#144020)
Miss Islington (bot) [Mon, 19 Jan 2026 05:57:54 +0000 (06:57 +0100)] 
[3.14] gh-143831: Compare cells by identity in forward references (GH-143848) (#144020)

gh-143831: Compare cells by identity in forward references (GH-143848)
(cherry picked from commit 59d3594ca12939dea0a537d9964d8d637546855c)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
13 days ago[3.14] gh-143916: Reject control characters in wsgiref.headers.Headers (GH-143917...
Miss Islington (bot) [Sat, 17 Jan 2026 18:11:52 +0000 (19:11 +0100)] 
[3.14] gh-143916: Reject control characters in wsgiref.headers.Headers  (GH-143917) (#143972)

gh-143916: Reject control characters in wsgiref.headers.Headers  (GH-143917)

* Add 'test.support' fixture for C0 control characters
* gh-143916: Reject control characters in wsgiref.headers.Headers
(cherry picked from commit f7fceed79ca1bceae8dbe5ba5bc8928564da7211)

Co-authored-by: Seth Michael Larson <seth@python.org>
2 weeks ago[3.14] gh-133253: making linecache thread-safe (GH-133305) (gh-143910)
Miss Islington (bot) [Fri, 16 Jan 2026 18:34:38 +0000 (19:34 +0100)] 
[3.14] gh-133253: making linecache thread-safe (GH-133305) (gh-143910)

(cherry picked from commit 8054184f9f32c7ba561e6e23b358074824e4928d)

Co-authored-by: vfdev <vfdev.5@gmail.com>
2 weeks ago[3.14] gh-143674: Document F/D complex format characters in struct module (GH-143675...
Miss Islington (bot) [Fri, 16 Jan 2026 17:38:08 +0000 (18:38 +0100)] 
[3.14] gh-143674: Document F/D complex format characters in struct module (GH-143675) (#143918)

gh-143674: Document F/D complex format characters in struct module (GH-143675)

Add documentation for the F (complex from two floats) and D (complex
from two doubles) format characters in the struct module docstring.
These format characters were implemented but not documented.
(cherry picked from commit 3e932257980be8907698c378c23026e262ba066c)

Co-authored-by: Muneeb Ullah <moneebullah25@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2 weeks ago[3.14] gh-143572: Run 'python3-libraries' fuzzer in CI using CIFuzz (… (#143912)
Seth Michael Larson [Fri, 16 Jan 2026 17:24:30 +0000 (11:24 -0600)] 
[3.14] gh-143572: Run 'python3-libraries' fuzzer in CI using CIFuzz (… (#143912)

Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <578543+webknjaz@users.noreply.github.com>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2 weeks ago[3.14] gh-65784: Add support for parametrized resource wantobjects in regrtests ...
Miss Islington (bot) [Fri, 16 Jan 2026 17:04:33 +0000 (18:04 +0100)] 
[3.14] gh-65784: Add support for parametrized resource wantobjects in regrtests (GH-143570) (GH-143913)

This allows to run Tkinter tests with the specified value of
tkinter.wantobjects, for example "-u wantobjects=0".
(cherry picked from commit 21ed1e2a9401a2e96ccc910fcb66f22afc96efbd)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.14] gh-143880: Fix data race in `functools.partial` in free threading build (...
Sam Gross [Fri, 16 Jan 2026 16:55:40 +0000 (11:55 -0500)] 
[3.14] gh-143880: Fix data race in `functools.partial` in free threading build (#143882)

gh-143880: Fix data race in `functools.partial` in free threading build

The assignment to `pto->vectorcall` isn't thread-safe in the free
threading build. Note that this is already fixed in the main branch.

2 weeks ago[3.14] gh-143672: Add more tests for struct.pack_into() (GH-143901) (GH-143902)
Miss Islington (bot) [Fri, 16 Jan 2026 11:52:57 +0000 (12:52 +0100)] 
[3.14] gh-143672: Add more tests for struct.pack_into() (GH-143901) (GH-143902)

Add tests for negative offset, out of bound offset, invalid type of offset,
non-writeable buffer, non-continuous buffer, invalid type of buffer.

Repeat all tests for struct.Struct.pack_into().
(cherry picked from commit 66680f1230e51b8274279964f8d2278d12285eb3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.14] gh-143602: Fix duplicate buffer exports in io.BytesIO.write (#143629) (#143872)
Victor Stinner [Thu, 15 Jan 2026 16:02:46 +0000 (17:02 +0100)] 
[3.14] gh-143602: Fix duplicate buffer exports in io.BytesIO.write (#143629) (#143872)

gh-143602: Fix duplicate buffer exports in io.BytesIO.write (#143629)

Fix an inconsistency issue in io.BytesIO.write() where the buffer was exported
twice, which could lead to unexpected data overwrites and position drift when
the buffer changes between exports.

(cherry picked from commit c461aa99e2fabbaf5859c0a8a93e08306ee8115d)

Co-authored-by: zhong <60600792+superboy-zjc@users.noreply.github.com>
2 weeks ago[3.14] gh-143054: Disallow non-top-level Cut for now (GH-143622) (GH-143790)
Miss Islington (bot) [Thu, 15 Jan 2026 12:52:39 +0000 (13:52 +0100)] 
[3.14] gh-143054: Disallow non-top-level Cut for now (GH-143622) (GH-143790)

The behaviour of Cut in nested parentheses, Repeat, Opt, and similar
is somewhat chaotic. Apparently even the academic papers on PEG aren't
as clear as they could be.

And it doesn't really matter. Python only uses top-level cuts.
When that changes, we can clarify as much as necessary (and even
change the implementation to make sense for what we'll need).

Document that this is deliberately unspecified, and add a test to
make sure any decision is deliberate, tested and documented.
(cherry picked from commit f0a0467c176e245a8fd45d4480a0876d748d7e78)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 weeks ago[3.14] gh-141004: Document symbol visibility macros (PyAPI_DATA, Py_EXPORTED_SYMBOL...
Miss Islington (bot) [Thu, 15 Jan 2026 12:34:27 +0000 (13:34 +0100)] 
[3.14] gh-141004: Document symbol visibility macros (PyAPI_DATA, Py_EXPORTED_SYMBOL, Py_LOCAL_SYMBOL,Py_IMPORTED_SYMBOL) (GH-143508) (GH-143786)

(cherry picked from commit a7ba3b124f707f73b94b59f13908872f1a48e24f)

Co-authored-by: Yashraj <yashrajpala8@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.14] Add regression test for add() after remove() with hash collision in set (GH...
Miss Islington (bot) [Thu, 15 Jan 2026 09:06:21 +0000 (10:06 +0100)] 
[3.14] Add regression test for add() after remove() with hash collision in set (GH-143781) (GH-143858)

(cherry picked from commit 565685f6e88fd333326baff6469f53cfff28e01e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.14] gh-143834: Fix PyLong_AsNativeBytes docs for negative number padding (GH...
Miss Islington (bot) [Thu, 15 Jan 2026 08:34:13 +0000 (09:34 +0100)] 
[3.14] gh-143834: Fix PyLong_AsNativeBytes docs for negative number padding  (GH-143840) (GH-143854)

(cherry picked from commit 421bd1770a87d141f66754ae29e407589e44ce83)

Co-authored-by: Muneeb Ullah <moneebullah25@gmail.com>
2 weeks ago[3.14] gh-141805: Fix crash after concurrent addition objects with the same hash...
Miss Islington (bot) [Thu, 15 Jan 2026 07:31:16 +0000 (08:31 +0100)] 
[3.14] gh-141805: Fix crash after concurrent addition objects with the same hash to set (GH-143815) (GH-143849)

This happens when the set contained several elements with the same hash,
and then some of them were removed.
(cherry picked from commit b8e925b4f8f6c5e28fbebc4f3965bf77610698b3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.14] gh-143635: Fix crash in `ga_repr_items_list` (GH-143670) (#143851)
Miss Islington (bot) [Thu, 15 Jan 2026 04:16:46 +0000 (05:16 +0100)] 
[3.14] gh-143635: Fix crash in `ga_repr_items_list` (GH-143670) (#143851)

gh-143635: Fix crash in `ga_repr_items_list` (GH-143670)
(cherry picked from commit bdba5f0db2ab29f3deedb9416f3c143d33e4ab66)

Co-authored-by: sobolevn <mail@sobolevn.me>
2 weeks ago[3.14] gh-141004: Document several soft-deprecated C APIs (GH-141634) (GH-143837)
Miss Islington (bot) [Wed, 14 Jan 2026 13:25:57 +0000 (14:25 +0100)] 
[3.14] gh-141004: Document several soft-deprecated C APIs (GH-141634) (GH-143837)

gh-141004: Document several soft-deprecated C APIs (GH-141634)
(cherry picked from commit 0e0d51cdcef903d8a990c8e264f32f2f28af0673)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 weeks ago[3.14] gh-106287: Do not write objects after an unmarshalling error (GH-132715) ...
Miss Islington (bot) [Wed, 14 Jan 2026 11:52:20 +0000 (12:52 +0100)] 
[3.14] gh-106287: Do not write objects after an unmarshalling error (GH-132715) (GH-143832)

Writing out an object may involve a slot lookup, which is not safe to do with
an exception raised. In debug mode an assertion failure will occur if this
happens.
(cherry picked from commit ce8f5f98c6fc95a1704360d986a4d0281eeada79)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
2 weeks ago[3.14] gh-141004: Document old provisional names for vectorcall/code API (GH-143568...
Miss Islington (bot) [Wed, 14 Jan 2026 10:01:37 +0000 (11:01 +0100)] 
[3.14] gh-141004: Document old provisional names for vectorcall/code API (GH-143568) (GH-143828)

For vectorcall API, the underscore-prefixed provisional names
continue to be available per PEP 590:
https://peps.python.org/pep-0590/#finalizing-the-api
Use `versionadded`, `versionchanged`, and `:no-typesetting:`
to mark this up.

For PyCode API, use `:no-typesetting:` rather than `index::` so that
these are semantically documented as C functions.
(cherry picked from commit 7e8a1b5061313e03f99bc2ffa2062702bcc76426)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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)

3 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>
4 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>