PyDocs

Nav

Importing Modules

Loader.create_module

importlib.abc

method of Loader · Added in 3.4 (source)
  • Loader.create_module(spec)
Return a module to initialize and into which to load.

This method should raise ImportError if anything prevents it
from creating a new module.  It may return None to indicate
that the spec should create the new module.
Changed in 3.6
  • 3.6: This method is no longer optional when exec_module() is defined.
0 Examples
No examples for importlib.abc/Loader.create_module.
See Also
No see-alsos for importlib.abc/Loader.create_module
0 Notes
No notes for Loader.create_module