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 <rep...@bugs.python.org>
<http://bugs.python.org/issue19944>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to