[issue35379] IDLE's close fails io is set to None on Mac

Tal Einat report at bugs.python.org
Sat Sep 14 08:46:46 EDT 2019


Tal Einat <taleinat at gmail.com> added the comment:

I've also seen these occasionally, but I haven't yet found a way to reproduce consistently.

Regardless, IMO the shutdown close() and _close() should be the places handling shutdown-related exceptions if possible.  In all of the tracebacks posted here, as well as those in #35263 and #17822, one such method is in the call chain, and it could simply catch and handle the raised exception.

I also think these are clear improvements that are safe to include, even without understanding the full details of the sequences of events leading to the errors.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35379>
_______________________________________


More information about the Python-bugs-list mailing list