Message123203
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. |
|
Date |
User |
Action |
Args |
2010-12-03 08:21:38 | william.barr | set | recipients:
+ william.barr, terry.reedy, amaury.forgeotdarc |
2010-12-03 08:21:38 | william.barr | set | messageid: <1291364498.78.0.487915022557.issue10365@psf.upfronthosting.co.za> |
2010-12-03 08:21:37 | william.barr | link | issue10365 messages |
2010-12-03 08:21:37 | william.barr | create | |
|