]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 days ago[3.15] gh-152235: Defer GC tracking of set and frozenset to end of construction ...
Miss Islington (bot) [Fri, 26 Jun 2026 03:49:15 +0000 (05:49 +0200)] 
[3.15] gh-152235: Defer GC tracking of set and frozenset to end of construction (gh-152237) (gh-152242)

gh-152235: Defer GC tracking of set and frozenset to end of construction (gh-152237)
(cherry picked from commit 908f438e198a753d40d1166b5f8725e650a9ed6e)

Co-authored-by: Donghee Na <donghee.na@python.org>
4 days ago[3.15] gh-151722: Do not track the frozendict in the GC in _PyDict_FromKeys() (GH...
Miss Islington (bot) [Thu, 25 Jun 2026 18:48:52 +0000 (20:48 +0200)] 
[3.15] gh-151722: Do not track the frozendict in the GC in _PyDict_FromKeys() (GH-152067) (#152225)

gh-151722: Do not track the frozendict in the GC in _PyDict_FromKeys() (GH-152067)

_PyDict_FromKeys() now creates a frozendict copy which is
not tracked by the GC.

dict_merge() no longer requires the dictionary to be tracked by the
GC.
(cherry picked from commit 55bc3126e0a09a8e940da73e51ab1ffeecaf02d4)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Donghee Na <donghee.na@python.org>
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
4 days ago[3.15] gh-151929: Add pythoninfo commands to Platforms/WASI (GH-152136) (#152222)
Miss Islington (bot) [Thu, 25 Jun 2026 17:22:24 +0000 (19:22 +0200)] 
[3.15] gh-151929: Add pythoninfo commands to Platforms/WASI (GH-152136) (#152222)

gh-151929: Add pythoninfo commands to Platforms/WASI (GH-152136)

The "build" command now also runs "pythoninfo-build" and
"pythoninfo-host" commands.

If no subcommand is provided, display the help.

GitHub Action "WASI":

* Add "pythoninfo-build" and "pythoninfo-host" commands.
* Remove unused and outdated CROSS_BUILD_PYTHON environment variable.
(cherry picked from commit 7c8163719cd23d41daeaed0b243be45de3e82e05)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 days ago[3.15] gh-151929: Add pythoninfo-build command to Platforms/emscripten (GH-152210...
Miss Islington (bot) [Thu, 25 Jun 2026 16:51:32 +0000 (18:51 +0200)] 
[3.15] gh-151929: Add pythoninfo-build command to Platforms/emscripten (GH-152210) (#152217)

gh-151929: Add pythoninfo-build command to Platforms/emscripten (GH-152210)

* Add also "pythoninfo-host" command.
* Add pythoninfo to the "build" command.
(cherry picked from commit 7676427cd875a4b7b3d1ad8521b0de151b9e1e63)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 days ago[3.15] gh-148825: Fix build error if specialization is disabled (GH-148826) (#152206)
Miss Islington (bot) [Thu, 25 Jun 2026 14:36:04 +0000 (16:36 +0200)] 
[3.15] gh-148825: Fix build error if specialization is disabled (GH-148826) (#152206)

gh-148825: Fix build error if specialization is disabled (GH-148826)
(cherry picked from commit 56ae0b8e4f78c612f7b3095cd1c936e54ee0db5f)

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
4 days ago[3.15] Don't require `_testcapi` for `test_code` (GH-152185) (#152202)
Miss Islington (bot) [Thu, 25 Jun 2026 14:02:49 +0000 (16:02 +0200)] 
[3.15] Don't require `_testcapi` for `test_code` (GH-152185) (#152202)

(cherry picked from commit 11c241e1a8a71b5f25a304b1f428467b746f5d43)

Co-authored-by: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
4 days ago[3.15] gh-152168: Don't skip `test_bigmem` if `_testcapi` is missing (GH-152171)...
Miss Islington (bot) [Thu, 25 Jun 2026 13:58:50 +0000 (15:58 +0200)] 
[3.15] gh-152168: Don't skip `test_bigmem` if `_testcapi` is missing (GH-152171) (#152198)

(cherry picked from commit 6a82832a0bd12ff6154fcfcccc3b7b5644eab0e8)

Co-authored-by: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com>
4 days ago[3.15] gh-151929: Get uptime on BSD/macOS in pythoninfo (GH-152189) (#152196)
Miss Islington (bot) [Thu, 25 Jun 2026 13:41:18 +0000 (15:41 +0200)] 
[3.15] gh-151929: Get uptime on BSD/macOS in pythoninfo (GH-152189) (#152196)

gh-151929: Get uptime on BSD/macOS in pythoninfo (GH-152189)

* Check sysctlbyname() function and sys/sysctl.h header in
  configure.
* Add _testcapi.uptime_bsd() function.
(cherry picked from commit b6d89edc4a13a71734ae1f1e386122bf62d68ed8)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 days ago[3.15] gh-127802: Schedule removal of legacy tkinter variable trace methods in 3...
Miss Islington (bot) [Thu, 25 Jun 2026 12:34:47 +0000 (14:34 +0200)] 
[3.15] gh-127802: Schedule removal of legacy tkinter variable trace methods in 3.17 (GH-152012) (GH-152186)

The tkinter.Variable methods trace_variable(), trace(), trace_vdelete()
and trace_vinfo(), deprecated since Python 3.14, are now scheduled for
removal in Python 3.17.
(cherry picked from commit deeae2ac07a5aaa6fc1025a048592afe3516e57e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
4 days ago[3.15] gh-151929: Get machine ID and uptime on Windows in pythoninfo (#152146) (...
Victor Stinner [Thu, 25 Jun 2026 12:34:16 +0000 (14:34 +0200)] 
[3.15] gh-151929: Get machine ID and uptime on Windows in pythoninfo (#152146) (#152187)

gh-151929: Get machine ID and uptime on Windows in pythoninfo (#152146)

* Replace "linux." prefix with "system." in pythoninfo.
* Add _winapi.GetTickCount64() function.

(cherry picked from commit f9910519af8beecba7d65e0348f48fb70b9a31c8)

4 days ago[3.15] gh-151678: Add tests for ttk Menubutton and OptionMenu widget options (GH...
Miss Islington (bot) [Thu, 25 Jun 2026 12:10:18 +0000 (14:10 +0200)] 
[3.15] gh-151678: Add tests for ttk Menubutton and OptionMenu widget options (GH-151960) (GH-151963)

Decorate ttk.MenubuttonTest with add_configure_tests() and make
ttk.OptionMenuTest inherit it to cover the standard widget options.
(cherry picked from commit ce147129c183b934800b539c9a85b7d6bf44ae5d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 days ago[3.15] gh-151126: Add missing `PyErr_NoMemory` in `_winapi.c` (GH-151588) (#152182)
Miss Islington (bot) [Thu, 25 Jun 2026 11:15:27 +0000 (13:15 +0200)] 
[3.15] gh-151126: Add missing `PyErr_NoMemory` in `_winapi.c` (GH-151588) (#152182)

gh-151126: Add missing `PyErr_NoMemory` in `_winapi.c` (GH-151588)
(cherry picked from commit a580029f1168cf87707b157865b6a6b89a77b7ad)

Co-authored-by: Ivy Xu <fakeshadow1337@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
5 days ago[3.15] gh-151126: Fix missing memory errors in `_interpretersmodule.c` (GH-151624...
Miss Islington (bot) [Thu, 25 Jun 2026 10:35:45 +0000 (12:35 +0200)] 
[3.15] gh-151126: Fix missing memory errors in `_interpretersmodule.c` (GH-151624) (#152169)

gh-151126: Fix missing memory errors in `_interpretersmodule.c` (GH-151624)
(cherry picked from commit 05225aa06a4c5eceaa2eb29e99c2d44d2dbfe295)

Co-authored-by: stevens <lipengyu@kylinos.cn>
5 days ago[3.15] gh-151126: Fix missing `PyErr_NoMemory` in `testinternalcapi.c` (GH-152177...
Miss Islington (bot) [Thu, 25 Jun 2026 10:19:48 +0000 (12:19 +0200)] 
[3.15] gh-151126: Fix missing `PyErr_NoMemory` in `testinternalcapi.c` (GH-152177) (#152179)

gh-151126: Fix missing `PyErr_NoMemory` in `testinternalcapi.c` (GH-152177)
(cherry picked from commit a0093282ea87e112e3758e6b3eadb8b6b9770569)

Co-authored-by: sobolevn <mail@sobolevn.me>
5 days ago[3.15] gh-152079: Fix `_datetime.fromisoformat()` mishandling a sub-second tz offset...
Miss Islington (bot) [Thu, 25 Jun 2026 09:41:48 +0000 (11:41 +0200)] 
[3.15] gh-152079: Fix `_datetime.fromisoformat()` mishandling a sub-second tz offset (GH-152087) (#152174)

(cherry picked from commit 6f9c76d8d86997012acfa09fed05396aa9349bbf)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
5 days ago[3.15] gh-151763: Fix crash in `_interpqueues.create` on `MemoryError` (GH-152131...
Miss Islington (bot) [Thu, 25 Jun 2026 07:32:24 +0000 (09:32 +0200)] 
[3.15] gh-151763: Fix crash in `_interpqueues.create` on `MemoryError` (GH-152131) (#152158)

gh-151763: Fix crash in `_interpqueues.create` on `MemoryError` (GH-152131)
(cherry picked from commit a6c2d4ae3bd744610e1a8b70396effdabca1593d)

Co-authored-by: sobolevn <mail@sobolevn.me>
5 days ago[3.15] gh-151929: Get boot ID, machine ID and uptime in test.pythoninfo (GH-152127...
Miss Islington (bot) [Thu, 25 Jun 2026 00:00:32 +0000 (02:00 +0200)] 
[3.15] gh-151929: Get boot ID, machine ID and uptime in test.pythoninfo (GH-152127) (#152134)

gh-151929: Get boot ID, machine ID and uptime in test.pythoninfo (GH-152127)
(cherry picked from commit 3db3bba4d1feb3a9fbfcd368d470db17b5336dc4)

GHA: Run test.pythoninfo on the "Cross build Linux" job.

Co-authored-by: Victor Stinner <vstinner@python.org>
5 days ago[3.15] gh-105895: Add `match` and `case` doc to `help()` (GH-152113) (#152126)
Miss Islington (bot) [Wed, 24 Jun 2026 22:02:21 +0000 (00:02 +0200)] 
[3.15] gh-105895: Add `match` and `case` doc to `help()` (GH-152113) (#152126)

gh-105895: Add `match` and `case` doc to `help()` (GH-152113)
(cherry picked from commit 1d55b3778c1c31549c5f914fcc451db4a3dcc501)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: dzherb <zherbin.dima@yandex.ru>
Co-authored-by: Stan Ulbrych <stan@python.org>
5 days ago[3.15] gh-86726: Improve the structure of the tkinter reference (GH-152109 (GH-152111)
Serhiy Storchaka [Wed, 24 Jun 2026 18:41:27 +0000 (21:41 +0300)] 
[3.15] gh-86726: Improve the structure of the tkinter reference (GH-152109 (GH-152111)

Add short group intros before each cluster of Misc methods.
Group the Tk and Toplevel classes in a new "Toplevel widgets" section, move
the Tcl() function to the module-level functions, and move the "File
handlers" section into the reference.
(cherry picked from commit c7faa6936e17630ec26d4e0438ae9b95561b7151)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
5 days ago[3.15] Re-raise unexpected exceptions instead of swallowing them in various tests...
Miss Islington (bot) [Wed, 24 Jun 2026 16:53:16 +0000 (18:53 +0200)] 
[3.15] Re-raise unexpected exceptions instead of swallowing them in various tests (GH-152019) (#152102)

(cherry picked from commit 6c3da17d1f333f6bd4c07d11e2e304159d550822)

Co-authored-by: An Long <aisk@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
5 days ago[3.15] gh-151763: Fix NULL dereference in `os._path_normpath()` under OOM (GH-151779...
Miss Islington (bot) [Wed, 24 Jun 2026 16:25:28 +0000 (18:25 +0200)] 
[3.15] gh-151763: Fix NULL dereference in `os._path_normpath()` under OOM (GH-151779) (#152096)

(cherry picked from commit ce8b81fff4094bd0cfb0c57193135bfc904c0ca2)

Co-authored-by: Zain Nadeem <zainnadeemzainnadeem80@gmail.com>
5 days ago[3.15] gh-90949: Fix copy-paste typo in pyexpat capsule API initialization (GH-151147...
Miss Islington (bot) [Wed, 24 Jun 2026 14:40:44 +0000 (16:40 +0200)] 
[3.15] gh-90949: Fix copy-paste typo in pyexpat capsule API initialization (GH-151147) (#152088)

(cherry picked from commit 15696a69d672567176de3230b11dfa568e8b4ef0)

Co-authored-by: Stan Ulbrych <stan@python.org>
5 days ago[3.15] gh-151496: Use process groups in TraceBackend in test_dtrace (GH-152039) ...
Miss Islington (bot) [Wed, 24 Jun 2026 14:15:43 +0000 (16:15 +0200)] 
[3.15] gh-151496: Use process groups in TraceBackend in test_dtrace (GH-152039) (#152082)

gh-151496: Use process groups in TraceBackend in test_dtrace (GH-152039)

Run the generic DTrace/SystemTap commands in a new process group and
terminate the whole group on timeout.

This prevents a forked tracer child from keeping stdout/stderr pipes
open after the direct tracer process is killed.
(cherry picked from commit 1785f4b35f899704df0be54cba3776906186b2b1)

Co-authored-by: stratakis <cstratak@redhat.com>
5 days ago[3.15] gh-152060: Fix `_pydatetime.fromisoformat()` raising `AssertionError` on inval...
Miss Islington (bot) [Wed, 24 Jun 2026 14:10:54 +0000 (16:10 +0200)] 
[3.15] gh-152060: Fix `_pydatetime.fromisoformat()` raising `AssertionError` on invalid lengths (GH-152061) (#152081)

(cherry picked from commit ff781d52d451db56e154aac35ae7f2c41b1695a4)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
5 days ago[3.15] `valgrind-python.supp`: Update suppression for readline leaks (GH-151783)...
Miss Islington (bot) [Wed, 24 Jun 2026 14:02:44 +0000 (16:02 +0200)] 
[3.15] `valgrind-python.supp`: Update suppression for readline leaks (GH-151783) (#152084)

`valgrind-python.supp`: Update suppression for readline leaks (GH-151783)
(cherry picked from commit 28b63d301dcfb7ecff86903094b9351d92d9c31e)

Co-authored-by: Stan Ulbrych <stan@python.org>
5 days ago[3.15] gh-152020: Fix `asyncio.all_tasks()` loosing eager tasks on FT-build (GH-15202...
Miss Islington (bot) [Wed, 24 Jun 2026 12:47:07 +0000 (14:47 +0200)] 
[3.15] gh-152020: Fix `asyncio.all_tasks()` loosing eager tasks on FT-build (GH-152022) (#152076)

gh-152020: Fix `asyncio.all_tasks()` loosing eager tasks on FT-build (GH-152022)
(cherry picked from commit ad2cabfccb539dd23f9a17907bd63913013cb1e3)

Co-authored-by: Timofei <128279579+deadlovelll@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 days ago[3.15] gh-151763: Fix possible crash on `CodeType` deallocation (GH-152034) (#152069)
Miss Islington (bot) [Wed, 24 Jun 2026 12:17:41 +0000 (14:17 +0200)] 
[3.15] gh-151763: Fix possible crash on `CodeType` deallocation (GH-152034) (#152069)

gh-151763: Fix possible crash on `CodeType` deallocation (GH-152034)
(cherry picked from commit 22dd5b5b374c8eb4def7d55bb8de5928e345c73a)

Co-authored-by: sobolevn <mail@sobolevn.me>
5 days ago[3.15] gh-151814: Fix unbounded memory growth from repeated empty writes to `io.TextI...
Miss Islington (bot) [Wed, 24 Jun 2026 12:14:01 +0000 (14:14 +0200)] 
[3.15] gh-151814: Fix unbounded memory growth from repeated empty writes to `io.TextIOWrapper` (GH-151817)

(cherry picked from commit c61307222e18bfa06691d53e3ad336c46f432de0)

Co-authored-by: Stan Ulbrych <stan@python.org>
5 days ago[3.15] gh-140550: Docs additions & fixups for PEP 793 (GH-151661) (GH-152064)
Miss Islington (bot) [Wed, 24 Jun 2026 12:00:28 +0000 (14:00 +0200)] 
[3.15] gh-140550: Docs additions & fixups for PEP 793 (GH-151661) (GH-152064)

gh-140550: Docs additions & fixups for PEP 793 (GH-151661)
(cherry picked from commit 763cc2209d69bd0bf41cbb9bded5a48ee23ca6de)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
6 days ago[3.15] Capitalize first word in `unittest.mock.assert_*` docs and docstrings (GH...
Miss Islington (bot) [Wed, 24 Jun 2026 10:35:55 +0000 (12:35 +0200)] 
[3.15] Capitalize first word in `unittest.mock.assert_*` docs and docstrings (GH-151951) (#152059)

(cherry picked from commit a46db4f8ba4aa84e0fc5b6986c2388cae2e873ae)

Co-authored-by: Hans Yu <github@shauny.anonaddy.me>
6 days ago[3.15] gh-143927: Normalize all line endings (CR, CRLF, and LF) in configparser ...
Miss Islington (bot) [Wed, 24 Jun 2026 09:35:18 +0000 (11:35 +0200)] 
[3.15] gh-143927: Normalize all line endings (CR, CRLF, and LF) in configparser (GH-143929) (GH-152002)

gh-143927: Normalize all line endings (CR, CRLF, and LF) in configparser (GH-143929)
(cherry picked from commit 5858e42c539dac8394636a6e9b30472b8994851f)

Co-authored-by: Seth Larson <seth@python.org>
6 days ago[3.15] GH-150605: use windows-2025 in GitHub Actions (GH-150606) (#151939)
Miss Islington (bot) [Wed, 24 Jun 2026 09:22:39 +0000 (11:22 +0200)] 
[3.15] GH-150605: use windows-2025 in GitHub Actions (GH-150606) (#151939)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
6 days ago[3.15] gh-151497: Avoid huge pre-allocation for oversized tarfile extended headers...
Miss Islington (bot) [Wed, 24 Jun 2026 09:21:41 +0000 (11:21 +0200)] 
[3.15] gh-151497: Avoid huge pre-allocation for oversized tarfile extended headers (GH-151498) (GH-151977)

gh-151497: Avoid huge pre-allocation for oversized tarfile extended headers (GH-151498)

tarfile reads a member's extended header (a GNU long name/link or a pax
header) with a single read sized by the header's size field:

    buf = tarfile.fileobj.read(self._block(self.size))

The size is taken from the archive and is not validated, so a ~512-byte
crafted file can claim several gigabytes (or, via base-256 encoding, far
more) and make read() pre-allocate that much memory -- on open/iterate,
before any extraction filter runs.

Read the extended-header data in bounded chunks instead, so an oversized
or truncated header can no longer force a huge allocation. The bytes
returned for valid archives are unchanged.
(cherry picked from commit da99711d37dba3413af05207ea8b12cb06041c0f)

Co-authored-by: Shardul Deshpande <iamsharduld@users.noreply.github.com>
6 days ago[3.15] gh-87904: Document curses classes (GH-151643) (GH-152048)
Miss Islington (bot) [Wed, 24 Jun 2026 07:19:09 +0000 (09:19 +0200)] 
[3.15] gh-87904: Document curses classes (GH-151643) (GH-152048)

Add docstrings for the curses.window, curses.error, curses.panel.panel
and curses.panel.error classes.  Document the panel class and its error
exception in curses.panel.rst, using the real lowercase panel name.
(cherry picked from commit 560ff8e2021d818555884622f6865f4a0d60756f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
6 days ago[3.15] gh-84008: Document that the LC_NUMERIC locale affects tkinter numeric widgets...
Miss Islington (bot) [Wed, 24 Jun 2026 06:38:52 +0000 (08:38 +0200)] 
[3.15] gh-84008: Document that the LC_NUMERIC locale affects tkinter numeric widgets (GH-152008) (GH-152049)

Spinbox, Scale and ttk.Spinbox format floating-point values according to
the LC_NUMERIC locale, but such values are always parsed with a period, so
a comma-decimal locale breaks DoubleVar.get().
(cherry picked from commit ee78d4323c174d0281fef5e04e965cda4c46eeb7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
6 days ago[3.15] gh-126219: Fix crash in tkinter.Tk with non-BMP className on Tcl/Tk 8.x (GH...
Miss Islington (bot) [Wed, 24 Jun 2026 06:32:05 +0000 (08:32 +0200)] 
[3.15] gh-126219: Fix crash in tkinter.Tk with non-BMP className on Tcl/Tk 8.x (GH-151980) (GH-152045)

Tcl 8.x crashes when title-casing a non-BMP character during Tk
initialization, so such a className is now rejected with a ValueError.
(cherry picked from commit 124c7cd91be8cff76d1eec0adef65991c23c4419)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
6 days ago[3.15] gh-150994: _colorize: modernize typing imports (GH-151018) (#152041)
Miss Islington (bot) [Wed, 24 Jun 2026 03:27:00 +0000 (05:27 +0200)] 
[3.15] gh-150994: _colorize: modernize typing imports (GH-151018) (#152041)

gh-150994: _colorize: modernize typing imports (GH-151018)
(cherry picked from commit fcda96fbf399d069d11f7e874352ad03273cf0b7)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
6 days ago[3.15] gh-151842: Fix crash upon OOM in `_interpreters.capture_exception` (GH-151843...
Miss Islington (bot) [Tue, 23 Jun 2026 20:58:10 +0000 (22:58 +0200)] 
[3.15] gh-151842: Fix crash upon OOM in `_interpreters.capture_exception` (GH-151843) (GH-152031)

(cherry picked from commit 5e0747db2f5a063657a117e88b58a20624c848d1)

Co-authored-by: Amrutha <amruthamodela06@gmail.com>
6 days ago[3.15] gh-151596: Add missing argument 'size' to pure-Python implementation of `TextI...
Miss Islington (bot) [Tue, 23 Jun 2026 16:41:17 +0000 (18:41 +0200)] 
[3.15] gh-151596: Add missing argument 'size' to pure-Python implementation of `TextIOBase.readline` (GH-151679) (GH-151870)

(cherry picked from commit 30aeeb375b8f6c1f0eec95f7af60d3d4afa37f33)

Co-authored-by: saber-bit <bryanventura0324@gmail.com>
6 days ago[3.15] gh-151126: Add missing `PyErr_NoMemory()` in `type_from_slots_or_spec` (GH...
Miss Islington (bot) [Tue, 23 Jun 2026 15:15:00 +0000 (17:15 +0200)] 
[3.15] gh-151126: Add missing `PyErr_NoMemory()` in `type_from_slots_or_spec` (GH-151582) (#152016)

(cherry picked from commit 7928a8b730b0334c9f97c2144ab00fe0d88f1e97)

Co-authored-by: Ivy Xu <fakeshadow1337@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
6 days ago[3.15] gh-151773: Fix NULL dereference in `PyContextVar_Set` (GH-151836) (#152009)
Miss Islington (bot) [Tue, 23 Jun 2026 14:46:05 +0000 (16:46 +0200)] 
[3.15] gh-151773: Fix NULL dereference in `PyContextVar_Set` (GH-151836) (#152009)

gh-151773: Fix NULL dereference in `PyContextVar_Set` (GH-151836)
(cherry picked from commit d35b1719a58c8682a22ef698e070e97661af8d14)

Co-authored-by: dev <b.chouksey27@gmail.com>
6 days ago[3.15] gh-151558: Fix symlink escape via `tarfile` hardlink-extraction fallback ...
Miss Islington (bot) [Tue, 23 Jun 2026 13:58:57 +0000 (15:58 +0200)] 
[3.15] gh-151558: Fix symlink escape via `tarfile` hardlink-extraction fallback (GH-151559) (#151997)

(cherry picked from commit 27dd970bf6b17ebca7c8ed486a40ab043ed7af8f)

Co-authored-by: Stan Ulbrych <stan@python.org>
6 days ago[3.15] gh-151981: Make `tarfile._Stream.seek` break at EOF (GH-151982) (#151991)
Miss Islington (bot) [Tue, 23 Jun 2026 13:46:28 +0000 (15:46 +0200)] 
[3.15] gh-151981: Make `tarfile._Stream.seek` break at EOF (GH-151982) (#151991)

(cherry picked from commit f50bf13566189c8d0ce5a814f33eff3d89951896)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
6 days agoMerge branch '3.15' of https://github.com/python/cpython into 3.15
Hugo van Kemenade [Tue, 23 Jun 2026 13:28:14 +0000 (16:28 +0300)] 
Merge branch '3.15' of https://github.com/python/cpython into 3.15

6 days agoPost 3.15.0b3
Hugo van Kemenade [Tue, 23 Jun 2026 13:25:59 +0000 (16:25 +0300)] 
Post 3.15.0b3

6 days ago[3.15] gh-151556: Show example CSV file content in the `csv` module docs (GH-151563)
Miss Islington (bot) [Tue, 23 Jun 2026 12:09:29 +0000 (14:09 +0200)] 
[3.15] gh-151556: Show example CSV file content in the `csv` module docs (GH-151563)

(cherry picked from commit 7915c4a8dd5b047b1e48b127690fb6a202a6e4ca)

Co-authored-by: Lucas <lucasefernandes333@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
7 days agoPython 3.15.0b3 v3.15.0b3
Hugo van Kemenade [Tue, 23 Jun 2026 09:35:40 +0000 (12:35 +0300)] 
Python 3.15.0b3

7 days ago[3.15] gh-151905: fix memory error handling in PyFrame_GetBack (GH-151906) (#151919)
Miss Islington (bot) [Tue, 23 Jun 2026 06:28:59 +0000 (08:28 +0200)] 
[3.15] gh-151905: fix memory error handling in PyFrame_GetBack (GH-151906) (#151919)

Co-authored-by: Prakash Sellathurai <prakashsellathurai@gmail.com>
7 days ago[3.15] gh-75666: Fix a reference leak in tkinter event bindings (GH-151808) (GH-151958)
Miss Islington (bot) [Tue, 23 Jun 2026 04:26:53 +0000 (06:26 +0200)] 
[3.15] gh-75666: Fix a reference leak in tkinter event bindings (GH-151808) (GH-151958)

The Tcl commands created for event callbacks are now deleted when a
binding is replaced or unbound, instead of being leaked.
(cherry picked from commit 3f09a175ad022ca7ccdbb8583a0c137d493533ef)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 days ago[3.15] gh-151722: Defer GC tracking of frozendict to end of construction (gh-151740...
Miss Islington (bot) [Tue, 23 Jun 2026 00:13:20 +0000 (02:13 +0200)] 
[3.15] gh-151722: Defer GC tracking of frozendict to end of construction (gh-151740) (gh-151954)

gh-151722: Defer GC tracking of frozendict to end of construction (gh-151740)
(cherry picked from commit 6920036f287480f7d39d6a4005803aeac27aff3f)

Co-authored-by: Donghee Na <donghee.na@python.org>
7 days ago[3.15] gh-62480: De-personalize docs on using the C API (GH-151784) (#151936)
Miss Islington (bot) [Mon, 22 Jun 2026 20:09:28 +0000 (22:09 +0200)] 
[3.15] gh-62480: De-personalize docs on using the C API (GH-151784) (#151936)

(cherry picked from commit 1c5a11018ad605072b2efac67f3ca87b41b622c6)

Co-authored-by: Rafael Weingartner-Ortner <38643099+RafaelWO@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
7 days ago[3.15] gh-86726: Document tkinter method-name conflicts (GH-151917) (GH-151926)
Miss Islington (bot) [Mon, 22 Jun 2026 12:42:45 +0000 (14:42 +0200)] 
[3.15] gh-86726: Document tkinter method-name conflicts (GH-151917) (GH-151926)

Document where widget methods shadow inherited Misc, geometry-manager and
Wm methods, correct the inaccurate "size/bbox is an alias of
grid_size/grid_bbox" claims, and add "# overrides X" comments at the
definitions.

Also document the geometry-manager ambiguity: the short names forget, info,
slaves, content and propagate are defined by Pack, Place and Grid but
resolve to the pack variant.

Cross-reference the window-manager methods grid, forget and state with the
same-named grid geometry manager, Pack.forget and ttk.Widget.state.

(cherry picked from commit 4de5683f213a862c23cf8d46e3d797986e663025)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
7 days ago[3.15] gh-144133: Add a warning to the `encodings.punycode` documentation (GH-151812...
Miss Islington (bot) [Mon, 22 Jun 2026 12:02:32 +0000 (14:02 +0200)] 
[3.15] gh-144133: Add a warning to the `encodings.punycode` documentation (GH-151812) (#151922)

(cherry picked from commit 7ec70e1df33098de24d4b2cb181586d04cdde441)

Co-authored-by: Stan Ulbrych <stan@python.org>
8 days ago[3.15] Remove 3.15 pending-removals from deprecations index (#151873)
Stan Ulbrych [Mon, 22 Jun 2026 08:43:29 +0000 (09:43 +0100)] 
[3.15] Remove 3.15 pending-removals from deprecations index (#151873)

8 days ago[3.15] gh-142387: Revert Android testbed to API level 35 (GH-151816) (#151883)
Miss Islington (bot) [Mon, 22 Jun 2026 00:29:07 +0000 (02:29 +0200)] 
[3.15] gh-142387: Revert Android testbed to API level 35 (GH-151816) (#151883)

Revert Android testbed to API level 35
(cherry picked from commit 24828e57e17621fff166c7c81c8cf70fd5cf4540)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
8 days ago[3.15] gh-151665: Fix inspect.signature() on type alias and type parameter evaluators...
Timofei [Sun, 21 Jun 2026 22:08:37 +0000 (01:08 +0300)] 
[3.15] gh-151665: Fix inspect.signature() on type alias and type parameter evaluators (#151787)

8 days ago[3.15] gh-151678: Add tests for tkinter.simpledialog (GH-151856) (GH-151869)
Miss Islington (bot) [Sun, 21 Jun 2026 18:59:26 +0000 (20:59 +0200)] 
[3.15] gh-151678: Add tests for tkinter.simpledialog (GH-151856) (GH-151869)

(cherry picked from commit f28ef858f5515d200319e9675d66f8f13afa5a0d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
8 days ago[3.15] RTD Previews: Get correct base branch for backports (GH-150690) (#151867)
Miss Islington (bot) [Sun, 21 Jun 2026 18:14:04 +0000 (20:14 +0200)] 
[3.15] RTD Previews: Get correct base branch for backports (GH-150690) (#151867)

Co-authored-by: Stan Ulbrych <stan@python.org>
8 days ago[3.15] gh-151845: Fix formatfloat() return-value contract in unicode_format.c (GH...
Miss Islington (bot) [Sun, 21 Jun 2026 17:43:01 +0000 (19:43 +0200)] 
[3.15] gh-151845: Fix formatfloat() return-value contract in unicode_format.c (GH-151846) (#151865)

gh-151845: Fix formatfloat() return-value contract in unicode_format.c (GH-151846)

Fix formatfloat() return-value contract in unicode_format.c
(cherry picked from commit c2661e6189ab2833bf32fa723cc427e64c026839)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
8 days ago[3.15] gh-151678: Add interactive tests for tkinter.simpledialog (GH-151794) (GH...
Miss Islington (bot) [Sun, 21 Jun 2026 16:54:36 +0000 (18:54 +0200)] 
[3.15] gh-151678: Add interactive tests for tkinter.simpledialog (GH-151794) (GH-151802)

Drive the modal query dialogs with generated events to exercise the
<Return> and <Escape> key bindings and the value validation: accepting
an integer, float or string, cancelling, rejecting a non-numeric value
and rejecting a value outside the allowed range.
(cherry picked from commit 706238e764169dd36f918a0541adf9687cc3f296)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
8 days ago[3.15] gh-86726: Document tkinter.simpledialog query options and Dialog.result (GH...
Miss Islington (bot) [Sun, 21 Jun 2026 15:10:43 +0000 (17:10 +0200)] 
[3.15] gh-86726: Document tkinter.simpledialog query options and Dialog.result (GH-151851) (GH-151852)

(cherry picked from commit 8270ae560c632f2ee88ab6c6b33562227d0deaae)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
9 days ago[3.15] gh-150831: docs: clarify generator, generator function, and generator iterator...
Miss Islington (bot) [Sun, 21 Jun 2026 11:35:52 +0000 (13:35 +0200)] 
[3.15] gh-150831: docs: clarify generator, generator function, and generator iterator in glossary (GH-150905) (#151840)

gh-150831: docs: clarify generator, generator function, and generator iterator in glossary (GH-150905)
(cherry picked from commit 1de86e1492af92f4b18aad94390bcd4336e579ab)

Co-authored-by: Aniket <148300120+Aniketsy@users.noreply.github.com>
9 days ago[3.15] gh-151770: Fix `datetime.fromisoformat()` on an out-of-range month w/ a 24...
Miss Islington (bot) [Sat, 20 Jun 2026 17:01:40 +0000 (19:01 +0200)] 
[3.15] gh-151770: Fix `datetime.fromisoformat()` on an out-of-range month w/ a 24:00 time (GH-151771) (#151809)

(cherry picked from commit 1fb874cc076e771c39a7bbc650dce386e3c5b7a0)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
9 days ago[3.15] gh-151678: Add tests for tkinter widget virtual events (GH-151793) (GH-151805)
Miss Islington (bot) [Sat, 20 Jun 2026 15:00:38 +0000 (17:00 +0200)] 
[3.15] gh-151678: Add tests for tkinter widget virtual events (GH-151793) (GH-151805)

Verify the virtual events that widgets emit in response to user
interaction, driven by generated events: <<ListboxSelect>> (Listbox),
<<Increment>> and <<Decrement>> (ttk Spinbox), and <<TreeviewSelect>>,
<<TreeviewOpen>> and <<TreeviewClose>> (ttk Treeview).
(cherry picked from commit e51b616efff845ea2a7d312aa43d5f5100064d88)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
9 days ago[3.15] gh-151678: Add tests for the remaining tkinter Misc, Wm and Text methods ...
Miss Islington (bot) [Sat, 20 Jun 2026 14:12:08 +0000 (16:12 +0200)] 
[3.15] gh-151678: Add tests for the remaining tkinter Misc, Wm and Text methods (GH-151782) (GH-151799)

Cover Misc.wait_variable and wait_window, tk_focusFollowsMouse,
selection_handle, the error paths of grab_set_global, send, the
X11-specific Wm methods iconposition, iconmask, iconwindow,
colormapwindows and manage/forget, and the Text.window_config alias and
deprecated yview_pickplace.
(cherry picked from commit aa71eb287f6d812e5270109acb9119c2ad0baef9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
9 days ago[3.15] gh-151678: Add tests for tkinter.filedialog (GH-151781) (GH-151795)
Miss Islington (bot) [Sat, 20 Jun 2026 13:49:16 +0000 (15:49 +0200)] 
[3.15] gh-151678: Add tests for tkinter.filedialog (GH-151781) (GH-151795)

Exercise the native dialogs (Open, SaveAs and Directory) through the
_test_callback seam without opening them, and test the pure-Python
FileDialog selection, filter and ok/cancel logic without entering its
modal loop.
(cherry picked from commit 58fd9ec3cfe0d588db97eb98c0dc7fdb0256be76)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
9 days ago[3.15] gh-151678: Add tests for tkinter.dnd (GH-151780) (GH-151790)
Miss Islington (bot) [Sat, 20 Jun 2026 13:37:55 +0000 (15:37 +0200)] 
[3.15] gh-151678: Add tests for tkinter.dnd (GH-151780) (GH-151790)

Drive the drag-and-drop protocol (dnd_start and the DndHandler enter/
motion/commit, leave/cancel and end callbacks).
(cherry picked from commit 2a126a534b0253cf65fb6d06da0cce72eb2eaa23)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
10 days ago[3.15] gh-151678: Add tests for tkinter.scrolledtext (GH-151753) (GH-151759)
Miss Islington (bot) [Sat, 20 Jun 2026 06:17:52 +0000 (08:17 +0200)] 
[3.15] gh-151678: Add tests for tkinter.scrolledtext (GH-151753) (GH-151759)

Add a test for the ScrolledText widget, which had no tests: that it is
a Text widget held in a Frame with a Scrollbar, that Text methods work,
that the geometry manager methods are redirected to the frame while
configure is not, and that the scrollbar tracks the text view.
(cherry picked from commit a9db5cb52fefffc8fcdddc8e1c5f23222970825a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
10 days ago[3.15] gh-150836: Mount embedded Tk ZIP in _tkinter on Windows (GH-151735)
Miss Islington (bot) [Fri, 19 Jun 2026 23:31:12 +0000 (01:31 +0200)] 
[3.15] gh-150836: Mount embedded Tk ZIP in _tkinter on Windows (GH-151735)

Tcl/Tk 9 may embed the Tk script library in the Tk DLL on Windows. This embedded library is not found by Tcl by default.

Mount the loaded Tk DLL as a zipfs archive before calling Tk_Init(), so Tk can find its embedded tk_library using its existing library discovery logic.

Preserve Tk_Init()'s normal path if the library is not embedded.
(cherry picked from commit c4eb3adbb42d781e2ad35bee5621f1c621c6767b)

Co-authored-by: Jonathan J. Helmus <jjhelmus@gmail.com>
10 days ago[3.15] gh-151678: Add tests for tkinter font, image, variable, Misc and Wm methods...
Miss Islington (bot) [Fri, 19 Jun 2026 23:12:25 +0000 (01:12 +0200)] 
[3.15] gh-151678: Add tests for tkinter font, image, variable, Misc and Wm methods (GH-151751) (GH-151754)

* font: copy(), the config alias, the displayof argument of measure and
  metrics, and the errors raised for invalid options and a wrong number
  of arguments;
* image: the cget method and the config alias, and the errors raised by
  transparency_get and transparency_set;
* variable: that initialize is an alias of set and the deprecated trace
  is an alias of trace_variable;
* Misc: tk_focusNext, tk_focusPrev, tk_strictMotif, tk_bisque and
  option_readfile;
* Wm: wm_iconphoto.
(cherry picked from commit 66cc04855100c3865bd01adfe92a3a02dbc3a914)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
10 days ago[3.15] gh-151678: Add tests for tkinter.ttk methods (GH-151736) (GH-151741)
Miss Islington (bot) [Fri, 19 Jun 2026 16:12:13 +0000 (18:12 +0200)] 
[3.15] gh-151678: Add tests for tkinter.ttk methods (GH-151736) (GH-151741)

Cover previously-untested ttk methods:

* Progressbar.step, start and stop;
* Treeview.parent, next, prev, see and identify_element;
* Style.theme_settings;
* OptionMenu.set_menu.
(cherry picked from commit 7d4a0aad7be3cfb367b8977a03a64e754577d5f0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
10 days ago[3.15] gh-151678: Add tests for tkinter Misc, Wm and geometry manager methods (GH...
Miss Islington (bot) [Fri, 19 Jun 2026 15:06:42 +0000 (17:06 +0200)] 
[3.15] gh-151678: Add tests for tkinter Misc, Wm and geometry manager methods (GH-151732) (GH-151737)

Cover previously-untested methods of the Misc, Wm, Pack, Place and Grid
classes:

* a new WinfoTest class for the winfo_* query methods (class, name,
  parent, children, toplevel, visual and screen information, atoms,
  pointer and screen coordinates, fpixels, containing, interps,
  viewable), including the pre-existing winfo_rgb and winfo_pathname;
* in MiscTest: getint, getdouble, getvar, register, deletecommand,
  option_add/get/clear, nametowidget, the focus_*, grab_* and
  selection_own* methods, event_add/delete/info, and bell;
* in WmTest: title, geometry, minsize/maxsize, resizable, aspect, grid,
  positionfrom/sizefrom, focusmodel, iconname, client/command,
  overrideredirect, state (with withdraw and deiconify), frame, group,
  protocol and transient;
* the short-named aliases of the grid_*, pack_* and place_* geometry
  manager methods.
(cherry picked from commit 23793ac211371415eaf9491fef031f121969dfb3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
10 days ago[3.15] gh-150902: Optimize PyCriticalSection2 to skip locking the same locks held...
Miss Islington (bot) [Fri, 19 Jun 2026 13:52:07 +0000 (15:52 +0200)] 
[3.15] gh-150902: Optimize PyCriticalSection2 to skip locking the same locks held by the current CS2 (gh-151554)

This mimics an optimization already present for the single-mutex critical section.
(cherry picked from commit c2ca7724af94df6e078a4b2e86d1be8c410d9940)

Co-authored-by: Daniele Parmeggiani <8658291+dpdani@users.noreply.github.com>
10 days ago[3.15] gh-151693: Make the curses tests portable to other curses implementations...
Miss Islington (bot) [Fri, 19 Jun 2026 12:37:43 +0000 (14:37 +0200)] 
[3.15] gh-151693: Make the curses tests portable to other curses implementations (GH-151729) (GH-151733)

Make the curses tests portable to other curses implementations

Guard the chgat() check (chgat() needs wchgat()) and stop assuming a
subpad shares the parent pad's cells (implementation-defined in X/Open).
(cherry picked from commit 64fab74bd7288bfa67cd7727452febdaafed4270)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
10 days ago[3.15] gh-151693: Add curses tests for panels, textpad, and window behavior (GH-15169...
Miss Islington (bot) [Fri, 19 Jun 2026 12:01:54 +0000 (14:01 +0200)] 
[3.15] gh-151693: Add curses tests for panels, textpad, and window behavior (GH-151694) (GH-151719)

Add curses tests for panels, textpad, and window behavior

Extend test_curses with behavior-verifying tests that go beyond the
existing smoke tests:

* curses.panel stacking: new_panel/top/bottom/above/below ordering,
  hide/show/hidden, move, replace and userptr round-trip.
* Real-window curses.textpad.Textbox: gather(), edit(), stripspaces,
  insert mode and the Emacs-like editing commands (previously only
  exercised through a MagicMock).
* Window output: addstr cursor advance and addnstr truncation,
  insstr/insnstr shifting without cursor movement, and pad behavior
  (instr, subpad cell sharing, the required 6-argument refresh()).
* Error handling: out-of-range coordinates raising curses.error and
  bad character/string argument types.
(cherry picked from commit b4cfb992ed3a28b8cd626f70e3550ac8dbec1758)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
10 days ago[3.15] gh-151678: Add tests for the remaining tkinter widgets (GH-151687) (GH-151725)
Miss Islington (bot) [Fri, 19 Jun 2026 11:52:05 +0000 (13:52 +0200)] 
[3.15] gh-151678: Add tests for the remaining tkinter widgets (GH-151687) (GH-151725)

Cover previously-untested methods of several widgets:

* Button, Checkbutton and Radiobutton: invoke, flash and toggle;
* Entry: delete, icursor and the select_* aliases;
* Spinbox: invoke, identify and scan;
* Scale and Scrollbar: identify, and Scrollbar fraction and delta;
* PanedWindow: panes, remove/forget, sash and proxy positioning,
  identify, and adding panes with configuration options.

Also test that invoke does nothing for a disabled button and the
errors raised for invalid indices, coordinates, option names and values.
(cherry picked from commit 93b9e7666f4337e3cacfed6993568e4bec575e9b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
11 days ago[3.15] gh-151678: Add tests for tkinter.Canvas (GH-151683) (GH-151716)
Miss Islington (bot) [Fri, 19 Jun 2026 10:47:36 +0000 (12:47 +0200)] 
[3.15] gh-151678: Add tests for tkinter.Canvas (GH-151683) (GH-151716)

Cover previously-untested Canvas methods in CanvasTest:

* item creation and types, bbox, coordinate conversion, move/scale,
  find and addtag queries, tags, item configuration, stacking order,
  text-item editing, selection, focus, scan and postscript;
* the create_arc, create_oval, create_bitmap, create_image,
  create_text and create_window item creation methods, checking
  coordinates, default and explicit options, valid enumerations and
  rejection of invalid values;
* tag_bind() and tag_unbind(), checking the returned function id and
  binding script, querying bound sequences, the add parameter, event
  delivery to items via a tag, and removal of a single binding by id
  or all bindings for a sequence.
(cherry picked from commit bb127c5a96a285f1f6b11261c1f0dc2b3c7f70ff)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
11 days ago[3.15] gh-151678: Add tests for tkinter.Text (GH-151681) (GH-151702)
Miss Islington (bot) [Fri, 19 Jun 2026 10:41:03 +0000 (12:41 +0200)] 
[3.15] gh-151678: Add tests for tkinter.Text (GH-151681) (GH-151702)

Cover previously-untested Text methods (indices, content, marks, tags,
undo/redo, dump, embedded images and windows, peers, and geometry) and
the tag, embedded-image and embedded-window configuration options.
(cherry picked from commit 4ac809e10bdb413d7dd8c7bab7e365b2b618ad91)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
11 days ago[3.15] gh-151678: Add tests for tkinter.Listbox (GH-151686) (GH-151712)
Miss Islington (bot) [Fri, 19 Jun 2026 09:30:55 +0000 (11:30 +0200)] 
[3.15] gh-151678: Add tests for tkinter.Listbox (GH-151686) (GH-151712)

Cover previously-untested Listbox methods in ListboxTest: size, delete,
index resolution, nearest, see, activate, and the selection methods
(selection_set/clear/includes/anchor and their select_* aliases),
including the errors raised for invalid indices.
(cherry picked from commit cf3b3c11485a870d8e8c02579bed27a316838eb1)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
11 days ago[3.15] gh-151678: Add tests for tkinter.Menu (GH-151685) (GH-151709)
Miss Islington (bot) [Fri, 19 Jun 2026 09:28:03 +0000 (11:28 +0200)] 
[3.15] gh-151678: Add tests for tkinter.Menu (GH-151685) (GH-151709)

Cover previously-untested Menu methods in MenuTest: adding, inserting and
deleting items of every type, index resolution, invoking items, entry x/y
positions, and post/unpost/tk_popup mapping.

Also test per-entry configuration options and the errors raised for
invalid indices, entry types, option names and option values.
(cherry picked from commit ef5c32a40be50a33a9b7ac39ee64e6893bc22f60)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
11 days ago[3.15] gh-141510 Add frozendict fast paths to abstract.c (GH-150692) (#151704)
Miss Islington (bot) [Fri, 19 Jun 2026 09:08:08 +0000 (11:08 +0200)] 
[3.15] gh-141510 Add frozendict fast paths to abstract.c (GH-150692) (#151704)

gh-141510 Add frozendict fast paths to abstract.c (GH-150692)

Add frozendict to the fast paths of PyMapping_GetOptionalItem(),
PyMapping_Keys(), PyMapping_Values(), and PyMapping_Items().
(cherry picked from commit a5568d0eb70f8ffbfc7815b58e24170787615931)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
11 days ago[3.15] gh-151695: Fix use-after-free of the curses screen encoding (GH-151696) (GH...
Miss Islington (bot) [Fri, 19 Jun 2026 09:07:51 +0000 (11:07 +0200)] 
[3.15] gh-151695: Fix use-after-free of the curses screen encoding (GH-151696) (GH-151703)

The module-global curses_screen_encoding stored a borrowed pointer to the
encoding owned by the window returned by the first initscr() call.  That
window can be deallocated while unctrl() and ungetch(), which have no window
of their own, still use the pointer to encode non-ASCII characters.

Keep a private copy of the encoding instead.
(cherry picked from commit 551f8e16f8bb38a1e9c6df259a2a0969493de070)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
11 days ago[3.15] gh-141510 Document and test frozendict class matching behaviour (GH-150799...
Miss Islington (bot) [Fri, 19 Jun 2026 08:45:02 +0000 (10:45 +0200)] 
[3.15] gh-141510 Document and test frozendict class matching behaviour (GH-150799) (#151701)

gh-141510 Document and test frozendict class matching behaviour (GH-150799)

Frozendict has `_Py_TPFLAGS_MATCH_SELF` set so works correctly
with the single-arg class matching. However it isn't documented
in the list of classes this works with and it isn't tested.

The test is some way below the other similar tests but anything
else would need a large renumbering.
(cherry picked from commit fd53ae113911e5a7d83c04b08623df824f9d5d70)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
11 days ago[3.15] gh-151229: Add CI to prevent JIT stress test regression (GH-151647) (gh-151670)
Miss Islington (bot) [Fri, 19 Jun 2026 08:37:50 +0000 (10:37 +0200)] 
[3.15] gh-151229: Add CI to prevent JIT stress test regression (GH-151647) (gh-151670)

11 days ago[3.15] gh-151436: Fix missing `tstate->last_profiled_frame` updates (GH-151437) ...
Miss Islington (bot) [Fri, 19 Jun 2026 08:24:53 +0000 (10:24 +0200)] 
[3.15] gh-151436: Fix missing `tstate->last_profiled_frame` updates (GH-151437) (#151612)

gh-151436: Fix missing `tstate->last_profiled_frame` updates (GH-151437)
(cherry picked from commit a8d74c062fe3c5cb2962dde8bee83704fcfa1bc9)

Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
11 days ago[3.15] gh-151427: add 'not macOS' and 'not iOS' restrictions on availability state...
Miss Islington (bot) [Fri, 19 Jun 2026 08:18:49 +0000 (10:18 +0200)] 
[3.15] gh-151427: add  'not macOS' and 'not iOS' restrictions on availability state of some functions in `os` module. (GH-151537) (#151699)

(cherry picked from commit da69fcf98de500b1e10bdce41a05c904e345d89f)
Co-authored-by: Duprat <yduprat@gmail.com>
11 days ago[3.15] gh-101100: Document os.uname_result and os.statvfs_result with related constan...
Miss Islington (bot) [Fri, 19 Jun 2026 07:34:16 +0000 (09:34 +0200)] 
[3.15] gh-101100: Document os.uname_result and os.statvfs_result with related constants (GH-151301) (GH-151692)

(cherry picked from commit 9688d252d330b0b586760a121ee8c8f7215176e8)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
11 days ago[3.15] gh-146353: Document `PyBytesWriter_GetData` pointer validity (GH-151418) ...
Miss Islington (bot) [Thu, 18 Jun 2026 17:39:20 +0000 (19:39 +0200)] 
[3.15] gh-146353: Document `PyBytesWriter_GetData` pointer validity (GH-151418) (GH-151664)

gh-146353: Document `PyBytesWriter_GetData` pointer validity (GH-151418)
(cherry picked from commit e99b319682fe984074e32f52354dbec23ded4d0a)

Co-authored-by: Harjoth Khara <harjoth.khara@gmail.com>
11 days ago[3.15] gh-86726: Add few missing versionadded directives (GH-151662) (GH-151663)
Miss Islington (bot) [Thu, 18 Jun 2026 15:56:14 +0000 (17:56 +0200)] 
[3.15] gh-86726: Add few missing versionadded directives (GH-151662) (GH-151663)

Pack.pack_content, Place.place_content and Grid.grid_content were
added in 3.15.
(cherry picked from commit bfecfcc2a860071c8e5022ac512bde94e0fb5f76)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
11 days ago[3.15] gh-86726: Fix the documented return type of tkinter info_patchlevel() (GH...
Miss Islington (bot) [Thu, 18 Jun 2026 14:44:51 +0000 (16:44 +0200)] 
[3.15] gh-86726: Fix the documented return type of tkinter info_patchlevel() (GH-151655) (GH-151658)

It returns a sys.version_info-like named tuple, not a string.
(cherry picked from commit 3cd02a1c2da023974464fd1155982a16474f331b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
11 days ago[3.15] gh-86726: Fix "deprecated" directive for wm_attributes (GH-151652) (GH-151654)
Miss Islington (bot) [Thu, 18 Jun 2026 13:44:12 +0000 (15:44 +0200)] 
[3.15] gh-86726: Fix "deprecated" directive for wm_attributes (GH-151652) (GH-151654)

(cherry picked from commit d47c27e47a6c6969737616f2f58036a5f536e60a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
11 days ago[3.15] gh-86726: Document the full public API of tkinter (GH-151579) (GH-151649)
Miss Islington (bot) [Thu, 18 Jun 2026 12:47:36 +0000 (14:47 +0200)] 
[3.15] gh-86726: Document the full public API of tkinter (GH-151579) (GH-151649)

Replace the previously sparse reference documentation with full coverage of
the public API of the tkinter package, written from the Tcl/Tk manual pages,
the existing documentation and the module docstrings.

* Doc/library/tkinter.rst gains a "Reference" section documenting every public
  class, method, function and constant of the core module -- the widgets, the
  Misc, Wm, Pack, Place, Grid, XView and YView mix-ins, the Variable and image
  classes, the module-level functions and the symbolic constants.
* Doc/library/tkinter.ttk.rst, dialog.rst, tkinter.font.rst and the other
  module pages document their remaining classes, methods and functions.

The descriptions are Python-oriented (correct return types -- tuples rather
than Tcl lists, booleans, integers, None on cancellation, and so on) and were
checked against the Tcl/Tk 9.1 manual pages and the implementation.

versionadded, versionchanged and deprecated directives are added for the
public API, determined from the git history relative to Python 3.0: the
tkinter.ttk module (3.1); the Text, Wm, Menu and Misc methods exposing Tk 8.5
features (3.3); and the many later additions and behavior changes up to 3.15.
The Tk version required by features added after Tk 8.6 is noted as well.  The
bundled Tcl/Tk version is updated to 9.0 and the manual-page links point at
the tcl9.0 reference.

--------
(cherry picked from commit 8b270b72a2d20bf4b7fb457141cd68a38808f7d9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
11 days ago[3.15] gh-151229: Finalize JIT tracer in test eval-frame stub (gh-151609) (gh-151648)
Miss Islington (bot) [Thu, 18 Jun 2026 12:45:25 +0000 (14:45 +0200)] 
[3.15] gh-151229: Finalize JIT tracer in test eval-frame stub (gh-151609) (gh-151648)

gh-151229: Finalize JIT tracer in test eval-frame stub (gh-151609)
(cherry picked from commit 3fa92e7c55d74aea062c4b32d895e84d7aaa3bce)

Co-authored-by: Donghee Na <donghee.na@python.org>
12 days ago[3.15] gh-151623: Add missing curses docstrings and document intrflush() (GH-151632...
Miss Islington (bot) [Thu, 18 Jun 2026 11:23:06 +0000 (13:23 +0200)] 
[3.15] gh-151623: Add missing curses docstrings and document intrflush() (GH-151632) (GH-151641)

(cherry picked from commit 12add3822f458a3e107dff4176b4c4b991764ea7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 days ago[3.15] gh-151623: Improve curses documentation style (GH-151635) (#151636)
Miss Islington (bot) [Thu, 18 Jun 2026 09:57:03 +0000 (11:57 +0200)] 
[3.15] gh-151623: Improve curses documentation style (GH-151635) (#151636)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
12 days ago[3.15] gh-151623: Improve curses documentation and docstrings (GH-151625) (GH-151628)
Miss Islington (bot) [Thu, 18 Jun 2026 08:48:56 +0000 (10:48 +0200)] 
[3.15] gh-151623: Improve curses documentation and docstrings (GH-151625) (GH-151628)

Fix errors and clarify the curses, curses.panel and curses.ascii docs
against X/Open Curses and ncurses, and sync the affected docstrings.
(cherry picked from commit 65afcdd8dfb3621ac696fce076e6282c76a04b2b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 days ago[3.15] gh-149044: Improve Py_tp_base[s] docs & error message for non-type bases ...
Miss Islington (bot) [Thu, 18 Jun 2026 08:17:15 +0000 (10:17 +0200)] 
[3.15] gh-149044: Improve Py_tp_base[s] docs & error message for non-type bases (GH-151252) (GH-151606)

gh-149044: Improve Py_tp_base[s] docs & error message for non-type bases (GH-151252)

The initial implementation of PEP 820 worsened the error message
when non-types are given as base types in Py_tp_bases & Py_tp_base.
Bring back the 'bases must be types' wording and add a 'got' note for
easier debugging.

Improve slot ID documentation, and soft-deprecate Py_tp_base
(as per the PEP).
(cherry picked from commit 16185e9fe2037d2171626f79c3d099bd7772b53e)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
12 days ago[3.15] gh-151510: Fix __lazy_import__ without frame (GH-151511) (#151610)
Miss Islington (bot) [Wed, 17 Jun 2026 18:40:33 +0000 (20:40 +0200)] 
[3.15] gh-151510: Fix __lazy_import__ without frame (GH-151511) (#151610)

gh-151510: Fix __lazy_import__ without frame (GH-151511)
(cherry picked from commit eff805b7a7a9678639bbcebe804864406cc4eab2)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
12 days ago[3.15] gh-120665: make unittest loaders avoid loading test cases that are abstract...
Miss Islington (bot) [Wed, 17 Jun 2026 15:47:27 +0000 (17:47 +0200)] 
[3.15] gh-120665: make unittest loaders avoid loading test cases that are abstract base classes (GH-120666) (#151601)

gh-120665: make unittest loaders avoid loading test cases that are abstract base classes (GH-120666)
(cherry picked from commit 5ad3c6dfbfe60a7f232e9604866c77ced24c4bfe)

Co-authored-by: blhsing <blhsing@gmail.com>
12 days ago[3.15] gh-151544: Fixes CVE-2026-12003 by removing the fallback to %VPATH%/Modules...
Miss Islington (bot) [Wed, 17 Jun 2026 15:42:35 +0000 (17:42 +0200)] 
[3.15] gh-151544: Fixes CVE-2026-12003 by removing the fallback to %VPATH%/Modules/Setup.local for discovering sources in getpath.py (GH-151545)

(cherry picked from commit 9e863fab283eddca9c2a8f9d1ee30f4dc243e314)

Co-authored-by: Steve Dower <steve.dower@python.org>