Super Bo added the comment: I think dynload_unload_all() should be called in PyImport_Cleanup() function. ---------- nosy: +Super Bo _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue23402> _______________________________________