#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 b81c5ed7d0425c9ffc0a29179b1d33a75399fbc2..b032a653d3f4306c4fb90f5b2ac7f7a159b0e349 100644 (file)
@@ -171,8 +171,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 59ec000c700b502a12f5069442cf8c3715b8e4ec..29784ffa9e47f781a7d7193244d5a5b2a377b955 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,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 #17526: fix an IndexError raised while passing code without filename to