Eric Snow added the comment: My guess is that, in part, it's left-over code from before the switch to importlib. However, it relies on builtins.__import__(), which isn't guaranteed to work correctly, hence one last sync with sys.modules. I'm not convinced that justifies not simply returning the result of calling __import__().
Brett, am I missing something here? ---------- nosy: +brett.cannon, eric.snow _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18812> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com