]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 days ago[3.14] gh-126014: test_makefile_test_folders: Ignore basically-empty directories...
Miss Islington (bot) [Tue, 27 Jan 2026 10:30:59 +0000 (11:30 +0100)] 
[3.14] gh-126014: test_makefile_test_folders: Ignore basically-empty directories (GH-140466) (#144269)

gh-126014: test_makefile_test_folders: Ignore basically-empty directories (GH-140466)

The code in test_makefile was attempting to ignore any
non-interesting files, but missed some corners:

1. There is never a *file* called `__pycache__`.
2. A directory containing only a `__pycache__` subdirectory should be
   ignored.
3. A directory containing only hidden files should be ignored.

Simplify this all into a couple of filters that let us check for empty
lists.
(cherry picked from commit 17d447e993a0ff9b7d44786ceb2a8f9510638bfa)

Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
3 days ago[3.14] gh-144257: document return values of PyModule_SetDocString (GH-144258) (GH...
Miss Islington (bot) [Tue, 27 Jan 2026 07:21:38 +0000 (08:21 +0100)] 
[3.14] gh-144257: document return values of PyModule_SetDocString (GH-144258) (GH-144263)

gh-144257: document return values of PyModule_SetDocString (GH-144258)
(cherry picked from commit 3e9a5b022f01fa95b4485fcf2c0c87bfb9fff837)

Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
4 days ago[3.14] gh-101888: Add function.__builtins__ to ref documentation (GH-144174) (#144252)
Miss Islington (bot) [Mon, 26 Jan 2026 16:21:33 +0000 (17:21 +0100)] 
[3.14] gh-101888: Add function.__builtins__ to ref documentation (GH-144174) (#144252)

gh-101888: Add function.__builtins__ to ref documentation (GH-144174)
(cherry picked from commit 933540e33217474abee3e1b53dec28ad927b6311)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 days ago[3.14] gh-142119: Clarify context manager protocol documentation on `ContextVar.set...
Miss Islington (bot) [Mon, 26 Jan 2026 15:56:19 +0000 (16:56 +0100)] 
[3.14] gh-142119: Clarify context manager protocol documentation on `ContextVar.set` and `Token` (GH-143694) (GH-144251)

(cherry picked from commit 04d497c284ac933488cc747b3f7082beab300848)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
4 days ago[3.14] gh-143928: Remove outdated comparison between pickle and marshal regarding...
Miss Islington (bot) [Mon, 26 Jan 2026 13:45:48 +0000 (14:45 +0100)] 
[3.14] gh-143928: Remove outdated comparison between pickle and marshal regarding recursion (GH-144025) (#144246)

gh-143928: Remove outdated comparison between pickle and marshal regarding recursion (GH-144025)
(cherry picked from commit 923d9d2ac23b583a7fb66e2867d8dcc07fec9a40)

Co-authored-by: Yashraj <yashrajpala8@gmail.com>
4 days ago[3.14] gh-144100: Fix crash for POINTER(str) used in ctypes argtypes (GH-144108)...
Miss Islington (bot) [Mon, 26 Jan 2026 12:53:20 +0000 (13:53 +0100)] 
[3.14] gh-144100: Fix crash for POINTER(str) used in ctypes argtypes (GH-144108) (#144244)

gh-144100: Fix crash for POINTER(str) used in ctypes argtypes (GH-144108)
(cherry picked from commit 8f459255eba2b6639f1912e5c5e318a7cdafada1)

Co-authored-by: VanshAgarwal24036 <148854295+VanshAgarwal24036@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 days ago[3.14] gh-144169: Fix three crashes in AST objects with non-str kwargs (GH-144178...
Miss Islington (bot) [Mon, 26 Jan 2026 12:14:39 +0000 (13:14 +0100)] 
[3.14] gh-144169: Fix three crashes in AST objects with non-str kwargs (GH-144178) (#144227)

gh-144169: Fix three crashes in AST objects with non-str kwargs (GH-144178)
(cherry picked from commit 639c1ad4f1ef5c2409a62fa8ed16e6aa3a6f9ab8)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 days ago[3.14] Programming FAQ: fix some punctuaction typos (GH-144058) (GH-144185)
Miss Islington (bot) [Mon, 26 Jan 2026 10:37:28 +0000 (11:37 +0100)] 
[3.14] Programming FAQ: fix some punctuaction typos (GH-144058) (GH-144185)

(cherry picked from commit 03e651d601c7d54ffe93ef1bbd4f66fafb89eded)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 days ago[3.14] gh-144233: Fix typo in os.eventfd documentation (GH-144234) (#144238)
Miss Islington (bot) [Mon, 26 Jan 2026 08:14:29 +0000 (09:14 +0100)] 
[3.14] gh-144233: Fix typo in os.eventfd documentation (GH-144234) (#144238)

gh-144233: Fix typo in os.eventfd documentation (GH-144234)
(cherry picked from commit 99821474336187eaf657740c4eb618044d83b9c7)

Co-authored-by: Solomon Ritzow <11698787+ritzow@users.noreply.github.com>
5 days ago[3.14] gh-142779: Initialize reserved field for proper padding (GH-142780) (#144159)
Miss Islington (bot) [Sun, 25 Jan 2026 17:44:33 +0000 (18:44 +0100)] 
[3.14] gh-142779: Initialize reserved field for proper padding (GH-142780) (#144159)

gh-142779: Initialize reserved field for proper padding (GH-142780)

The jitdump specification specifies a reserved field for padding.

Initialize it so no garbage data is embedded in the jitdump files.
(cherry picked from commit 77bf4ba732a8736910bd6b7ec5a58b8ee833c95f)

Co-authored-by: stratakis <cstratak@redhat.com>
5 days ago[3.14] gh-144125: email: verify headers are sound in BytesGenerator (#144182)
Miss Islington (bot) [Sun, 25 Jan 2026 17:18:08 +0000 (18:18 +0100)] 
[3.14] gh-144125: email: verify headers are sound in BytesGenerator (#144182)

gh-144125: email: verify headers are sound in BytesGenerator
(cherry picked from commit 052e55e7d44718fe46cbba0ca995cb8fcc359413)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Denis Ledoux <dle@odoo.com>
Co-authored-by: Denis Ledoux <5822488+beledouxdenis@users.noreply.github.com>
Co-authored-by: Petr Viktorin <302922+encukou@users.noreply.github.com>
Co-authored-by: Bas Bloemsaat <1586868+basbloemsaat@users.noreply.github.com>
5 days ago[3.14] gh-143237: Fix support of named pipes in the rotating logging handlers (GH...
Miss Islington (bot) [Sun, 25 Jan 2026 17:11:45 +0000 (18:11 +0100)] 
[3.14] gh-143237: Fix support of named pipes in the rotating logging handlers (GH-143259) (#143297)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 days ago[3.14] gh-143935: Email preserve parens when folding comments (GH-143936) (#144034)
Miss Islington (bot) [Sun, 25 Jan 2026 17:11:33 +0000 (18:11 +0100)] 
[3.14] gh-143935: Email preserve parens when folding comments (GH-143936) (#144034)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Denis Ledoux <dle@odoo.com>
6 days ago[3.14] gh-135142: Initial 3.15 News3.txt entries (GH-144200) (#144201)
Terry Jan Reedy [Sat, 24 Jan 2026 03:16:00 +0000 (22:16 -0500)] 
[3.14] gh-135142: Initial 3.15 News3.txt entries (GH-144200) (#144201)

(cherry picked from commit 29f1e778faaa31479e4ef84e2fb37a7a53984550)

6 days ago[3.14] gh-144027: Fix documentation for ignorechars in base64.a85decode() (GH-144028...
Miss Islington (bot) [Fri, 23 Jan 2026 19:24:06 +0000 (20:24 +0100)] 
[3.14] gh-144027: Fix documentation for ignorechars in base64.a85decode() (GH-144028) (GH-144192)

It does not support an ASCII string.

Also add more tests.
(cherry picked from commit 25a10b60b04ab2fa802409dc6f211cf2ca028a0a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 days ago[3.14] gh-143925: Reject control characters in data: URL mediatypes (#144084)
Miss Islington (bot) [Fri, 23 Jan 2026 11:45:00 +0000 (12:45 +0100)] 
[3.14] gh-143925: Reject control characters in data: URL mediatypes (#144084)

Co-authored-by: Seth Michael Larson <seth@python.org>
7 days ago[3.14] gh-143919: Reject control characters in http cookies (#144089)
Miss Islington (bot) [Fri, 23 Jan 2026 11:44:29 +0000 (12:44 +0100)] 
[3.14] gh-143919: Reject control characters in http cookies (#144089)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
7 days ago[3.14] Doc: fix incorrect reference in `isasyncgenfunction` docs (GH-144099) (GH...
Miss Islington (bot) [Fri, 23 Jan 2026 10:35:35 +0000 (11:35 +0100)] 
[3.14] Doc: fix incorrect reference in `isasyncgenfunction` docs (GH-144099) (GH-144170)

(cherry picked from commit f3dd0cae6cea38b15b42b20d39c7142a4a0f716e)

Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com>
7 days ago[3.14] gh-143513: Remove importlib.abc documentation for removed ABCs (GH-143605...
Miss Islington (bot) [Thu, 22 Jan 2026 22:44:32 +0000 (23:44 +0100)] 
[3.14] gh-143513: Remove importlib.abc documentation for removed ABCs (GH-143605) (GH-144166)

gh-143513: Remove importlib.abc documentation for removed ABCs (GH-143605)

In 3.11 ResourceReader, Traversable, & TraversableResources moved from importlib.abc to importlib.resources.abc (commit e712a5b277866a71c195f38c1b5d87d9126dba3e).

In 3.12 old import locations were deprecated (commit 71848c960927af801656026203371c41ad139b5a).

In 3.14 backwards-compat support was removed (commit 0751511d24295c39fdf2f5b2255e3fa3d796ce4d).
(cherry picked from commit f8262b84f5b76e45cfea9d73b09657919926850f)

Co-authored-by: Alex Willmer <alex@moreati.org.uk>
Co-authored-by: Brett Cannon <brett@python.org>
8 days ago[3.14] gh-144023: Prevent `follow_symlinks` from being allowed with an fd of 0 (GH...
Stan Ulbrych [Thu, 22 Jan 2026 15:53:02 +0000 (15:53 +0000)] 
[3.14] gh-144023: Prevent `follow_symlinks` from being allowed with an fd of 0 (GH-144022) (#144151)

[3.14] gh-144023: Prevent follow_symlinks from being allowed with an fd of 0 (GH-144022)

The check was (fd > 0), should be (fd >= 0).
(cherry picked from commit fa44efa0ef1972ac1e2f66996303154be11f605e)

Co-authored-by: AZero13 <gfunni234@gmail.com>
8 days ago[3.14] gh-141004: Mark up constants for `PyOS_double_to_string` (GH-143867) (GH-144146)
Miss Islington (bot) [Thu, 22 Jan 2026 12:30:14 +0000 (13:30 +0100)] 
[3.14] gh-141004: Mark up constants for `PyOS_double_to_string` (GH-143867) (GH-144146)

This ensures they show up as C macros in search and the Sphinx inventory.
(cherry picked from commit fb690c38cafb15e4ccddc52aba37f9470ce201a0)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
8 days ago[3.14] gh-143959: Make _datetime optional for test_sys (GH-144003) (#144143)
Miss Islington (bot) [Thu, 22 Jan 2026 11:24:24 +0000 (12:24 +0100)] 
[3.14] gh-143959: Make _datetime optional for test_sys (GH-144003) (#144143)

gh-143959: Make _datetime optional for test_sys (GH-144003)
(cherry picked from commit c447d1bc146bcf7707a619779bdcc03651adb5e3)

Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
8 days ago[3.14] gh-141004: Mark up docs of old PyMem macros (GH-143783) (GH-143864)
Miss Islington (bot) [Thu, 22 Jan 2026 10:52:05 +0000 (11:52 +0100)] 
[3.14] gh-141004: Mark up docs of old PyMem macros (GH-143783) (GH-143864)

gh-141004: Mark up docs of old PyMem macros (GH-143783)

These had a docs-only deprecation notice since the first version of the docs in this repo. Nowadays we call things “soft deprecated” if there's just a note in the docs.

The deprecated directive needs a version, I went with the first one that had the notice (2.0; it's not in 1.6):
- https://docs.python.org/release/2.0/api/memoryInterface.html
- https://docs.python.org/release/1.6/api/memoryInterface.html

Since PEP 445, they are now direct aliases; there are no (additional) binary compatibility concerns over the preferred names.
(cherry picked from commit a009e78b79ec340d9ff0e1a8ad20f8178fd3257f)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
8 days ago[3.14] gh-143993: Document ways to disable remote debugging support (GH-143994) ...
Miss Islington (bot) [Thu, 22 Jan 2026 10:47:05 +0000 (11:47 +0100)] 
[3.14] gh-143993: Document ways to disable remote debugging support (GH-143994) (#144139)

gh-143993: Document ways to disable remote debugging support (GH-143994)

Although PEP 768 mentions how to disable the mechanism of
remote debugging, it is not documented in the Python docs.

This change adds a note on how to disable remote debugging support
in a Python interpreter to the remote debugging how-to.
(cherry picked from commit 0b5f8359c52f8a5ce0fe436cde499553f3b8f5d5)

Co-authored-by: Rafael Weingartner-Ortner <38643099+RafaelWO@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
9 days ago[3.14] gh-77188: Add pickle tests for objects with slots (GH-144116) (GH-144119)
Miss Islington (bot) [Wed, 21 Jan 2026 17:47:27 +0000 (18:47 +0100)] 
[3.14] gh-77188: Add pickle tests for objects with slots (GH-144116) (GH-144119)

(cherry picked from commit cf71e34940e2314ee7ca00961d86a7172286eeea)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
9 days agoUpdate install manager docs (python/pymanager#227) (GH-144079)
Miss Islington (bot) [Wed, 21 Jan 2026 15:39:00 +0000 (16:39 +0100)] 
Update install manager docs (python/pymanager#227) (GH-144079)

(cherry picked from commit f52af86cba644b6eeb32506a8948b6bf53a4f363)

Co-authored-by: Steve Dower <steve.dower@python.org>
9 days ago[3.14] gh-144085: Add `{gi,cr}_suspended` to `inspect` comments and `generator/corout...
Miss Islington (bot) [Wed, 21 Jan 2026 11:02:35 +0000 (12:02 +0100)] 
[3.14] gh-144085: Add `{gi,cr}_suspended` to `inspect` comments and `generator/coroutine` tests (GH-144086) (#144104)

gh-144085: Add `{gi,cr}_suspended` to `inspect` comments and `generator/coroutine` tests (GH-144086)
(cherry picked from commit 4ef30a5871db2043712945e64f33af81938d68dc)

Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com>
9 days ago[3.14] gh-143874: Use self.message instead of raw print in `_exec_in_closure()` ...
Miss Islington (bot) [Wed, 21 Jan 2026 00:35:30 +0000 (01:35 +0100)] 
[3.14] gh-143874: Use self.message instead of raw print in `_exec_in_closure()`  (GH-143875) (#144061)

gh-143874: Use self.message instead of raw print in `_exec_in_closure()`  (GH-143875)
(cherry picked from commit e66597d6c84a8615340822b8da564e5ca3fba5cd)

Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com>
10 days ago[3.14] gh-144012: Check null binary op extend (GH-144014) (GH-144038)
AN Long [Tue, 20 Jan 2026 18:05:56 +0000 (03:05 +0900)] 
[3.14] gh-144012: Check null binary op extend (GH-144014) (GH-144038)

(cherry picked from commit 54bedcf714160c3ecff3103a53f6291a7e1efd27)

10 days ago[3.14] gh-144050: Fix stat.filemode pure Python file type detection (GH-144059) ...
Miss Islington (bot) [Tue, 20 Jan 2026 12:47:21 +0000 (13:47 +0100)] 
[3.14] gh-144050: Fix stat.filemode pure Python file type detection (GH-144059) (GH-144073)

(cherry picked from commit fe629262c0db7aa18bad8bf3ac524acd8695739b)

Co-authored-by: VanshAgarwal24036 <148854295+VanshAgarwal24036@users.noreply.github.com>
10 days ago[3.14] Update struct.__doc__: _Bool available unconditionally (GH-143716) (#144070)
Miss Islington (bot) [Tue, 20 Jan 2026 12:33:28 +0000 (13:33 +0100)] 
[3.14] Update struct.__doc__: _Bool available unconditionally (GH-143716) (#144070)

Update struct.__doc__: _Bool available unconditionally (GH-143716)

This amends commit a9296e7f3be4d6c22271b25c86467ff867c63bbb.
(cherry picked from commit 31c81ab0a2fb7009a76426617991a9b539ab0180)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
10 days ago[3.14] gh-143999: Fix: handle suspended state on types.coroutine wrappers (GH-144000...
Miss Islington (bot) [Tue, 20 Jan 2026 10:59:42 +0000 (11:59 +0100)] 
[3.14] gh-143999: Fix: handle suspended state on types.coroutine wrappers (GH-144000) (GH-144066)

(cherry picked from commit 76b484b9d16d6a3b1749dc89d99773b5b4a5c4a5)

Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com>
10 days ago[3.14] gh-75459: versionadded for PyObject_CallFinalizer*() API (GH-143982) (#144026)
Miss Islington (bot) [Tue, 20 Jan 2026 10:06:21 +0000 (11:06 +0100)] 
[3.14] gh-75459: versionadded for PyObject_CallFinalizer*() API (GH-143982) (#144026)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
10 days ago[3.14] gh-143774 - Improve IDLE Format Paragraph doc (GH-143775) (#144062)
Miss Islington (bot) [Tue, 20 Jan 2026 09:34:29 +0000 (10:34 +0100)] 
[3.14] gh-143774 - Improve IDLE Format Paragraph doc (GH-143775) (#144062)

gh-143774 - Improve IDLE Format Paragraph doc (GH-143775)

Add a reminder to not rewrap code line to the Menu => Format => Reformat Paragraph entry.
In Editing and Nagivagion, add a new 'Format block' subsection that defines 'paragraph'
to better match what is dependably handled as more or less expected.
In particular, specify equal indents and that the resulting indent equals original indent.
Also mention that selections are expanded to complete lines and how to modify max length.

(Also fix a couple case errors in cross references.)
(cherry picked from commit fa3abf5a51d42b2d62e1bc89e9465b398a567e94)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
10 days ago[3.14] Notify Sviat of GHA changes through codeowners (GH-143945) (#144051)
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) [Mon, 19 Jan 2026 21:48:58 +0000 (22:48 +0100)] 
[3.14] Notify Sviat of GHA changes through codeowners (GH-143945) (#144051)

(cherry picked from commit 78b1370de96bab5eee82b022a9e26e633a040e0b)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
11 days ago[3.14] gh-102809: No longer mention `Misc/gdbinit` in the code (GH-143980) (#144044)
Miss Islington (bot) [Mon, 19 Jan 2026 18:01:21 +0000 (19:01 +0100)] 
[3.14] gh-102809: No longer mention `Misc/gdbinit` in the code (GH-143980) (#144044)

gh-102809: No longer mention `Misc/gdbinit` in the code (GH-143980)

Fix misleading comment on `PyObject_Dump`.
(cherry picked from commit f84ea1107170988742fbd350123678a5c503c1ad)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
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>
13 days 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>