[issue15314] Use importlib instead of pkgutil in runpy

Nick Coghlan report at bugs.python.org
Sun Jul 15 06:17:33 CEST 2012


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Oh, special - importlib.find_loader() currently expects every module to have a __loader__ attribute, but there's at least one that doesn't: __main__.

Guess I'll be tweaking it to handle that case more gracefully after all :)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15314>
_______________________________________


More information about the Python-bugs-list mailing list