Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27c712e

Browse files
committed
List what classes from importlib.machinery don't work with importlib.util.LazyLoader
1 parent 558823a commit 27c712e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/importlib.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,8 @@ an :term:`importer`.
12731273
:meth:`~importlib.abc.Loader.exec_module` as control over what module type
12741274
is used for the module is required. For those same reasons, the loader's
12751275
:meth:`~importlib.abc.Loader.create_module` method will be ignored (i.e., the
1276-
loader's method should only return ``None``). Finally,
1276+
loader's method should only return ``None``; this excludes
1277+
:class:`BuiltinImporter` and :class:`ExtensionFileLoader`). Finally,
12771278
modules which substitute the object placed into :attr:`sys.modules` will
12781279
not work as there is no way to properly replace the module references
12791280
throughout the interpreter safely; :exc:`ValueError` is raised if such a

0 commit comments

Comments
 (0)