Roger Serwy <roger.se...@gmail.com> added the comment:

Attached is a patch to fix the bug.

When selecting "Open" from the File Menu, "ishanderrunning" is empty. 
Unbind/Bind requests are handled synchronously.

When pressing "Ctrl+O", "ishandlerrunning" is no longer empty, and the actual 
bind/unbind events get appended to "doafterhandle". 

The original code was running these bind/unbind events in REVERSE order by 
using "pop", so unbind requests were being made (and causing the error) before 
the proper bind request.

----------
keywords: +patch
nosy: +serwy
versions: +Python 3.2, Python 3.3 -Python 3.1
Added file: http://bugs.python.org/file23915/issue8900.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8900>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to