[issue21211] pkgutil.find_loader() raises ImportError instead of returning None
Eric Snow
report at bugs.python.org
Sat Apr 19 05:34:59 CEST 2014
Eric Snow added the comment:
On second thought, all modules (except __main__) must have both __spec__ and __loader__ set to their correct respective objects. So the current behavior is correct in that it exposes poorly formed modules.
----------
resolution: -> not a bug
stage: test needed -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21211>
_______________________________________
More information about the Python-bugs-list
mailing list