]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
9 hours ago[3.14] gh-103878: Document that the cancelled file dialog value is only falsy (GH... 3.14
Miss Islington (bot) [Mon, 29 Jun 2026 20:00:41 +0000 (22:00 +0200)] 
[3.14] gh-103878: Document that the cancelled file dialog value is only falsy (GH-152429) (GH-152627)

Its exact type (empty string, tuple, list or None) varies between
platforms and Tk versions, so advise testing the result for truth.
(cherry picked from commit 9dd3340a623093b5d0ff054d5d42c370bb09221c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
9 hours ago[3.14] gh-151987: Pass filter_function to `TarFile._extract_one()` during `.extract...
Miss Islington (bot) [Mon, 29 Jun 2026 19:11:22 +0000 (21:11 +0200)] 
[3.14] gh-151987: Pass filter_function to `TarFile._extract_one()` during `.extract()` (GH-151988) (#152609)

(cherry picked from commit 7ccdbaba2c54250a70d7f25632152df7655a5e0a)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Seth Michael Larson <seth@python.org>
11 hours ago[3.14] gh-69134: Wait until mapped in keyboard virtual-event tests (GH-152599) (GH...
Miss Islington (bot) [Mon, 29 Jun 2026 17:31:58 +0000 (19:31 +0200)] 
[3.14] gh-69134: Wait until mapped in keyboard virtual-event tests (GH-152599) (GH-152606)

test_virtual_events and test_selection_event generate key events after
focus_force().  On Windows these are only delivered once the toplevel is
mapped, so they could be dropped and the test fail.  Wait until the
widget is mapped, as the other GUI tests already do.
(cherry picked from commit be4eebb8386d07f360dd835a0ecb4a1eb6385736)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
12 hours ago[3.14] gh-152228: Fix an assertion failure in `str.replace` under a limited memory...
Miss Islington (bot) [Mon, 29 Jun 2026 16:49:17 +0000 (18:49 +0200)] 
[3.14] gh-152228: Fix an assertion failure in `str.replace` under a limited memory case (GH-152229) (#152616)

gh-152228: Fix an assertion failure in `str.replace` under a limited memory case (GH-152229)
(cherry picked from commit c5043dce1c6743682d93c71e937b95e7d27e0b35)

Co-authored-by: sobolevn <mail@sobolevn.me>
13 hours ago[3.14] gh-152502: Detect optional curses functions with configure probes (GH-152504...
Serhiy Storchaka [Mon, 29 Jun 2026 15:25:30 +0000 (18:25 +0300)] 
[3.14] gh-152502: Detect optional curses functions with configure probes (GH-152504) (GH-152589) (GH-152603)

set_escdelay(), set_tabsize() and the ESCDELAY and TABSIZE variables were
gated only by the ncurses-specific NCURSES_EXT_FUNCS macro, which excluded
them when building against other curses implementations such as NetBSD curses
even when they provided them.  Detect each with a configure capability probe
and gate on HAVE_CURSES_*.
(cherry picked from commit 0635e55b47e306aa6cc0610105775849b0699e2c)
(cherry picked from commit 2a4ffa6f2128308ba5ba81a7c8912fb781a271e0)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
15 hours ago[3.14] gh-152587: Stop documenting bogus default values in tkinter variable methods...
Miss Islington (bot) [Mon, 29 Jun 2026 14:08:46 +0000 (16:08 +0200)] 
[3.14] gh-152587: Stop documenting bogus default values in tkinter variable methods (GH-152594) (GH-152597)

The name parameter of Misc.wait_variable(), setvar() and getvar() and the
value parameter of setvar() should not be optional.  Their default values
('PY_VAR' and '1') are not meaningful and should not be advertised.
(cherry picked from commit e134a1aa36027fb3c8bd9493028072365b19479b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
15 hours ago[3.14] gh-151096: Fix test_embed with split exec prefix (GH-151288) (#152591)
Miss Islington (bot) [Mon, 29 Jun 2026 13:59:27 +0000 (15:59 +0200)] 
[3.14] gh-151096: Fix test_embed with split exec prefix (GH-151288) (#152591)

gh-151096: Fix test_embed with split exec prefix (GH-151288)
(cherry picked from commit b19839b40c771904b87ea35127f9fa1b8058597e)

Co-authored-by: Harjoth Khara <harjoth.khara@gmail.com>
17 hours ago[3.14] gh-133031: Support non-ASCII characters in curses.textpad.Textbox (GH-152451...
Miss Islington (bot) [Mon, 29 Jun 2026 11:39:36 +0000 (13:39 +0200)] 
[3.14] gh-133031: Support non-ASCII characters in curses.textpad.Textbox (GH-152451) (GH-152468)

Textbox mangled non-ASCII characters of an 8-bit locale encoding: it masked
reads with curses.ascii.ascii(), which clears the 8th bit, and tested input
with curses.ascii.isprint(), which rejects bytes above 127.

Decode cells and input bytes with the window's encoding instead.  Cells are
read with instr() and the lower-right cell is written as text, since inch() and
insch() with an int byte mishandle a non-ASCII character on a wide build.  This
uses only the byte-oriented curses API, so it works without wide-character
support.
(cherry picked from commit c253f0c14b046cf79881d0602620a3b2a15c2316)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
18 hours ago[3.14] gh-152359: Update numbers.rst to reference numeric-hash docs (GH-152549) ...
Miss Islington (bot) [Mon, 29 Jun 2026 11:05:15 +0000 (13:05 +0200)] 
[3.14] gh-152359: Update numbers.rst to reference numeric-hash docs (GH-152549) (#152580)

gh-152359: Update numbers.rst to reference numeric-hash docs (GH-152549)
(cherry picked from commit 8ec36f14a552136d54072e3e5bb595ec1f4f0b5f)

Co-authored-by: Paper Moon <tangyuan0821@email.cn>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
18 hours ago[3.14] gh-71450: Document that Tcl sets the HOME variable on Windows (GH-152568)...
Miss Islington (bot) [Mon, 29 Jun 2026 10:29:10 +0000 (12:29 +0200)] 
[3.14] gh-71450: Document that Tcl sets the HOME variable on Windows (GH-152568) (GH-152575)

Also fix the ntpath.expanduser() docstring, which no longer uses $HOME.
(cherry picked from commit 1540584d5d0b6483b78256194825e76d2e52ad21)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
19 hours ago[3.14] gh-152375: Fix undefined behaviour in the `INSTRUMENTED_JUMP` macro (GH-152376...
Miss Islington (bot) [Mon, 29 Jun 2026 09:40:05 +0000 (11:40 +0200)] 
[3.14] gh-152375: Fix undefined behaviour in the `INSTRUMENTED_JUMP` macro (GH-152376) (#152567)

(cherry picked from commit cdec9acd63c33d9b822700de8f63eb94d86e1c93)

Co-authored-by: Stan Ulbrych <stan@python.org>
19 hours ago[3.14] gh-148909: Fix broken author attribution URL in 'The Python 2.3 Method Resolut...
Miss Islington (bot) [Mon, 29 Jun 2026 09:35:29 +0000 (11:35 +0200)] 
[3.14] gh-148909: Fix broken author attribution URL in 'The Python 2.3 Method Resolution Order' doc (GH-149092) (#152572)

(cherry picked from commit 7aae0e58b7c02cefd3e13b0d1b65b4ef5cb2b57e)

Co-authored-by: Ivy Xu <fakeshadow1337@gmail.com>
19 hours ago[3.14] gh-140146: Fix for stdin redirection to a pipe with interactive tkinter on...
Miss Islington (bot) [Mon, 29 Jun 2026 09:11:33 +0000 (11:11 +0200)] 
[3.14] gh-140146: Fix for stdin redirection to a pipe with interactive tkinter on Windows (GH-148819) (GH-152561)

(cherry picked from commit 6d209cbb93d0871ad4a5883637a8f0aebc053f76)

Co-authored-by: mdehoon <mjldehoon@yahoo.com>
20 hours ago[3.14] gh-85320: Use UTF-8 for IDLE configuration and breakpoint files (GH-152475...
Miss Islington (bot) [Mon, 29 Jun 2026 08:41:52 +0000 (10:41 +0200)] 
[3.14] gh-85320: Use UTF-8 for IDLE configuration and breakpoint files (GH-152475) (GH-152556)

They were read and written using the locale encoding, which could corrupt
non-ASCII paths and made them non-portable.
(cherry picked from commit f6e904e1a666cb1e5664750b1c3d8f89cba3a769)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
22 hours ago[3.14] gh-87577: Document that wm_manage does not accept ttk widgets (GH-152532)...
Miss Islington (bot) [Mon, 29 Jun 2026 06:39:03 +0000 (08:39 +0200)] 
[3.14] gh-87577: Document that wm_manage does not accept ttk widgets (GH-152532) (GH-152544)

wm_manage() works only with the classic tkinter Frame, LabelFrame and
Toplevel widgets, not their tkinter.ttk counterparts.
(cherry picked from commit 2670cb062c9ec31cd6df7be645f929a8398601c7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
26 hours ago[3.14] gh-148660: Fix use-after-free in OrderedDict.copy() on reentrant mutation...
Miss Islington (bot) [Mon, 29 Jun 2026 02:30:22 +0000 (04:30 +0200)] 
[3.14] gh-148660: Fix use-after-free in OrderedDict.copy() on reentrant mutation (GH-151573) (#152541)

gh-148660: Fix use-after-free in OrderedDict.copy() on reentrant mutation (GH-151573)

* gh-148660: Fix use-after-free in OrderedDict.copy() on reentrant mutation

OrderedDict.copy() walks the internal linked list while building the new
dict. The loop body can run arbitrary Python (a key's __eq__/__hash__, or
a subclass __getitem__/__setitem__) which can clear the source dict and
free the nodes being iterated.

Detect this the same way OrderedDict.__eq__ already does (gh-119004):
snapshot od_state before the loop, hold a strong reference to the key and
read the hash before any reentrant call, and raise RuntimeError if the
state changed before advancing to the next node.

* gh-148660: fix NEWS nit, suppress undocumented OrderedDict.copy xref
(cherry picked from commit 7d128e319f3730e776a9161a4b5e9de95c802eaf)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
27 hours ago[3.14] gh-151416: fix a borrowed ref potential use after free via fspath in os.spawnv...
Gregory P. Smith [Mon, 29 Jun 2026 02:03:03 +0000 (19:03 -0700)] 
[3.14] gh-151416: fix a borrowed ref potential use after free via fspath in os.spawnv/spawnve (GH-151417) (#152536)

gh-151416: fix a borrowed ref potential use after free via fspath in os.spawnv/spawnve (GH-151417)

* gh-151416: Fix use-after-free in os.spawnv/spawnve when __fspath__ mutates argv

The argv conversion loops passed references borrowed from the argv list
into fsconvert_strdup().  An item's __fspath__() can mutate the list and
release its reference to the item, leaving the converter operating on a
freed object.  A shrunk list could also make PyList_GetItem() return
NULL, which PyUnicode_FS{Converter,Decoder}() treat as a request to
release an uninitialized output variable.

Hold a strong reference to each item across the conversion, matching
parse_arglist() and parse_envlist().

* gh-151416: Don't mask non-TypeError argv conversion errors in os.spawnv

os.spawnv() replaced any error raised during argv item conversion,
such as MemoryError, codec errors, or the embedded-null ValueError,
with a generic TypeError.  Only add the contextual message when the
conversion actually raised TypeError, matching how os.spawnve() and
the exec functions propagate these errors.

The test is gated to the native C spawnv: the Python fallback used
elsewhere reports conversion failures from the forked child as exit
status 127 instead of raising.

(cherry picked from commit f57d3d6db39ea0bd39743f1a614b46cbefbfdab6)

33 hours ago[3.14] gh-150743: Limit trailer lines and interim responses read by http.client ...
Gregory P. Smith [Sun, 28 Jun 2026 19:32:02 +0000 (12:32 -0700)] 
[3.14] gh-150743: Limit trailer lines and interim responses read by http.client (GH-150749)

http.client read chunked-response trailer lines and skipped interim (1xx)
responses in unbounded loops, so a server streaming either forever would
hang the client even with a socket timeout set (data keeps arriving, so
the timeout never fires).

Trailer lines are now limited to max_response_headers (100 by default)
and interim responses to 100; HTTPException is raised past either limit.

Follow-up to gh-88188 for CVE-2021-3737, which bounded header lines
within an interim response but not these two sibling loops.

---

This issue was reported to us via [GHSA-w4q2-g22w-6fr4](https://github.com/python/cpython/security/advisories/GHSA-w4q2-g22w-6fr4)

35 hours ago[3.14] gh-69134: Harden tkinter GUI tests that depend on a mapped widget (GH-152499...
Miss Islington (bot) [Sun, 28 Jun 2026 17:38:01 +0000 (19:38 +0200)] 
[3.14] gh-69134: Harden tkinter GUI tests that depend on a mapped widget (GH-152499) (GH-152517)

Add wait_until_mapped() and AbstractTkTest.require_mapped() to
test_tkinter.support and use them to guard the assertions that need a
widget to be actually mapped (winfo_width(), identify(), coords(), ...).
This avoids intermittent failures under window managers that do not map
the widget promptly, without skipping the unrelated checks.
(cherry picked from commit 0fff6bd86cf0224152c509e295d3cbbd209098f3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
35 hours ago[3.14] gh-87881: Document the result of curses inch() and getbkgd() (GH-152488) ...
Miss Islington (bot) [Sun, 28 Jun 2026 17:18:59 +0000 (19:18 +0200)] 
[3.14] gh-87881: Document the result of curses inch() and getbkgd() (GH-152488) (GH-152511) (GH-152514)

Explain the character/attribute bit layout and how to extract the parts
(A_CHARTEXT and A_ATTRIBUTES bit-masks, pair_number() for the color pair).
(cherry picked from commit d831a690766e92b3be5e40134f64407bd041bcbf)
(cherry picked from commit 09013312bbdf9ff6583c95ba6bc2698e61c66be6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
36 hours ago[3.14] gh-78335: Complete the widget option lists in tkinter docstrings (GH-152485...
Miss Islington (bot) [Sun, 28 Jun 2026 16:53:29 +0000 (18:53 +0200)] 
[3.14] gh-78335: Complete the widget option lists in tkinter docstrings (GH-152485) (GH-152501)

Several widget __init__ docstrings omitted valid options, and Menubutton and
Message had no option list at all.  List every option supported by the widget,
tagging those added in Tk 9.0 and 9.1.

Add test_options_in_docstring, asserting that every option in OPTIONS is named
in the widget's __init__ docstring.  Options reported by keys() but not in the
docstring are only printed in verbose mode, as some depend on the Tk version.
(cherry picked from commit ba0c0e6be18ea56d00b4534cc9e32d1acaba96d6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
36 hours ago[3.14] gh-110904: Recommend windows-curses in the curses HOWTO (GH-152491) (GH-152507)
Miss Islington (bot) [Sun, 28 Jun 2026 16:37:50 +0000 (18:37 +0200)] 
[3.14] gh-110904: Recommend windows-curses in the curses HOWTO (GH-152491) (GH-152507)

The HOWTO pointed at UniCurses, which is unmaintained and exposes its own
API.  windows-curses provides the standard curses interface on Windows, so
existing code runs unchanged.
(cherry picked from commit 7b0dff7d16ce59df44847ab04567eb97bfbc3576)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
38 hours ago[3.14] gh-151029: Fix sys.remote_exec() unable to find writable memory when libpython...
Łukasz Langa [Sun, 28 Jun 2026 14:43:14 +0000 (07:43 -0700)] 
[3.14] gh-151029: Fix sys.remote_exec() unable to find writable memory when libpython replaced on disk (GH-151032) (#152464)

2 days ago[3.14] gh-152415: Exercise curses non-ASCII tests under 8-bit locale encodings (GH...
Miss Islington (bot) [Sat, 27 Jun 2026 21:05:33 +0000 (23:05 +0200)] 
[3.14] gh-152415: Exercise curses non-ASCII tests under 8-bit locale encodings (GH-152416) (GH-152453) (GH-152456)

The non-ASCII tests only exercised what the runner's locale could encode (in
practice UTF-8).  Add 8-bit-encoding cases to the character and string I/O
tests, each guarded by the existing encodability check: ASCII, a character
common to the Latin encodings ('é'), and ones distinctive to a single encoding
(byte 0xA4 is '¤' in ISO-8859-1, '€' in ISO-8859-15, 'є' in KOI8-U).  Run the
whole suite under different locales to cover them; unrepresentable cases skip.

* gh-152415: Verify character output round-trips in test_output_character

Read each written character back with in_wch() or instr() rather than
inch(), which on a wide build returns the low byte of the code point
instead of the locale-encoded byte and so mangles a non-ASCII character
of an 8-bit locale.  This lets the int-argument cases cover '€'/'є', and
adds matching coverage for the str argument.

insch() with an int byte > 127 is checked only for Latin-1: on a wide
build ncurses winsch stores a printable byte directly as a code point
instead of decoding it through the locale.
(cherry picked from commit 003d3620cc0f44caca7bf26c3e6964f5f379645f)
(cherry picked from commit a75aa418deeec926a10eef12cf4e8215fd67c947)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2 days ago[3.14] gh-152391: Improve `test_interpreters.test_stress` test (GH-152396) (#152428)
Miss Islington (bot) [Sat, 27 Jun 2026 15:38:45 +0000 (17:38 +0200)] 
[3.14] gh-152391: Improve `test_interpreters.test_stress` test (GH-152396) (#152428)

gh-152391: Improve `test_interpreters.test_stress` test (GH-152396)
(cherry picked from commit 219f7a9453a2a89266f6e65d75df1606b4816043)

Co-authored-by: sobolevn <mail@sobolevn.me>
2 days ago[3.14] gh-152305: Fix `_pydatetime.time.strftime()` raising on year directives (GH...
Miss Islington (bot) [Sat, 27 Jun 2026 15:32:59 +0000 (17:32 +0200)] 
[3.14] gh-152305: Fix `_pydatetime.time.strftime()` raising on year directives (GH-152306) (#152426)

(cherry picked from commit 5733361fdd85519c931e67fd7cab0ff3a11b8ec0)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
2 days ago[3.14] gh-151126: Sets missing exceptions in `tkinter` and `socket` modules initializ...
Miss Islington (bot) [Sat, 27 Jun 2026 15:26:45 +0000 (17:26 +0200)] 
[3.14] gh-151126: Sets missing exceptions in `tkinter` and `socket` modules initializations (GH-152418) (#152421)

gh-151126: Sets missing exceptions in `tkinter` and `socket` modules initializations (GH-152418)
(cherry picked from commit a9fa8560143098168e0380386acbf4846c37472b)

Co-authored-by: sobolevn <mail@sobolevn.me>
2 days ago[3.14] gh-152402: Use `support.nomemtest` in `test_pyexpat` (GH-152403) (#152412)
Miss Islington (bot) [Sat, 27 Jun 2026 13:55:04 +0000 (15:55 +0200)] 
[3.14] gh-152402: Use `support.nomemtest` in `test_pyexpat` (GH-152403) (#152412)

gh-152402: Use `support.nomemtest` in `test_pyexpat` (GH-152403)
(cherry picked from commit 109c59e25f558732bfde8b65bbbf305a6a8a05d8)

Co-authored-by: sobolevn <mail@sobolevn.me>
2 days ago[3.14] gh-70273: Document default class bindings in tkinter (GH-152389) (GH-152394)
Miss Islington (bot) [Sat, 27 Jun 2026 11:46:08 +0000 (13:46 +0200)] 
[3.14] gh-70273: Document default class bindings in tkinter (GH-152389) (GH-152394)

Note in the Bindings and events section that every widget inherits Tk
class bindings for its standard behavior, where they are documented, and
how to suppress an unwanted one by returning "break" from a callback.
(cherry picked from commit 4fd69ef97a67fc935e0d4f30662f2a1985ba6be9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2 days ago[3.14] gh-82830: Improve tkinter messagebox docstrings and cursor documentation ...
Miss Islington (bot) [Sat, 27 Jun 2026 11:27:28 +0000 (13:27 +0200)] 
[3.14] gh-82830: Improve tkinter messagebox docstrings and cursor documentation (GH-152380) (GH-152387)

Document Windows cursor files (gh-99089).
(cherry picked from commit ea7f64a65cb52b8b720cbf5d590c2cf89de8d407)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2 days ago[3.14] gh-152212: Reject a POSIX TZ footer with a missing std offset in pure-Python...
Miss Islington (bot) [Sat, 27 Jun 2026 09:44:12 +0000 (11:44 +0200)] 
[3.14] gh-152212: Reject a POSIX TZ footer with a missing std offset in pure-Python `zoneinfo` (GH-152213) (#152378)

(cherry picked from commit 93454fe0daa2b29e8fefbe76aed7af4fa1eb8623)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
2 days ago[3.14] gh-71880: Allow editing the last cell in curses.textpad.Textbox (GH-152363...
Miss Islington (bot) [Sat, 27 Jun 2026 07:45:50 +0000 (09:45 +0200)] 
[3.14] gh-71880: Allow editing the last cell in curses.textpad.Textbox (GH-152363) (GH-152365)

Textbox.edit() ignored typing in the lower-right cell of the window.  It is
now written with insch(), which fills the cell without moving the cursor out
of the window (addch() there raises an error and scrolls a scrollable window).
(cherry picked from commit 11b394381f30815a8ad0123afb0a55e7a0369f79)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2 days ago[3.14] gh-151678: Add more tests for tkinter.dnd (GH-152362) (GH-152368)
Miss Islington (bot) [Sat, 27 Jun 2026 07:38:48 +0000 (09:38 +0200)] 
[3.14] gh-151678: Add more tests for tkinter.dnd (GH-152362) (GH-152368)

Cover the drag cursor, the Motion and ButtonRelease bindings, switching
between targets, the target search up the master chain, dnd_accept()
returning None, and restarting after a drag has finished.
(cherry picked from commit 389e00f13fb5b20b424980b08678753441db7529)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
3 days ago[3.14] gh-38464: Make tkinter nametowidget() work with cloned menus (GH-152336) ...
Miss Islington (bot) [Fri, 26 Jun 2026 23:28:56 +0000 (01:28 +0200)] 
[3.14] gh-38464: Make tkinter nametowidget() work with cloned menus (GH-152336) (GH-152350)

Map the auto-generated name of a cloned menu (a menu used as a menubar
or a cascade) back to the original widget instead of raising KeyError.
(cherry picked from commit 5c3555bdc56a8e110a7d366f8ac0a93cd082e90f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
3 days ago[3.14] gh-88758: Handle non-tkinter widgets in tkinter focus methods (GH-152337)...
Miss Islington (bot) [Fri, 26 Jun 2026 23:28:01 +0000 (01:28 +0200)] 
[3.14] gh-88758: Handle non-tkinter widgets in tkinter focus methods (GH-152337) (GH-152347)

focus_get(), focus_displayof(), focus_lastfor() and winfo_containing()
now return None instead of raising KeyError when the focused widget was
not created by tkinter (for example a torn-off menu).
(cherry picked from commit 5fed5ce85d9c862673cc68294f757f345bbcc9b1)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
3 days ago[3.14] IDLE: fix dedent() usage in htest (GH-152256) (#152343)
Miss Islington (bot) [Fri, 26 Jun 2026 23:14:03 +0000 (01:14 +0200)] 
[3.14] IDLE: fix dedent() usage in htest (GH-152256) (#152343)

IDLE: fix dedent() usage in htest (GH-152256)

Fix typos: in GH-112642, initial string concatenation quotes were left when switching to textwrap.dedent().
(cherry picked from commit 74272d4f0b8478c1d879671ba35ec4ddaae50178)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
3 days ago[3.14] gh-98894: Skip test_dtrace when building without dtrace (GH-152239) (#152301)
Miss Islington (bot) [Fri, 26 Jun 2026 20:59:02 +0000 (22:59 +0200)] 
[3.14] gh-98894: Skip test_dtrace when building without dtrace (GH-152239) (#152301)

gh-98894: Skip test_dtrace when building without dtrace (GH-152239)
(cherry picked from commit 671357691f84820d4a4799012e937ab9dcbfdaca)

Co-authored-by: stratakis <cstratak@redhat.com>
3 days ago[3.14] gh-80937: Fix memory leak in tkinter createcommand (GH-152294) (GH-152328)
Miss Islington (bot) [Fri, 26 Jun 2026 19:17:48 +0000 (21:17 +0200)] 
[3.14] gh-80937: Fix memory leak in tkinter createcommand (GH-152294) (GH-152328)

A command created with createcommand() held a strong reference to the
interpreter, forming an uncollectable cycle (interpreter -> command ->
interpreter) that kept the interpreter and the callback alive until the
command was removed with deletecommand() or destroy().  The command now
borrows the reference; it cannot outlive the interpreter, which deletes its
commands when finalized.
(cherry picked from commit bbf7786a904e558a15d01475356167e29b2e3708)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
3 days ago[3.14] gh-152235: Defer GC tracking in set.union and set.difference (gh-152290) ...
Miss Islington (bot) [Fri, 26 Jun 2026 17:38:10 +0000 (19:38 +0200)] 
[3.14] gh-152235: Defer GC tracking in set.union and set.difference (gh-152290) (gh-152312)

gh-152235: Defer GC tracking in set.union and set.difference (gh-152290)
(cherry picked from commit 5a549e82b81378cb294904dab49cbee853bddd64)

Co-authored-by: Donghee Na <donghee.na@python.org>
3 days ago[3.14] gh-152052: Fix misleading `json` error for `\uXXXX` escape at the end of input...
Miss Islington (bot) [Fri, 26 Jun 2026 15:28:53 +0000 (17:28 +0200)] 
[3.14] gh-152052: Fix misleading `json` error for `\uXXXX` escape at the end of input (GH-152053) (#152284)

(cherry picked from commit 588be7af08c04d63c1a920539c64885fbc4c6d38)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
3 days ago[3.14] gh-139145: Fix tkinter event loop in interactive mode (GH-152257) (GH-152292)
Miss Islington (bot) [Fri, 26 Jun 2026 15:01:09 +0000 (17:01 +0200)] 
[3.14] gh-139145: Fix tkinter event loop in interactive mode (GH-152257) (GH-152292)

When a Tcl command running its own event loop (such as vwait or
wait_variable) was active and the user typed input on stdin, the event
loop kept spinning at 100% CPU.  The stdin file handler is now removed as
soon as input becomes available.

Also fix gh-139816: an exception raised in a callback no longer stops the
event loop to wait for Enter on a Python built without readline; pending
callbacks keep running until input is actually available on stdin.
(cherry picked from commit 3ffda34f5cd3809a8755c9596948e4e477661d5f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: mdehoon <mjldehoon@yahoo.com>
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
3 days ago[3.14] gh-152235: Defer GC tracking in more set operations (gh-152273) (gh-152279)
Miss Islington (bot) [Fri, 26 Jun 2026 14:04:16 +0000 (16:04 +0200)] 
[3.14] gh-152235: Defer GC tracking in more set operations (gh-152273) (gh-152279)

gh-152235: Defer GC tracking in more set operations (gh-152273)
(cherry picked from commit a87d24a69d1e97a1e9643c8951d180918ef36e4c)

Co-authored-by: Donghee Na <donghee.na@python.org>
3 days ago[3.14] gh-152236: Fix skips on `_testcapi.set_nomemory` tests (GH-152253) (#152282)
Miss Islington (bot) [Fri, 26 Jun 2026 14:03:18 +0000 (16:03 +0200)] 
[3.14] gh-152236: Fix skips on `_testcapi.set_nomemory` tests (GH-152253) (#152282)

gh-152236: Fix skips on `_testcapi.set_nomemory` tests (GH-152253)
(cherry picked from commit 1cbe460eb6c5f40980463f381b3096c92320ff84)

Co-authored-by: sobolevn <mail@sobolevn.me>
3 days ago[3.14] gh-152156: Fix a crash in `interpeters.create` under limited memory conditions...
Miss Islington (bot) [Fri, 26 Jun 2026 12:09:07 +0000 (14:09 +0200)] 
[3.14] gh-152156: Fix a crash in `interpeters.create` under limited memory conditions (GH-152163) (#152268)

gh-152156: Fix a crash in `interpeters.create` under limited memory conditions (GH-152163)
(cherry picked from commit 3ad66bf10dbb929bcf8efd889e56a9b9068319ca)

Co-authored-by: sobolevn <mail@sobolevn.me>
3 days ago[3.14] gh-152246: Fix pure-Python `zoneinfo` accepting invalid seperators in POSIX...
Miss Islington (bot) [Fri, 26 Jun 2026 12:08:00 +0000 (14:08 +0200)] 
[3.14] gh-152246: Fix pure-Python `zoneinfo` accepting invalid seperators in POSIX TZ rules (GH-152247) (#152266)

(cherry picked from commit f47acc7f0920cb5ef507352172914876cea18a48)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
4 days ago[3.14] gh-152235: Defer GC tracking of set and frozenset to end of construction ...
Miss Islington (bot) [Fri, 26 Jun 2026 03:00:03 +0000 (05:00 +0200)] 
[3.14] gh-152235: Defer GC tracking of set and frozenset to end of construction (gh-152237) (gh-152243)

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.14] gh-151929: Add pythoninfo commands to Tools/wasm/wasi (#152136) (#152224)
Victor Stinner [Thu, 25 Jun 2026 18:02:07 +0000 (20:02 +0200)] 
[3.14] gh-151929: Add pythoninfo commands to Tools/wasm/wasi (#152136) (#152224)

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

The "build-python", "build-host" and "build" commands now also run
"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)

4 days ago[3.14] gh-151929: Add pythoninfo-build command to Platforms/emscripten (GH-152210...
Miss Islington (bot) [Thu, 25 Jun 2026 16:52:57 +0000 (18:52 +0200)] 
[3.14] gh-151929: Add pythoninfo-build command to Platforms/emscripten (GH-152210) (#152218)

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.14] Don't require `_testcapi` for `test_code` (GH-152185) (#152201)
Miss Islington (bot) [Thu, 25 Jun 2026 14:00:21 +0000 (16:00 +0200)] 
[3.14] Don't require `_testcapi` for `test_code` (GH-152185) (#152201)

(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.14] gh-152168: Don't skip `test_bigmem` if `_testcapi` is missing (GH-152171)...
Miss Islington (bot) [Thu, 25 Jun 2026 13:59:33 +0000 (15:59 +0200)] 
[3.14] gh-152168: Don't skip `test_bigmem` if `_testcapi` is missing (GH-152171) (#152199)

(cherry picked from commit 6a82832a0bd12ff6154fcfcccc3b7b5644eab0e8)

Co-authored-by: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com>
4 days ago[3.14] gh-151929: Get uptime on BSD/macOS in pythoninfo (#152189) (#152197)
Victor Stinner [Thu, 25 Jun 2026 13:40:29 +0000 (15:40 +0200)] 
[3.14] gh-151929: Get uptime on BSD/macOS in pythoninfo (#152189) (#152197)

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

* Check sysctlbyname() function and sys/sysctl.h header in
  configure.
* Add _testcapi.uptime_bsd() function.

(cherry picked from commit b6d89edc4a13a71734ae1f1e386122bf62d68ed8)

4 days ago[3.14] gh-151929: Get machine ID and uptime on Windows in pythoninfo (#152146) (...
Victor Stinner [Thu, 25 Jun 2026 13:08:35 +0000 (15:08 +0200)] 
[3.14] gh-151929: Get machine ID and uptime on Windows in pythoninfo (#152146) (#152187) (#152193)

[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)
(cherry picked from commit ae4c2c126b5a67bcf22f182ce818294c1e71b1c5)

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

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>
4 days ago[3.14] gh-151126: Add missing `PyErr_NoMemory` in `_winapi.c` (GH-151588) (#152183)
Miss Islington (bot) [Thu, 25 Jun 2026 11:14:19 +0000 (13:14 +0200)] 
[3.14] gh-151126: Add missing `PyErr_NoMemory` in `_winapi.c` (GH-151588) (#152183)

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>
4 days ago[3.14] gh-151126: Fix missing `PyErr_NoMemory` in `testinternalcapi.c` (GH-152177...
Miss Islington (bot) [Thu, 25 Jun 2026 10:19:35 +0000 (12:19 +0200)] 
[3.14] gh-151126: Fix missing `PyErr_NoMemory` in `testinternalcapi.c` (GH-152177) (#152180)

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

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

(cherry picked from commit 6f9c76d8d86997012acfa09fed05396aa9349bbf)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
4 days ago[3.14] gh-151126: Fix missing memory errors in `_interpretersmodule.c` (GH-151624...
Miss Islington (bot) [Thu, 25 Jun 2026 09:26:40 +0000 (11:26 +0200)] 
[3.14] gh-151126: Fix missing memory errors in `_interpretersmodule.c` (GH-151624) (#152170)

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

Co-authored-by: stevens <lipengyu@kylinos.cn>
4 days ago[3.14] gh-151763: Fix crash in `_interpqueues.create` on `MemoryError` (GH-152131...
Miss Islington (bot) [Thu, 25 Jun 2026 07:31:26 +0000 (09:31 +0200)] 
[3.14] gh-151763: Fix crash in `_interpqueues.create` on `MemoryError` (GH-152131) (#152159)

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.14] gh-151929: Get boot ID, machine ID and uptime in test.pythoninfo (GH-152127...
Miss Islington (bot) [Wed, 24 Jun 2026 23:56:41 +0000 (01:56 +0200)] 
[3.14] gh-151929: Get boot ID, machine ID and uptime in test.pythoninfo (GH-152127) (#152135)

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.14] gh-105895: Add `match` and `case` doc to `help()` (GH-152113) (#152129)
sobolevn [Wed, 24 Jun 2026 22:14:40 +0000 (01:14 +0300)] 
[3.14] gh-105895: Add `match` and `case` doc to `help()` (GH-152113) (#152129)

(cherry picked from commit 1d55b3778c1c31549c5f914fcc451db4a3dcc501)

Co-authored-by: dzherb <zherbin.dima@yandex.ru>
Co-authored-by: Stan Ulbrych <stan@python.org>
5 days ago[3.14] gh-86726: Improve the structure of the tkinter reference (GH-152109 (GH-152111...
Serhiy Storchaka [Wed, 24 Jun 2026 19:32:28 +0000 (22:32 +0300)] 
[3.14] gh-86726: Improve the structure of the tkinter reference (GH-152109 (GH-152111) (GH-152116)

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)
(cherry picked from commit 2d5187116b526b3570c0010ba58f4066b6be468d)

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

(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.14] gh-151763: Fix NULL dereference in `os._path_normpath()` under OOM (GH-151779...
Miss Islington (bot) [Wed, 24 Jun 2026 16:23:16 +0000 (18:23 +0200)] 
[3.14] gh-151763: Fix NULL dereference in `os._path_normpath()` under OOM (GH-151779) (#152095)

(cherry picked from commit ce8b81fff4094bd0cfb0c57193135bfc904c0ca2)

Co-authored-by: Zain Nadeem <zainnadeemzainnadeem80@gmail.com>
5 days ago[3.14] `valgrind-python.supp`: Update suppression for readline leaks (GH-151783)...
Miss Islington (bot) [Wed, 24 Jun 2026 14:03:22 +0000 (16:03 +0200)] 
[3.14] `valgrind-python.supp`: Update suppression for readline leaks (GH-151783) (#152085)

`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.14] gh-152020: Fix asyncio.all_tasks() loosing eager tasks on FT-build (GH-152022...
Timofei [Wed, 24 Jun 2026 13:23:57 +0000 (16:23 +0300)] 
[3.14] gh-152020: Fix asyncio.all_tasks() loosing eager tasks on FT-build (GH-152022) (#152078)

[3.14] gh-152020: Fix `asyncio.all_tasks()` loosing eager tasks on FT-build (#152022)

5 days ago[3.14] gh-151814: Fix unbounded memory growth from repeated empty writes to `io.TextI...
Miss Islington (bot) [Wed, 24 Jun 2026 12:14:52 +0000 (14:14 +0200)] 
[3.14] 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.14] gh-151763: Fix possible crash on `CodeType` deallocation (GH-152034) (#152070)
Miss Islington (bot) [Wed, 24 Jun 2026 12:11:44 +0000 (14:11 +0200)] 
[3.14] gh-151763: Fix possible crash on `CodeType` deallocation (GH-152034) (#152070)

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.14] gh-143927: Normalize all line endings (CR, CRLF, and LF) in configparser ...
Miss Islington (bot) [Wed, 24 Jun 2026 09:46:33 +0000 (11:46 +0200)] 
[3.14] gh-143927: Normalize all line endings (CR, CRLF, and LF) in configparser (GH-143929) (GH-152003)

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>
5 days ago[3.14] gh-151497: Avoid huge pre-allocation for oversized tarfile extended headers...
Miss Islington (bot) [Wed, 24 Jun 2026 09:23:36 +0000 (11:23 +0200)] 
[3.14] gh-151497: Avoid huge pre-allocation for oversized tarfile extended headers (GH-151498) (GH-151979)

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>
5 days ago[3.14] gh-84008: Document that the LC_NUMERIC locale affects tkinter numeric widgets...
Miss Islington (bot) [Wed, 24 Jun 2026 06:37:55 +0000 (08:37 +0200)] 
[3.14] gh-84008: Document that the LC_NUMERIC locale affects tkinter numeric widgets (GH-152008) (GH-152050)

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>
5 days ago[3.14] 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:31:08 +0000 (08:31 +0200)] 
[3.14] gh-126219: Fix crash in tkinter.Tk with non-BMP className on Tcl/Tk 8.x (GH-151980) (GH-152046)

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.14] gh-151842: Fix crash upon OOM in `_interpreters.capture_exception` (GH-151843...
Miss Islington (bot) [Tue, 23 Jun 2026 20:57:34 +0000 (22:57 +0200)] 
[3.14] gh-151842: Fix crash upon OOM in `_interpreters.capture_exception` (GH-151843) (GH-152032)

(cherry picked from commit 5e0747db2f5a063657a117e88b58a20624c848d1)

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

(cherry picked from commit 30aeeb375b8f6c1f0eec95f7af60d3d4afa37f33)

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

(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.14] gh-151773: Fix NULL dereference in `PyContextVar_Set` (GH-151836) (#152010)
Miss Islington (bot) [Tue, 23 Jun 2026 14:41:31 +0000 (16:41 +0200)] 
[3.14] gh-151773: Fix NULL dereference in `PyContextVar_Set` (GH-151836) (#152010)

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.14] gh-151558: Fix symlink escape via `tarfile` hardlink-extraction fallback ...
Miss Islington (bot) [Tue, 23 Jun 2026 13:58:47 +0000 (15:58 +0200)] 
[3.14] gh-151558: Fix symlink escape via `tarfile` hardlink-extraction fallback (GH-151559)

(cherry picked from commit 27dd970bf6b17ebca7c8ed486a40ab043ed7af8f)

Co-authored-by: Stan Ulbrych <stan@python.org>
6 days ago[3.14] gh-151905: fix memory error handling in PyFrame_GetBack (GH-151906) (#151918)
Miss Islington (bot) [Tue, 23 Jun 2026 13:46:54 +0000 (15:46 +0200)] 
[3.14] gh-151905: fix memory error handling in PyFrame_GetBack (GH-151906) (#151918)

gh-151905: fix memory error handling in PyFrame_GetBack (GH-151906)
(cherry picked from commit 1ab8862ea0ad8d52af8a75866077b1e09b0ba62d)

Co-authored-by: Prakash Sellathurai <prakashsellathurai@gmail.com>
6 days ago[3.14] gh-151981: Make tarfile._Stream.seek break at EOF (GH-151982) (#151992)
Miss Islington (bot) [Tue, 23 Jun 2026 13:46:18 +0000 (15:46 +0200)] 
[3.14] gh-151981: Make tarfile._Stream.seek break at EOF (GH-151982) (#151992)

(cherry picked from commit f50bf13566189c8d0ce5a814f33eff3d89951896)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
6 days ago[3.14] gh-151556: Show example CSV file content in the `csv` module docs (GH-151563...
Miss Islington (bot) [Tue, 23 Jun 2026 12:08:34 +0000 (14:08 +0200)] 
[3.14] gh-151556: Show example CSV file content in the `csv` module docs (GH-151563) (#151985)

(cherry picked from commit 7915c4a8dd5b047b1e48b127690fb6a202a6e4ca)

Co-authored-by: Lucas <lucasefernandes333@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
6 days ago[3.14] gh-101100: Document os.uname_result and os.statvfs_result with related constan...
Miss Islington (bot) [Tue, 23 Jun 2026 06:26:42 +0000 (08:26 +0200)] 
[3.14] gh-101100: Document os.uname_result and os.statvfs_result with related constants (GH-151301) (#151690)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Cody Maloney <cmaloney@theoreticalchaos.com>
6 days ago[3.14] gh-86726: Document tkinter method-name conflicts (GH-151917) (#151933)
Serhiy Storchaka [Tue, 23 Jun 2026 06:20:42 +0000 (09:20 +0300)] 
[3.14] gh-86726: Document tkinter method-name conflicts (GH-151917) (#151933)

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 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: Claude Opus 4.8 <noreply@anthropic.com>
7 days ago[3.14] gh-62480: De-personalize docs on using the C API (GH-151784)
Miss Islington (bot) [Mon, 22 Jun 2026 20:08:34 +0000 (22:08 +0200)] 
[3.14] gh-62480: De-personalize docs on using the C API (GH-151784)

(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.14] gh-151544: Fixes CVE-2026-12003 by removing the fallback to %VPATH%/Modules...
Steve Dower [Mon, 22 Jun 2026 13:17:11 +0000 (14:17 +0100)] 
[3.14] gh-151544: Fixes CVE-2026-12003 by removing the fallback to %VPATH%/Modules/Setup.local for discovering sources in getpath.py (GH-151545)

7 days ago[3.14] gh-144133: Add a warning to the `encodings.punycode` documentation (GH-151812...
Miss Islington (bot) [Mon, 22 Jun 2026 12:01:59 +0000 (14:01 +0200)] 
[3.14] gh-144133: Add a warning to the `encodings.punycode` documentation (GH-151812) (#151923)

(cherry picked from commit 7ec70e1df33098de24d4b2cb181586d04cdde441)

Co-authored-by: Stan Ulbrych <stan@python.org>
8 days ago[3.14] gh-142387: Revert Android testbed to API level 35 (GH-151816) (#151884)
Miss Islington (bot) [Sun, 21 Jun 2026 22:54:13 +0000 (00:54 +0200)] 
[3.14] gh-142387: Revert Android testbed to API level 35 (GH-151816) (#151884)

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

Co-authored-by: Malcolm Smith <smith@chaquo.com>
8 days ago[3.14] gh-151665: Fix inspect.signature() on type alias and type parameter evaluators...
Miss Islington (bot) [Sun, 21 Jun 2026 22:35:40 +0000 (00:35 +0200)] 
[3.14] gh-151665: Fix inspect.signature() on type alias and type parameter evaluators (GH-151787) (#151880)

[3.15] gh-151665: Fix inspect.signature() on type alias and type parameter evaluators (GH-151787)
(cherry picked from commit 453714a2dc0d16e6e6b8cff70801dfc1284bf74d)

Co-authored-by: Timofei <128279579+deadlovelll@users.noreply.github.com>
8 days ago[3.14] gh-151678: Add tests for tkinter.simpledialog (GH-151856) (GH-151859)
Miss Islington (bot) [Sun, 21 Jun 2026 16:51:10 +0000 (18:51 +0200)] 
[3.14] gh-151678: Add tests for tkinter.simpledialog (GH-151856) (GH-151859)

(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.14] gh-150484: Fix mock_open __exit__ with contextlib.ExitStack (GH-151829)
Zang Peiyu [Sun, 21 Jun 2026 16:39:36 +0000 (00:39 +0800)] 
[3.14] gh-150484: Fix mock_open __exit__ with contextlib.ExitStack (GH-151829)

  mock_open's _exit_side_effect had a fixed 3-arg signature, but
  contextlib.ExitStack calls __exit__ with 4 args (self + 3 exc info).
  Use *args to accept any number of arguments.

8 days ago[3.14] gh-86726: Document tkinter.simpledialog query options and Dialog.result (GH...
Miss Islington (bot) [Sun, 21 Jun 2026 15:10:25 +0000 (17:10 +0200)] 
[3.14] gh-86726: Document tkinter.simpledialog query options and Dialog.result (GH-151851) (GH-151853)

(cherry picked from commit 8270ae560c632f2ee88ab6c6b33562227d0deaae)

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

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.14] gh-151770: Fix `datetime.fromisoformat()` on an out-of-range month w/ a 24...
Miss Islington (bot) [Sat, 20 Jun 2026 16:59:20 +0000 (18:59 +0200)] 
[3.14] gh-151770: Fix `datetime.fromisoformat()` on an out-of-range month w/ a 24:00 time (GH-151771) (#151810)

(cherry picked from commit 1fb874cc076e771c39a7bbc650dce386e3c5b7a0)

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

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.14] gh-151678: Add tests for tkinter.filedialog (GH-151781) (GH-151796)
Miss Islington (bot) [Sat, 20 Jun 2026 14:21:43 +0000 (16:21 +0200)] 
[3.14] gh-151678: Add tests for tkinter.filedialog (GH-151781) (GH-151796)

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.14] gh-151678: Add interactive tests for tkinter.simpledialog (GH-151794) (GH...
Miss Islington (bot) [Sat, 20 Jun 2026 14:17:04 +0000 (16:17 +0200)] 
[3.14] gh-151678: Add interactive tests for tkinter.simpledialog (GH-151794) (GH-151803)

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>
9 days ago[3.14] gh-151678: Add tests for the remaining tkinter Misc, Wm and Text methods ...
Miss Islington (bot) [Sat, 20 Jun 2026 14:07:32 +0000 (16:07 +0200)] 
[3.14] gh-151678: Add tests for the remaining tkinter Misc, Wm and Text methods (GH-151782) (GH-151800)

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.14] gh-151678: Add tests for tkinter.dnd (GH-151780) (GH-151791)
Miss Islington (bot) [Sat, 20 Jun 2026 13:33:36 +0000 (15:33 +0200)] 
[3.14] gh-151678: Add tests for tkinter.dnd (GH-151780) (GH-151791)

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>
9 days ago[3.14] gh-151678: Add tests for tkinter.scrolledtext (GH-151753) (GH-151760)
Miss Islington (bot) [Sat, 20 Jun 2026 06:17:18 +0000 (08:17 +0200)] 
[3.14] gh-151678: Add tests for tkinter.scrolledtext (GH-151753) (GH-151760)

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.14] gh-151678: Add tests for tkinter font, image, variable, Misc and Wm methods...
Miss Islington (bot) [Fri, 19 Jun 2026 23:10:07 +0000 (01:10 +0200)] 
[3.14] gh-151678: Add tests for tkinter font, image, variable, Misc and Wm methods (GH-151751) (GH-151755)

* 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.14] gh-151678: Add tests for tkinter.ttk methods (GH-151736) (GH-151742)
Miss Islington (bot) [Fri, 19 Jun 2026 16:12:34 +0000 (18:12 +0200)] 
[3.14] gh-151678: Add tests for tkinter.ttk methods (GH-151736) (GH-151742)

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.14] gh-151678: Add tests for tkinter Misc, Wm and geometry manager methods (GH...
Miss Islington (bot) [Fri, 19 Jun 2026 16:08:03 +0000 (18:08 +0200)] 
[3.14] gh-151678: Add tests for tkinter Misc, Wm and geometry manager methods (GH-151732) (GH-151738)

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>