[issue19421] FileIO destructor imports indirectly the io module at exit

STINNER Victor report at bugs.python.org
Fri Nov 1 02:09:45 CET 2013


STINNER Victor added the comment:

I misunderstood the gdb traceback. Display a warning does not reload the io module: in fact, the io module was unloaded and PyImport_ImportModuleLevelObject() already raises an ImportError in this case: ImportError("import of 'io' halted; None in sys.modules"). So nothing else need to be done, I'm now closing the issue.

I created more specific issues about warnings, see issues #19442 and #19466.

----------
resolution:  -> invalid
status: open -> closed

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


More information about the Python-bugs-list mailing list