Commit graph

128857 commits

Author SHA1 Message Date
Miss Islington (bot)
3c19c88fa9
[3.14] Hide "object" prefix on dunders in contextlib docs & selectivly link some more (GH-145436) (#145443)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2026-03-02 21:18:12 +00:00
Miss Islington (bot)
26a0dbad63
[3.14] gh-130327: Always traverse managed dictionaries, even when inline values are available (GH-130469) (#145438)
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2026-03-02 19:57:10 +00:00
Sam Gross
7f9fcba66d
[3.14] gh-130555: Fix use-after-free in dict.clear() with embedded values (gh-145268) (#145431) 2026-03-02 13:59:35 -05:00
Miss Islington (bot)
504436870b
[3.14] gh-145335: Fix crash when passing -1 as fd in os.pathconf (GH-145390) (#145433)
gh-145335: Fix crash when passing -1 as fd in os.pathconf (GH-145390)
(cherry picked from commit 5c3a47b94a)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2026-03-02 18:33:47 +00:00
Thomas Kowalski
4f079382cd
[3.14] gh-145349: Do not install ccache (#145350) (#145425) 2026-03-02 20:16:56 +02:00
Miss Islington (bot)
675cb81cfc
gh-145307: Defer loading psapi.dll until ctypes.util.dllist() is called. (GH-145308)
(cherry picked from commit 1cf5abedeb)

Co-authored-by: Steve Dower <steve.dower@python.org>
2026-03-02 16:36:34 +00:00
Miss Islington (bot)
574f6c0a1f
[3.14] gh-144835: Added missing explanations for some parameters in glob and iglob. (GH-144836) (#145415)
Co-authored-by: Facundo Batista <facundo@taniquetil.com.ar>
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
2026-03-02 15:32:03 +02:00
Thomas Kowalski
516258a960
[3.14] gh-145351: use --no-install-recommends (GH-145352) (#145403) 2026-03-01 22:41:23 +02:00
Miss Islington (bot)
c443bab47f
[3.14] gh-100538: Add workflow to verify bundled libexpat (GH-145359) (#145401)
gh-100538: Add workflow to verify bundled libexpat (GH-145359)

Add workflow to verify bundled libexpat.
(cherry picked from commit c9a5d9aae4)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-03-01 20:15:09 +00:00
Miss Islington (bot)
4152bbb773
[3.14] gh-145269: simplify bisect.bisect doc example (GH-145270) (#145367)
gh-145269: simplify bisect.bisect doc example (GH-145270)



---------
(cherry picked from commit fdb4b3527f)

Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
2026-02-28 19:28:14 +00:00
Miss Islington (bot)
fc2a6cf0d3
[3.14] gh-142352: Fix asyncio start_tls() to transfer buffered data from StreamReader (GH-142354) (#145363)
gh-142352: Fix `asyncio` `start_tls()` to transfer buffered data from StreamReader (GH-142354)
(cherry picked from commit 0598f4a899)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Maksym Kasimov <39828623+kasimov-maxim@users.noreply.github.com>
2026-02-28 18:43:43 +00:00
Miss Islington (bot)
d76c56e958
[3.14] gh-145142: Make str.maketrans safe under free-threading (gh-145157) (#145320)
Co-authored-by: VanshAgarwal24036 <148854295+VanshAgarwal24036@users.noreply.github.com>
2026-02-27 16:33:46 +00:00
Miss Islington (bot)
1e4b4a6ddc
[3.14] gh-144693: Clarify that PyFrame_GetBack does not raise exceptions (GH-144824) (GH-145318)
gh-144693: Clarify that `PyFrame_GetBack` does not raise exceptions (GH-144824)
(cherry picked from commit 8775f90017)

Co-authored-by: Taegyun Kim <k.taegyun@gmail.com>
Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2026-02-27 15:31:19 +00:00
Miss Islington (bot)
bded835b72
[3.14] gh-141004: Document missing type flags (GH-145127) (GH-145316)
gh-141004: Document missing type flags (GH-145127)
(cherry picked from commit dc1b56aa03)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2026-02-27 15:17:35 +00:00
Miss Islington (bot)
f04aefa418
[3.14] gh-145234: Normalize decoded CR in string tokenizer (GH-145281) (#145310)
gh-145234: Normalize decoded CR in string tokenizer (GH-145281)
(cherry picked from commit 98b1e51927)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2026-02-27 13:11:40 +00:00
Miss Islington (bot)
86c846735b
[3.14] Fix unlikely potential reference leak in _locale._getdefaultlocale (GH-145250) (GH-145302)
It occurs in a code which perhaps never executed.
(cherry picked from commit 6ea84b2726)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-02-27 08:31:11 +00:00
Miss Islington (bot)
a58ea8c212
[3.14] gh-145037: Fix Emscripten trampoline with emcc >= 4.0.19 (GH-145038) (#145283)
This undoes a change made as a part of PR 137470, for compatibility with EMSDK
4.0.19. It adds `emscripten_trampoline` field in `pycore_runtime_structs.h`
and initializes it from JS initialization code with the wasm-gc based trampoline
if possible. Otherwise we fall back to the JS trampoline.
(cherry picked from commit 43fdb7037e)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2026-02-27 08:55:59 +08:00
Miss Islington (bot)
bc6a7a2b0c
[3.14] gh-142787: Handle empty sqlite3 blob slices (GH-142824) (#145297)
(cherry picked from commit 06b0920f12)

Co-authored-by: A.Ibrahim <abdulrasheedibrahim47@gmail.com>
2026-02-27 01:12:51 +01:00
Miss Islington (bot)
08101240f4
[3.14] gh-144872: fix heap buffer overflow _PyTokenizer_ensure_utf8 (GH-144807) (#145287)
Co-authored-by: AdamKorcz <44787359+AdamKorcz@users.noreply.github.com>
2026-02-26 23:01:12 +00:00
Pablo Galindo Salgado
ded533b1fa
[3.14] gh-144316: Fix missing exception in _remote_debugging with debug=False (GH-144442) (#145280) 2026-02-26 22:39:48 +00:00
Miss Islington (bot)
856fdc6f6b
[3.14] gh-144190: Clarify get_type_hints() instance behavior in docs (GH-144831) (#145258)
Co-authored-by: Rajhans Jadhao <rajhans.jadhao@gmail.com>
2026-02-26 13:53:16 +00:00
Miss Islington (bot)
ea628136c0
[3.14] gh-106318: Add examples for str.rjust() method (GH-143890) (#145257)
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2026-02-26 13:48:04 +00:00
Miss Islington (bot)
ff365ebe98
[3.14] GH-145000: Add a tool to record/check removed HTML IDs (GH-145001) (GH-145212)
(cherry picked from commit 9b22261a86)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2026-02-26 13:16:50 +01:00
Robsdedude
a7beca8ae3
[3.14] gh-144156: move news entry to Library (GH-145205) (#145207)
[3.14] gh-144156: move news entry to Library
2026-02-25 16:55:54 -05:00
Miss Islington (bot)
310455ca51
[3.14] gh-142518: Move thread safety sections into a new page (GH-144716) (#145223)
- Create a new page for thread safety notes for built-in types
- Move thread safety notes for `list` into the new page
- Move thread safety notes for `dict` into the new page
---------
(cherry picked from commit 017ccd3bf4)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-02-25 16:57:32 +01:00
Stan Ulbrych
0701ce636c
[3.14] gh-88091: Fix unicodedata.decomposition() for Hangul Syllables (GH-144993) (GH-145189)
(cherry picked from commit 56c4f10d6e)
2026-02-25 00:27:09 +02:00
Miss Islington (bot)
12092af02e
[3.14] gh-145187: Fix crash on invalid type parameter bound expression in conditional block (GH-145188) (#145196)
gh-145187: Fix crash on invalid type parameter bound expression in conditional block (GH-145188)

Fix parsing crash found by oss-fuzz
(cherry picked from commit 5e61a16c10)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-02-24 21:13:08 +00:00
Miss Islington (bot)
bbce6ba08c
[3.14] gh-137335: Fix unlikely name conflicts for named pipes in multiprocessing and asyncio on Windows (GH-137389) (GH-145170)
Since os.stat() raises an OSError for existing named pipe "\\.\pipe\...",
os.path.exists() always returns False for it, and tempfile.mktemp() can
return a name that matches an existing named pipe.

So, tempfile.mktemp() cannot be used to generate unique names for named
pipes. Instead, CreateNamedPipe() should be called in a loop with
different names until it completes successfully.
(cherry picked from commit d6a71f4690)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-02-24 17:21:48 +00:00
Miss Islington (bot)
6dc03efb82
[3.14] Update Python install manager docs (GH-145160)
These updates align with v26.0 that was just released.
(cherry picked from commit da39c68c2f)

Co-authored-by: Steve Dower <steve.dower@python.org>
2026-02-24 15:32:35 +00:00
Miss Islington (bot)
9d53cbf29f
[3.14] Fix inspect.Parameter docstring on the kind attribute (GH-143541) (GH-145174)
(cherry picked from commit 4c95ad8e49)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
2026-02-24 14:16:21 +00:00
Miss Islington (bot)
da03b36f45
[3.14] gh-66305: Fix a hang on Windows in the tempfile module (GH-144672) (GH-145168)
It occurred when trying to create a temporary file or subdirectory in
a non-writable directory.
(cherry picked from commit ca66d3c40c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-02-24 11:32:12 +00:00
Rafael Santos
6d2c5a9f4a
[3.14] gh-145028: Fix blake2 tests in test_hashlib when it is missing due to configure --without-builtin-hashlib-hashes (GH-145029) (#145164)
[3.14] gh-145028: Fix blake2 tests in test_hashlib when it is missing due to build config (GH-145029)

specifically configure --without-builtin-hashlib-hashes means the otherwise guaranteed available blake2 family will not exist.  this allows the test suite to still pass.
(cherry picked from commit 273d5062ca)
2026-02-24 02:52:57 +00:00
Miss Islington (bot)
35a7a6767e
[3.14] _struct.c: Fix UB from integer overflow in prepare_s (GH-145158) (#145162)
`_struct.c`: Fix UB from integer overflow in `prepare_s` (GH-145158)

Avoid possible undefined behaviour from signed overflow in `struct` module

As discovered via oss-fuzz.
(cherry picked from commit fd0400585e)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-02-24 01:18:32 +00:00
Savannah Ostrowski
1f3ea54368
[3.14] Add Savannah as jit.yml CODEOWNER (GH-145152) (#145155)
* Add Savannah as `jit.yml` CODEOWNER (#145152)

(cherry picked from commit 6180e79ed2)
2026-02-23 20:13:47 +02:00
Savannah Ostrowski
8b34bcc6a7
[3.14] Update argparse suggest_on_error code snippet in docs (GH-144985) (#145151)
Update argparse `suggest_on_error` code snippet in docs (#144985)

(cherry picked from commit 6194a552f2)
2026-02-23 17:35:04 +00:00
Savannah Ostrowski
5f1c450db1
[3.14] Refactor jit.yml (GH-144577) (#145126)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2026-02-23 09:01:49 -08:00
Peter Bierma
7fba3cf13d
[3.14] gh-141811: Split up init.rst into multiple pages (GH-144844) (GH-145061)
(cherry picked from commit 60f3c396fe)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Benedikt Johannes <benedikt.johannes.hofer@gmail.com>
2026-02-23 10:38:43 -05:00
Sam Gross
bbb0f2d880
[3.14] gh-144777: Fix data races in IncrementalNewlineDecoder (gh-144971) (#145143) 2026-02-23 15:25:03 +00:00
Peter Bierma
8e29215e04
[3.14] gh-141004: Document PyModuleDef_Type (GH-145043) (GH-145146)
(cherry picked from commit 24cc998c16)
2026-02-23 15:24:29 +00:00
Miss Islington (bot)
06b6243084
[3.14] gh-145092: Fix compiler warning for memchr() and wcschr() returning const pointer (GH-145093) (GH-145102)
(cherry picked from commit faea32b729)

Co-authored-by: Rudi Heitbaum <rudi@heitbaum.com>
2026-02-22 08:28:17 +00:00
Bénédikt Tran
1decc7ee20
[3.14] gh-142516: fix reference leaks in ssl.SSLContext objects (GH-143685) (#145075)
* [3.14] gh-142516: fix reference leaks in `ssl.SSLContext` objects (GH-143685)
(cherry picked from commit 3a2a686cc4)

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

* fix backport
2026-02-21 13:31:23 -08:00
Bénédikt Tran
dcf96d0ed6
[3.14] gh-143698: correctly check scheduler and setpgroup values for os.posix_spawn[p] (GH-143699) (#145073)
Fix an issue where passing invalid arguments to `os.posix_spawn[p]` functions
raised a SystemError instead of a TypeError, and allow to explicitly use `None`
for `scheduler` and `setpgroup` as specified in the docs.

(cherry picked from commit 347fc438cf)
2026-02-21 16:04:31 +01:00
Stan Ulbrych
8e482eb1ec
[3.14] compute-changes.py: Fix & test process_changed_files() (GH-144674) (#145013)
Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
2026-02-21 14:24:35 +02:00
Miss Islington (bot)
bfba660085
[3.14] gh-143916: Allow HTAB in wsgiref header values (#144761)
Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-02-21 14:14:51 +02:00
Miss Islington (bot)
fece40f7bc
[3.14] gh-144694: Fix re.Match.group() doc claiming [1..99] range limit (GH-144696) (#145065)
gh-144694: Fix re.Match.group() doc claiming [1..99] range limit (GH-144696)

The documentation incorrectly stated that numeric group arguments
must be in the range [1..99]. This limit was removed in Python 3.5
(bpo-22437). Replace with "a positive integer" since the next
sentence already documents the IndexError for out-of-range values.
(cherry picked from commit 85021bc247)

Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>
2026-02-21 05:42:08 +00:00
Miss Islington (bot)
9ebab55aa2
[3.14] gh-144748: Document 3.12 and 3.14 changes to PyErr_CheckSignals (GH-144982) (GH-145062)
gh-144748: Document 3.12 and 3.14 changes to `PyErr_CheckSignals` (GH-144982)
(cherry picked from commit 06292614ff)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2026-02-21 00:31:51 +00:00
Miss Islington (bot)
07dbda5a57
[3.14] gh-144809: Make deque copy atomic in free-threaded build (gh-144966) (#145053)
(cherry picked from commit 70da972f97)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2026-02-20 15:47:46 -05:00
Miss Islington (bot)
e69501969b
[3.14] Simplify summary tables in the itertools docs (gh-145050) (gh-145051) 2026-02-20 12:52:26 -06:00
Miss Islington (bot)
033e0f7e4f
[3.14] Correct MAX_N in Lib/zipfile ZipExtFile (GH-144973) (GH-145022)
"<<" has lower precedence than "-".
(cherry picked from commit 4141f0a1ee)

Co-authored-by: J Berg <j.berg2349@gmail.com>
2026-02-19 23:13:43 +00:00
Miss Islington (bot)
1404a4d9f2
[3.14] gh-144156: Fix email header folding concatenating encoded words (GH-144692) (#145009)
gh-144156: Fix email header folding concatenating encoded words (GH-144692)

The fix for gh-92081 (gh-92281) was unfortunately flawed, and broke whitespace handling for encoded word patterns that had previously been working correctly but had no corresponding tests, unfortunately in a way that made the resulting headers not RFC compliant, in such a way that Yahoo started rejecting the resulting emails.  This fix was released in 3.14 alpha 1, 3.13 beta 2 and 3.12.5.   This PR fixes the original problem in a way that does not break anything, and in fact fixes a small pre-existing bug (a spurious whitespace after the ':' of the header label if the header value is immediately wrapped on to the next line).  (RDM)
(cherry picked from commit 0f7cd5544a)

Co-authored-by: Robsdedude <dev@rouvenbauer.de>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: R. David Murray <rdmurray@bitdance.com>
2026-02-19 14:53:05 -05:00