Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 420e2d8

Browse files
committed
#8900: Using keyboard shortcuts in IDLE to open a file no longer raises an exception.
1 parent 7a03e2d commit 420e2d8

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Lib/idlelib/MultiCall.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@ def handler(event, lists = lists,
170170
break
171171
ishandlerrunning[:] = []
172172
# Call all functions in doafterhandler and remove them from list
173-
while doafterhandler:
174-
doafterhandler.pop()()
173+
for f in doafterhandler:
174+
f()
175+
doafterhandler[:] = []
175176
if r:
176177
return r
177178
return handler

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Core and Builtins
1515
Library
1616
-------
1717

18+
- Issue #8900: Using keyboard shortcuts in IDLE to open a file no longer
19+
raises an exception.
20+
1821
- Issue #6649: Fixed missing exit status in IDLE. Patch by Guilherme Polo.
1922

2023
- Issue #17435: threading.Timer's __init__ method no longer uses mutable

0 commit comments

Comments
 (0)