[issue20167] Exception on IDLE closing
Tal Einat
report at bugs.python.org
Wed Feb 5 11:33:23 CET 2014
Tal Einat added the comment:
This is caused by MultiCall's _ComplexBinder.__del__() being called during app shutdown. _ComplexBinder.__del__() unbinds a bunch of event handlers from the widget to which it is attached. It seems that there's some edge case here where the underlying Tk widget has already been destroyed.
Instead of trying to debug all of the Tk events and app shutdown order, I propose just surrounding this __del__() code with a try/except block, catching _tkinter.TclError and ignoring it. From my (somehwat limited) understanding of MultiCall, this shouldn't do any harm.
See attached patch.
----------
keywords: +patch
Added file: http://bugs.python.org/file33923/taleinat_idle_closing_exception.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20167>
_______________________________________
More information about the Python-bugs-list
mailing list