[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

Terry J. Reedy report at bugs.python.org
Mon May 28 00:09:17 CEST 2012


Terry J. Reedy <tjreedy at udel.edu> added the comment:

The only substantive change I see is replacing the four lines setting 'interp' with a defaulted getattr call. You seem to have missed my point that 'Otherwise, open a new window' is false. It must be that "flist.open(filename)" first checks to see if filename is open and if so, uses the existing window rather than opening a new one. (I would check this if I knew what class flist is and where it is defined.) This must be what happens with "flist.open(filename, self.loadfile)" as it loads the file into the existing window, renames itself, and updates the recent files list. I will make the code replacement and do some comment changes.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10365>
_______________________________________


More information about the Python-bugs-list mailing list