Antoine Pitrou <pitrou at free.fr> added the comment: Another possibility would be to include an explicit invalidate_caches() function in importlib. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue14043> _______________________________________