Commit graph

128865 commits

Author SHA1 Message Date
Miss Islington (bot)
e58e9802b9
[3.14] gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoader uses io.open_code (GH-145507)`
(cherry picked from commit a51b1b512d)

Co-authored-by: Steve Dower <steve.dower@python.org>
2026-03-04 20:21:29 +00:00
Victor Stinner
bcc2dd8d30
[3.14] GH-144739: Skip test_pyexpat.MemoryProtectionTest based on expat compile-time version, not runtime (#144740) (#145494)
GH-144739: Skip test_pyexpat.MemoryProtectionTest based on expat compile-time version, not runtime (#144740)

(cherry picked from commit 45e9343d7e)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
2026-03-04 20:23:56 +01:00
Miss Islington (bot)
da3fea361e
[3.14] Fix incorrect statement about argparse.ArgumentParser.add_argument() (GH-145479) (#145485)
Fix incorrect statement about argparse.ArgumentParser.add_argument() (GH-145479)
(cherry picked from commit dc12d1999b)

Co-authored-by: Justin Kunimune <justinkunimune@gmail.com>
Co-authored-by: Savannah Ostrowski <savannah@python.org>
2026-03-03 21:47:39 +00:00
Miss Islington (bot)
3c99c16231
[3.14] gh-144475: Fix reference management in partial_repr (GH-145362) (GH-145470)
(cherry picked from commit 671a953dd6)

Co-authored-by: bkap123 <97006829+bkap123@users.noreply.github.com>
2026-03-03 16:40:23 +01:00
Miss Islington (bot)
85f8073684
[3.14] gh-145455: Show output of blurb & sphinx-build version commands (GH-145457) (#145461)
gh-145455: Show output of blurb & sphinx-build version commands (GH-145457)

In gh-145455, an outdated dependency caused an import error that was not
printed out (`2>&1`); the message instead said that the tools are missing.

Don't redirect stderr, to show warnings and failures.

Also, switch `blurb` to output a version on a single line (`--version` rather
than `help`), and, and don't redirect stdout either.
This results in two version info lines being printed out. These get drowned
in typical Sphinx output, and can be helpful when debugging.
(cherry picked from commit f1de65b366)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2026-03-03 16:16:05 +02:00
Miss Islington (bot)
9a63576b10
[3.14] GH-145450: Document missing wave.Wave_write getter methods (GH-145451) (GH-145466)
(cherry picked from commit db41717cd5)

Co-authored-by: Michiel W. Beijen <mb@x14.nl>
2026-03-03 12:50:45 +00:00
Miss Islington (bot)
d8f0ffebef
[3.14] gh-106318: Fix incorrectly rendered code block in str.isalnum() docs (GH-144718) (GH-144730)
(cherry picked from commit f912c835b9)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2026-03-03 13:12:36 +01:00
Miss Islington (bot)
96c9394c8a
[3.14] gh-142781: Fix type confusion in zoneinfo weak cache (GH-142925) (GH-145419)
(cherry picked from commit b611db491d)

Co-authored-by: zhong <60600792+superboy-zjc@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-03-03 12:48:05 +01:00
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