This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author william.barr
Recipients amaury.forgeotdarc, terry.reedy, william.barr
Date 2010-12-03.08:21:37
SpamBayes Score 9.790202e-09
Marked as misclassified No
Message-id <1291364498.78.0.487915022557.issue10365@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-12-03 08:21:38william.barrsetrecipients: + william.barr, terry.reedy, amaury.forgeotdarc
2010-12-03 08:21:38william.barrsetmessageid: <1291364498.78.0.487915022557.issue10365@psf.upfronthosting.co.za>
2010-12-03 08:21:37william.barrlinkissue10365 messages
2010-12-03 08:21:37william.barrcreate