diff options
author | Brett Cannon <brett@python.org> | 2016-02-21 02:40:02 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2016-02-21 02:40:02 (GMT) |
commit | 27c712e149f4fab576a73c458412cfa4bdb63ddc (patch) | |
tree | f29b75c780359395d06607c4ad08b9208faaf64e /Doc/library/importlib.rst | |
parent | 558823a0cf7834cb8bc45123604008e33b4e69e2 (diff) | |
download | cpython-27c712e149f4fab576a73c458412cfa4bdb63ddc.zip cpython-27c712e149f4fab576a73c458412cfa4bdb63ddc.tar.gz cpython-27c712e149f4fab576a73c458412cfa4bdb63ddc.tar.bz2 |
List what classes from importlib.machinery don't work with importlib.util.LazyLoader
Diffstat (limited to 'Doc/library/importlib.rst')
-rw-r--r-- | Doc/library/importlib.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index 23432e1..43b34e9 100644 --- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -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 |