mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
List what classes from importlib.machinery don't work with importlib.util.LazyLoader
This commit is contained in:
parent
558823a0cf
commit
27c712e149
1 changed files with 2 additions and 1 deletions
|
@ -1273,7 +1273,8 @@ an :term:`importer`.
|
|||
:meth:`~importlib.abc.Loader.exec_module` as control over what module type
|
||||
is used for the module is required. For those same reasons, the loader's
|
||||
:meth:`~importlib.abc.Loader.create_module` method will be ignored (i.e., the
|
||||
loader's method should only return ``None``). Finally,
|
||||
loader's method should only return ``None``; this excludes
|
||||
:class:`BuiltinImporter` and :class:`ExtensionFileLoader`). Finally,
|
||||
modules which substitute the object placed into :attr:`sys.modules` will
|
||||
not work as there is no way to properly replace the module references
|
||||
throughout the interpreter safely; :exc:`ValueError` is raised if such a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue