[issue19944] Make importlib.find_spec load packages as needed
Eric Snow
report at bugs.python.org
Fri Jan 3 08:59:56 CET 2014
Eric Snow added the comment:
find_spec() is at package level because find_module() is and for no other good reason I'm aware of. I'd be just fine with moving it to util. I don't expect it to be used enough to warrant that top-level placement.
Regarding builtins.__import__(), I'm using it in the event that someone "installed" their own __import__() which gives a different result than import_module(). Thus the parent used by find_spec() will be the expected one. I agree that comment about this would be good.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19944>
_______________________________________
More information about the Python-bugs-list
mailing list