STINNER Victor added the comment:
"show_warning() and/or _Py_DisplaySourceLine() should not try to display the
Python line while Python is exiting. There is for example the flag
_Py_Finalizing."
Or PyImport_Import() should fail with an ImportError("block importing 'io' when
python is exiting") (or a better message) when Python is exiting (if
_Py_Finalizing is 1).
----------
nosy: +brett.cannon
_______________________________________
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