[issue23014] Don't have importlib.abc.Loader.create_module() be optional
Nick Coghlan
report at bugs.python.org
Fri Dec 12 07:29:43 CET 2014
Nick Coghlan added the comment:
Sounds good to me.
I'm not sure what to put in the docs about calling importlib.util.module_from_spec() from create_module() implementations. Really, if a loader can use that, then it should be doing whatever it was going to do after the call in exec_module() instead.
create_module() is intended specifically for cases where you genuinely need to do something different to create the object (as in the concept of calling in to a C level module creation hook, or the idea of allowing a __new__.py file in package directories)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23014>
_______________________________________
More information about the Python-bugs-list
mailing list