From b318855edbb56b3ce61cdaab36146828f099d722 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Wed, 1 Jul 2026 12:18:46 -0400 Subject: [PATCH 1/5] gh-135142: News entries for Storchaka PRs. 13 posted 2026 June 30 for various issues. Edited one other by me. --- Lib/idlelib/News3.txt | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Lib/idlelib/News3.txt b/Lib/idlelib/News3.txt index dc18b6e07eb364..5b5210e02aef63 100644 --- a/Lib/idlelib/News3.txt +++ b/Lib/idlelib/News3.txt @@ -4,8 +4,22 @@ Released on 2026-10-01 ========================= -gh-152728: Move functions run.fix_scaling, editor.fixwordbreaks (as fix_word_breaks) -and pyshell.fix_x11_paste to module util. Patch by Terry J. Reedy. +gh-152738: Fix a rare crash in the IDLE editor when the completion +window is closed: deleting a key binding for a sequence that is not +bound to the virtual event is now ignored instead of raising a +ValueError. Patch by Serhiy Storchaka and Claude Code. + +gh-152737: Fix Replace All in the IDLE editor's Replace dialog when the +search direction is "Up" and "Wrap around" is off: it now replaces all +matches above the current position instead of only the first one. +Patch by Serhiy Storchaka and Claude Code. + +gh-152733: For X11 window managers, set toplevel window classes to +"Idle". Patch by Serhiy Storchaka and Claude Code. + +gh-152728: Move functions run.fix_scaling, editor.fixwordbreaks +(as 'fix_word_breaks') and pyshell.fix_x11_paste to module util. +Patch by Terry J. Reedy. gh-85320: IDLE now reads and writes its configuration files and the breakpoints file using UTF-8 instead of the locale encoding. From b478a1f24eff242cc68cf0afac7f3db69cb3ecb0 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Wed, 1 Jul 2026 12:45:41 -0400 Subject: [PATCH 2/5] Add 152739. --- Lib/idlelib/News3.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/idlelib/News3.txt b/Lib/idlelib/News3.txt index 5b5210e02aef63..41355e5a652a6f 100644 --- a/Lib/idlelib/News3.txt +++ b/Lib/idlelib/News3.txt @@ -4,6 +4,11 @@ Released on 2026-10-01 ========================= +gh-152739: Omit the idlelib directory from the path of the IDLE user +process. User code imports such as `import help' can no longer import +an idlelib submodule (here idlelib.help) instead of the intended +top-level module. Patch by Serhiy Storchaka and Claude Code. + gh-152738: Fix a rare crash in the IDLE editor when the completion window is closed: deleting a key binding for a sequence that is not bound to the virtual event is now ignored instead of raising a From 6afb0c07cbea13775ec52fb647dc9f7cf7ad14f9 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Wed, 1 Jul 2026 13:09:49 -0400 Subject: [PATCH 3/5] Add 152740. --- Lib/idlelib/News3.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/idlelib/News3.txt b/Lib/idlelib/News3.txt index 41355e5a652a6f..e2d67c5bb868be 100644 --- a/Lib/idlelib/News3.txt +++ b/Lib/idlelib/News3.txt @@ -4,6 +4,11 @@ Released on 2026-10-01 ========================= +gh-152740: The "In files:" field of IDLE's Find in Files dialog now +always contains a full directory path, even for an unsaved editor or +the Shell. This shows in the grep output which directory was searched. +Patch by Serhiy Storchaka and Claude Code. + gh-152739: Omit the idlelib directory from the path of the IDLE user process. User code imports such as `import help' can no longer import an idlelib submodule (here idlelib.help) instead of the intended From 3032666b2308b590cbed7a489b4547684938dc11 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Wed, 1 Jul 2026 17:51:31 -0400 Subject: [PATCH 4/5] Add 25742 and 25743. --- Lib/idlelib/News3.txt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Lib/idlelib/News3.txt b/Lib/idlelib/News3.txt index e2d67c5bb868be..b8cf03f49e678f 100644 --- a/Lib/idlelib/News3.txt +++ b/Lib/idlelib/News3.txt @@ -4,10 +4,17 @@ Released on 2026-10-01 ========================= -gh-152740: The "In files:" field of IDLE's Find in Files dialog now -always contains a full directory path, even for an unsaved editor or -the Shell. This shows in the grep output which directory was searched. -Patch by Serhiy Storchaka and Claude Code. +gh-152743: When an integer entry in IDLE's Settings dialog, such as "Auto squeeze min lines", is deleted, do not save '', which is an invalid configuration value. +Patch by Serhiy Storchaka + +gh-152742: MakeChange the default extension when saving a Shell or +Output window '.txt' and list text files before Python files. Their +content is not Python source. Patch by Serhiy Storchaka and Claude Code. + +gh-152740: Fill the "In files:" field of IDLE's Find in Files dialog +with a full directory path, even for an unsaved editor or the Shell. +In the grep output whow which directory was searched. Patch by Serhiy +Storchaka and Claude Code. gh-152739: Omit the idlelib directory from the path of the IDLE user process. User code imports such as `import help' can no longer import From 225caeda10e703f45c3d69ebf051053e6d867c53 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Wed, 1 Jul 2026 19:38:52 -0400 Subject: [PATCH 5/5] Add 152745 --- Lib/idlelib/News3.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Lib/idlelib/News3.txt b/Lib/idlelib/News3.txt index b8cf03f49e678f..bcbd7fa542a02a 100644 --- a/Lib/idlelib/News3.txt +++ b/Lib/idlelib/News3.txt @@ -4,8 +4,14 @@ Released on 2026-10-01 ========================= -gh-152743: When an integer entry in IDLE's Settings dialog, such as "Auto squeeze min lines", is deleted, do not save '', which is an invalid configuration value. -Patch by Serhiy Storchaka +gh-152745: When "Run... Customized" with "Restart shell" unchecked +while Shell is running code, including waiting for an input('prompt:') +response, just report that the shell is executing instead of +reporting twice and restarting anyway. Patch by Serhiy Storchaka. + +gh-152743: When an integer entry in IDLE's Settings dialog, such as +"Auto squeeze min lines", is deleted, do not save '', which is an +invalid configuration value. Patch by Serhiy Storchaka. gh-152742: MakeChange the default extension when saving a Shell or Output window '.txt' and list text files before Python files. Their