Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: It is in PyImport_Cleanup() in Python/import.c. Search PyObject_SetItem(modules, name, Py_None).
If you will run Python with the -v option you will see numerous messages "# cleanup[2] removing ..." emitted on stderr. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33538> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com