STINNER Victor added the comment: I don't know if it's the best trick, but here is a patch to unload the __main__ module first in PyImport_Cleanup().
---------- keywords: +patch Added file: http://bugs.python.org/file35896/unload_main_first.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21925> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com