[issue19255] Don't "wipe" builtins at shutdown

Serhiy Storchaka report at bugs.python.org
Mon Feb 10 18:00:55 CET 2014


Serhiy Storchaka added the comment:

I agree that it is risky and don't insist. We can return to this patch when encounter more serious bug.

Last commit breaks test_create_at_shutdown_without_encoding in test_io for Python implementation of io.

This happens because Python implementation of TextIOWrapper.__init__() imports the locale module if encoding is not specified. Then _find_spec() in Lib/importlib/_bootstrap.py iterates sys.meta_path, but "meta_path" is one of names cleared in sys in PyImport_Cleanup().

----------
nosy: +brett.cannon, eric.snow, ncoghlan

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


More information about the Python-bugs-list mailing list