PyDocs

Nav

Python Runtime Services

module.__loader__

builtins

attributeDeprecated 3.12
Deprecated since 3.12, removed in 3.16. Setting __loader__ on a module while failing to set __spec__.loader is deprecated. In Python 3.16, __loader__ will cease to be set or taken into consideration by the import system or the standard library.
The loader object that the import machinery used to load the module.
Changed in 3.4
  • 3.4: This attribute now defaults to None for modules created dynamically using the types.ModuleType constructor. Previously the attribute was optional.
0 Examples
No examples for builtins/module.__loader__.
See Also
No see-alsos for builtins/module.__loader__
0 Notes
No notes for module.__loader__