]> granicus.if.org Git - python/commitdiff
Issue #21438: Document what loaders don't require a module name for
authorBrett Cannon <brett@python.org>
Fri, 9 May 2014 15:55:49 +0000 (11:55 -0400)
committerBrett Cannon <brett@python.org>
Fri, 9 May 2014 15:55:49 +0000 (11:55 -0400)
load_module().

Doc/library/importlib.rst

index afdae9e0f0e6c2fe09cc8e68d8ce82a822306d42..09a5d710b5f162fa971376c379ae05677cca441c 100644 (file)
@@ -887,6 +887,11 @@ find and load modules.
 
       Concrete implementation of :meth:`importlib.abc.SourceLoader.set_data`.
 
+   .. method:: load_module(name=None)
+
+      Concrete implementation of :meth:`importlib.abc.Loader.load_module` where
+      specifying the name of the module to load is optional.
+
 
 .. class:: SourcelessFileLoader(fullname, path)
 
@@ -921,6 +926,11 @@ find and load modules.
       Returns ``None`` as bytecode files have no source when this loader is
       used.
 
+   .. method:: load_module(name=None)
+
+   Concrete implementation of :meth:`importlib.abc.Loader.load_module` where
+   specifying the name of the module to load is optional.
+
 
 .. class:: ExtensionFileLoader(fullname, path)
 
@@ -940,7 +950,7 @@ find and load modules.
 
       Path to the extension module.
 
-   .. method:: load_module(fullname)
+   .. method:: load_module(name=None)
 
       Loads the extension module if and only if *fullname* is the same as
       :attr:`name` or is ``None``.