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 <[email protected]>
<http://bugs.python.org/issue19421>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com