William Barr <webmaster...@gmail.com> added the comment:

Ok, attached is a patch that should make IDLE silently ignore this happening; 
upon looking into this, it was a rather trivial fix.  The open function was 
waiting on the return input from the askopenfile call, during which the calling 
window was closed, setting the editwin parameter to None according to close.  
The patch just adds another try/except to catch the AttributeError raised when 
the non-extant editwin's flist is referenced.  

I did come up with a method to actually make it continue with the opening 
process (just save a copy of the editwin's flist before the askopenfile call, 
during which the editwin gets closed), but that seemed a bit kludgey and 
possibly dangerous;, however it *seems* to work without issue.  I can upload 
that patch as well if anyone would care to review it in addition to the 
attached patch.

----------
keywords: +patch
Added file: http://bugs.python.org/file19922/issue10365.patch

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

Reply via email to