]> granicus.if.org Git - python/commitdiff
#8900: Using keyboard shortcuts in IDLE to open a file no longer raises an exception.
authorRoger Serwy <roger.serwy@gmail.com>
Sun, 31 Mar 2013 20:53:08 +0000 (15:53 -0500)
committerRoger Serwy <roger.serwy@gmail.com>
Sun, 31 Mar 2013 20:53:08 +0000 (15:53 -0500)
Lib/idlelib/MultiCall.py
Misc/NEWS

index 47f402d32611ec14f002f4129cf08a63b2ed8a97..64729eab8ca4d8b3485ca22d934f7350a4151984 100644 (file)
@@ -170,8 +170,9 @@ class _ComplexBinder:
                     break
             ishandlerrunning[:] = []
             # Call all functions in doafterhandler and remove them from list
-            while doafterhandler:
-                doafterhandler.pop()()
+            for f in doafterhandler:
+                f()
+            doafterhandler[:] = []
             if r:
                 return r
         return handler
index d1ba2dbb4c744d8ad8aab776ab3a6d1fd00eb28c..a3fe827546c4be05c36e43968c1652a20c8756b1 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -15,6 +15,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #8900: Using keyboard shortcuts in IDLE to open a file no longer
+  raises an exception.
+
 - Issue #6649: Fixed missing exit status in IDLE. Patch by Guilherme Polo.
 
 - Issue #17435: threading.Timer's __init__ method no longer uses mutable