[issue26186] LazyLoader rejecting use of SourceFileLoader

Brett Cannon report at bugs.python.org
Sat Feb 20 21:44:23 EST 2016


Brett Cannon added the comment:

This has been resolved by removing the check (the docs have always said the method was ignored, so that will just continue). I also did separate commit to list that BuiltinImporter and ExtensionFileLoader won't work (they would need to be updated to return a module subclass to work).

I'm leaving this issue open to decide if I want to add an explicit check in importlib.util.LazyLoader.create_module() to verify that None is returned in Python 3.5 (I probably will, but I want to think about on it for a little bit).

----------
resolution:  -> fixed
stage: test needed -> resolved

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


More information about the Python-bugs-list mailing list