Meador Inge <mead...@gmail.com> added the comment: I can reproduce this on tip. What happens is that 'importlib.import_module("my_lib.bar")' is effectively computed as:
import my_lib import bar by '_bootstrap._gcd_import'. When '_gcd_import' goes to do the import of 'bar' it does *not* check to see if 'bar' has already been imported by the parent import. Here is a patch *without* tests that fixes this. I will add the tests next. ---------- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file23943/issue13591.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13591> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com