Commit graph

131580 commits

Author SHA1 Message Date
Miss Islington (bot)
f1ca289fbf
[3.15] gh-151159: Update Windows builds to use OpenSSL 3.5.7 (GH-151189)
(cherry picked from commit 6688b0c715)

Co-authored-by: Zachary Ware <zach@python.org>
2026-06-09 17:44:44 +00:00
Miss Islington (bot)
427790ffbd
[3.15] gh-151159: Update macOS installer to use OpenSSL 3.5.7. (GH-151171) (#151192)
(cherry picked from commit 720fb82603)

Co-authored-by: Ivy Xu <fakeshadow1337@gmail.com>
2026-06-09 17:33:23 +00:00
Miss Islington (bot)
ba8d0e37e7
[3.15] GH-59633: Clarify dest collisions in argparse docs (GH-150987) (#151188)
GH-59633: Clarify dest collisions in argparse docs (GH-150987)
(cherry picked from commit 82cb7d4bf6)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
2026-06-09 17:15:41 +00:00
Miss Islington (bot)
489d6af9af
[3.15] gh-151126: Add missing PyErr_NoMemory in _winapi module (GH-151154) (#151180)
gh-151126: Add missing `PyErr_NoMemory` in `_winapi` module (GH-151154)
(cherry picked from commit 8d94fa7b86)

Co-authored-by: sobolevn <mail@sobolevn.me>
2026-06-09 17:10:18 +00:00
Miss Islington (bot)
2aba3d99ac
[3.15] gh-150285: Fix too long docstrings in the asyncio package (GH-151074) (GH-151172)
(cherry picked from commit ed2b04248a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-06-09 16:41:54 +00:00
Miss Islington (bot)
ca0cb46648
[3.15] gh-150285: Fix too long docstrings in the concurrent package (GH-151076) (GH-151173)
(cherry picked from commit 0fa06f4d7f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-06-09 16:41:26 +00:00
Miss Islington (bot)
fda4f22d60
[3.15] GH-61082: Clarify nargs='*' positional default behavior (GH-150989) (#151168)
GH-61082: Clarify nargs='*' positional default behavior (GH-150989)
(cherry picked from commit bc37a227b2)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
2026-06-09 15:46:39 +00:00
Miss Islington (bot)
804be0a223
[3.15] GH-54732: Tweak wording around empty lines in argument files (GH-150980) (#151165)
GH-54732: Tweak wording around empty lines in argument files (GH-150980)
(cherry picked from commit 528550e0e7)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
2026-06-09 15:45:23 +00:00
Miss Islington (bot)
22d32b6df0
[3.15] Docs: Only add profiling-sampling-visualization.{css,js} to files when necessary (GH-151150)
(cherry picked from commit 0a179e748b)

Co-authored-by: Stan Ulbrych <stan@python.org>
2026-06-09 13:24:28 +00:00
Miss Islington (bot)
19e4b8f559
[3.15] gh-109503: Fix document for shutil.move() on usage of os.rename() since it's inaccurate (GH-109507) (GH-150611)
Nonatomic move might be used even if the files are
on the same filesystem in some cases.
(cherry picked from commit 6ecd197c03)

Co-authored-by: Fang Li <fangli@users.noreply.github.com>
2026-06-09 16:06:30 +03:00
Miss Islington (bot)
3199f3ba29
[3.15] gh-151039: Fix a crash when _datetime types outlive _datetime module (GH-151044) (#151143)
gh-151039: Fix a crash when `_datetime` types outlive `_datetime` module (GH-151044)
(cherry picked from commit 9fdbade99e)

Co-authored-by: sobolevn <mail@sobolevn.me>
2026-06-09 12:14:47 +00:00
Miss Islington (bot)
2d432f21db
[3.15] gh-151130: Add more tests for PyWeakref_* C API (GH-151131) (GH-151140)
(cherry picked from commit c3cd75afdf)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-06-09 11:37:56 +00:00
Miss Islington (bot)
8a2bf2a072
[3.15] gh-151126: Fix missing PyErr_NoMemory() in remove_unused_consts (GH-151127) (#151134)
gh-151126: Fix missing `PyErr_NoMemory()` in `remove_unused_consts` (GH-151127)
(cherry picked from commit 3186547c1e)

Co-authored-by: sobolevn <mail@sobolevn.me>
2026-06-09 10:33:02 +00:00
Pablo Galindo Salgado
83e26a43a7
[3.15] gh-149321: Remove lazy_imports=none startup mode (GH-149389) (#150129) 2026-06-08 22:55:57 +00:00
Miss Islington (bot)
fd252e80f5
[3.15] gh-148932: Fix profiling.sampling on Windows virtual environments (GH-150541) (#151097)
gh-148932: Fix `profiling.sampling` on Windows virtual environments (GH-150541)
(cherry picked from commit 5c13217314)

Co-authored-by: Eduardo Villalpando Mello <eduardovil@microsoft.com>
2026-06-08 23:04:06 +01:00
Miss Islington (bot)
eeba221905
[3.15] gh-150633: Minor improvement of a newly added test (GH-151103) (#151106)
gh-150633: Minor improvement of a newly added test (GH-151103)

Minor improvement of a newly added test.
(cherry picked from commit fccf67a354)

Co-authored-by: Barry Warsaw <barry@python.org>
2026-06-08 13:04:02 -07:00
Miss Islington (bot)
fd4f9fa186
[3.15] gh-151070: Fix class referencing typo in collections.abc docs (GH-151088) (GH-151110)
(cherry picked from commit 29a920e80e)

Co-authored-by: Arshal Aromal <arshalaromal19@gmail.com>
2026-06-08 19:47:05 +00:00
Miss Islington (bot)
5751633fac
[3.15] gh-150633: Properly handle null characters in the name when importing frozen modules (GH-150634) (GH-151100)
(cherry picked from commit 54de5475cd)

Co-authored-by: Thomas Kowalski <thom.kowa@gmail.com>
2026-06-08 18:58:11 +00:00
Miss Islington (bot)
e795bd4be7
[3.15] gh-119949: Refactor test_exc() helper in test_format.py (GH-135452) (GH-150329)
Use assertRaisesRegex() context and fix
https://github.com/python/cpython/pull/119781#pullrequestreview-2088240959

(cherry picked from commit 0851700a9d)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2026-06-08 18:01:52 +00:00
Miss Islington (bot)
99979753b3
[3.15] gh-149816: Fix SNI callback callable race (GH-150018) (GH-150099)
(cherry picked from commit 8b31d08e62)

Co-authored-by: Kirill Ignatev <kiri11@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2026-06-08 21:01:31 +03:00
Miss Islington (bot)
199751ea6a
[3.15] gh-151019: Fix test_os on 32-bit FreeBSD (GH-151087) (#151093)
gh-151019: Fix test_os on 32-bit FreeBSD (GH-151087)

Remove references to server.handler_instance. This attribute has been
removed in 2022 by commit 3ae975f1ac.
(cherry picked from commit a9002349cb)

Co-authored-by: Victor Stinner <vstinner@python.org>
2026-06-08 17:25:50 +00:00
Miss Islington (bot)
86e291e662
[3.15] gh-106318: Add examples to the str.isdigit() method docs (GH-144721)
(cherry picked from commit f051c68923)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
2026-06-08 12:59:46 +00:00
Miss Islington (bot)
39f232219e
[3.15] gh-141623: Clarify operator function descriptions (GH-141846)
(cherry picked from commit bd5fa31c5f)

Co-authored-by: Doron Behar <doron.behar@gmail.com>
2026-06-08 12:21:22 +00:00
Miss Islington (bot)
0f964f4679
[3.15] Mention frozendict in object.__hash__() documentation (GH-148867) (#151077)
(cherry picked from commit e3762114e5)

Co-authored-by: Jonathan Dung <jonathandung@yahoo.com>
2026-06-08 11:47:55 +00:00
Miss Islington (bot)
1f3ee9248a
[3.15] gh-101100: Fix Sphinx warnings in 'Buffer Object Structures' documentation (GH-151058)
(cherry picked from commit a1873300ee)

Co-authored-by: Christian Zinck <christian.zinck@gmail.com>
2026-06-08 10:32:43 +00:00
Miss Islington (bot)
550d9b62dd
[3.15] Docs: Fix missing colon in bisect example function (GH-151061) (GH-151067)
Docs: Fix missing colon in `bisect` example function (GH-151061)
(cherry picked from commit 16ede813eb)

Co-authored-by: Sergio LĂłpez GĂłmez <sergiolopezgmz.dam@gmail.com>
2026-06-08 09:47:41 +00:00
Miss Islington (bot)
2185b73dff
[3.15] Update an error message in the 'Functional Programming HOWTO' (GH-151047)
(cherry picked from commit 81965c1683)

Co-authored-by: saber-bit <bryanventura0324@gmail.com>
2026-06-07 18:25:37 +01:00
Miss Islington (bot)
d3ca26983d
[3.15] gh-150599: Prevent bz2 decompressor reuse after errors (GH-150600)
(cherry picked from commit 5755d0f083)

Co-authored-by: Stan Ulbrych <stan@python.org>
2026-06-07 17:48:30 +01:00
Miss Islington (bot)
a642d1ab38
[3.15] gh-151021: Fix mmap empty searches past the end (GH-151023) (GH-151041)
(cherry picked from commit f2cab7b0cf)

Co-authored-by: esadomer <54475303+esadomer@users.noreply.github.com>
2026-06-07 13:27:26 +00:00
Miss Islington (bot)
d7aef33bd7
[3.15] gh-148954: Escape methodname in xmlrpc.client.dumps() to prevent XML injection (GH-148968) (GH-151033)
(cherry picked from commit ab930175e7)

Co-authored-by: Sanyam Kumat <124618873+sanyamk23@users.noreply.github.com>
2026-06-07 10:52:40 +03:00
Miss Islington (bot)
96073736a4
[3.15] gh-50948: IDLE: Warn if saving a file will overwrite a newer version (GH-17578) (GH-151026)
(cherry picked from commit 69851a6407)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Guilherme Polo <ggpolo@gmail.com>
Co-authored-by: Priya Pappachan <priyapappachan010@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-06-07 00:11:55 +03:00
Miss Islington (bot)
9352936b4e
[3.15] gh-149083: Use sentinel for urllib.parse._UNSPECIFIED (GH-149612) (#151017)
This was added in 3.15; let's use a real sentinel instead of an ad-hoc list object.
(cherry picked from commit 884ac3e3ec)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2026-06-06 13:13:52 +00:00
Miss Islington (bot)
ad8a3d33be
[3.15] gh-150662: Stop unbounded memory growth in Tachyon --gecko collector (GH-150845) (#151000) 2026-06-06 13:45:53 +01:00
Miss Islington (bot)
ec9b40d740
[3.15] Doc: fix order of PyLong_FromUnsignedLongLong (GH-150937) (GH-151012)
(cherry picked from commit 4833b2031e)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2026-06-06 15:06:37 +03:00
Miss Islington (bot)
3c1c9ba285
[3.15] Delete mention encoding and errors for importlib.resources.path() (GH-143111) (GH-151014)
(cherry picked from commit fded34d6fe)

Co-authored-by: Alexander Shadchin <shadchin@yandex-team.com>
2026-06-06 11:59:53 +00:00
Miss Islington (bot)
0a2e7af44b
[3.15] gh-149835: Use realpath() instead of abspath() in shutil.move() (GH-149986) (GH-151009)
(cherry picked from commit fab449bddb)

Co-authored-by: Thomas Kowalski <thom.kowa@gmail.com>
2026-06-06 10:29:57 +00:00
Miss Islington (bot)
934ae3ed15
[3.15] gh-150207: Raise MemoryError on tokenizer allocation failure instead of crashing (GH-150275) (#150996)
gh-150207: Raise MemoryError on tokenizer allocation failure instead of crashing (GH-150275)
(cherry picked from commit 262625fa30)

Co-authored-by: Grant Herman <grantlouisherman041@gmail.com>
2026-06-06 03:46:55 +01:00
Miss Islington (bot)
4a3d6f9793
[3.15] Use time.monotonic in OrderedDict LRU cache example (GH-150986) (#150991)
Use `time.monotonic` in OrderedDict LRU cache example (GH-150986)
(cherry picked from commit ea4c85552b)

Co-authored-by: Ilya Nikolaev <65247719+ilya-nikolaev@users.noreply.github.com>
2026-06-06 01:59:30 +03:00
Miss Islington (bot)
d0a263d6d6
[3.15] gh-149977: Fix extra output of -m test test_lazy_import, again (GH-150965) (#150975)
gh-149977: Fix extra output of `-m test test_lazy_import`, again (GH-150965)
(cherry picked from commit 9b4090c48e)

Co-authored-by: sobolevn <mail@sobolevn.me>
2026-06-05 15:46:57 +00:00
Miss Islington (bot)
06ffcde725
[3.15] gh-146527: Fix memory leak in _PyGC_Fini() (GH-150969) (#150970)
gh-146527: Fix memory leak in _PyGC_Fini() (GH-150969)

Free generation_stats allocated by _PyGC_Init().

Fix Python/gc.c: Python/gc_free_threading.c was already fixed.
(cherry picked from commit 0036565e81)

Co-authored-by: Victor Stinner <vstinner@python.org>
2026-06-05 14:11:37 +00:00
Miss Islington (bot)
68f814eb71
[3.15] gh-53144: Improve charset support in the email package (GH-149942) (GH-150967)
Defer to the codecs module for all aliases.
Use MIME/IANA names for all IANA registered charsets.
Fix email.contentmanager.set_text_content().
(cherry picked from commit c195a046f8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-06-05 13:22:33 +00:00
Miss Islington (bot)
e8384cf1a0
[3.15] gh-149891: Add more encoding aliases (GH-149892) (GH-150961)
Support all aliases officially registered in IANA, except
Extended_UNIX_Code_Packed_Format_for_Japanese.

New names:
KSC_5601, KS_C_5601-1989, iso-ir-149, GB_2312-80, windows-936, mac,
CCSID00858, CCSID01140, and a number of "cs"-prefixed names.

Fix csHPRoman8, which was not normalized.
(cherry picked from commit 49f4ecfb08)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-06-05 15:45:22 +03:00
Miss Islington (bot)
85e75a73d4
[3.15] gh-150907: Fix dynamic_annotations.h when built with C++ and Valgrind (GH-150914) (#150962)
gh-150907: Fix dynamic_annotations.h when built with C++ and Valgrind (GH-150914)

Add extern "C++" scope for the C++ template.

Fix test_cppext when Python is built with --with-valgrind.
(cherry picked from commit c32501261a)

Co-authored-by: Victor Stinner <vstinner@python.org>
2026-06-05 12:41:19 +00:00
Miss Islington (bot)
d8af158eb6
[3.15] gh-129011: Update docs for Raw I/O read, readinto, and write (GH-135328) (#150957)
gh-129011: Update docs for Raw I/O read, readinto, and write (GH-135328)

Update `RawIOBase` and `FileIO` documentation to match implementation
behavior around `.read`, `.readinto`, `.readall` and `.write`.

In particular:

 - They may make more than one system call (PEP-475)
 - Add warnings if `.write()` requires a wrapping retry loop (see: gh-126606)
    - "Raw I/O" `.write`` may not write all bytes
    - `buffering=0` example results in a "Raw I/O"
(cherry picked from commit e4db68b9c9)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-06-05 12:09:13 +00:00
Miss Islington (bot)
675ed8a749
[3.15] gh-62825: Fix encoding aliases "KS_C_5601-1987", "KS X 1001", etc (GH-150933) (GH-150946)
They are now aliases of CP949 instead of EUC-KR.
(cherry picked from commit 45562c6f4f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-06-05 14:41:22 +03:00
sobolevn
b48c208bb0
[3.15] gh-150899: Do not reset custom -Xlazy_imports mode in test_lazy_imports (GH-150900) (#150947)
(cherry picked from commit 2f064fbc0b)
2026-06-05 08:43:27 +00:00
Miss Islington (bot)
a13fd39832
[3.15] gh-145177: Bump emscripten version to 4.0.19 (GH-150926) (#150939)
Bumps the emscripten version to 4.0.19.
(cherry picked from commit c83d3d789e)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2026-06-05 06:25:21 +00:00
Miss Islington (bot)
1e1a9d9b41
[3.15] Add shebang documentation for PyManager 26.3b1 (GH-150931)
(cherry picked from commit e28a2f4930)

Co-authored-by: Steve Dower <steve.dower@python.org>
2026-06-04 20:45:28 +00:00
Miss Islington (bot)
c6d64cc60d
[3.15] gh-150913: Fix sqlite3.Blob validation for empty slice assignment (GH-150915) (GH-150923)
ass_subscript_slice() returned early when the computed slice length
was zero, bypassing validation performed for non-empty slices.
(cherry picked from commit fc9c4db130)

Co-authored-by: Jiseok CHOI <jiseok.dev@gmail.com>
2026-06-04 14:10:30 +00:00
Miss Islington (bot)
42a41cc69f
[3.15] gh-150750: Fix a race condition in deque.index with free-threading (GH-150779) (#150920)
gh-150750: Fix a race condition in `deque.index` with free-threading (GH-150779)
(cherry picked from commit d83d50b5b7)

Co-authored-by: sobolevn <mail@sobolevn.me>
2026-06-04 13:58:59 +00:00