[Python-checkins] cpython (3.5): List what classes from importlib.machinery don't work with

brett.cannon python-checkins at python.org
Sat Feb 20 21:40:24 EST 2016


https://hg.python.org/cpython/rev/43c6d087035d
changeset:   100281:43c6d087035d
branch:      3.5
parent:      100279:9f1e680896ef
user:        Brett Cannon <brett at python.org>
date:        Sat Feb 20 18:40:02 2016 -0800
summary:
  List what classes from importlib.machinery don't work with importlib.util.LazyLoader

files:
  Doc/library/importlib.rst |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -1273,7 +1273,8 @@
    :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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list