[Python-checkins] cpython (3.4): Issue #21438: Document what loaders don't require a module name for

brett.cannon python-checkins at python.org
Fri May 9 17:56:15 CEST 2014


http://hg.python.org/cpython/rev/86042348b38a
changeset:   90600:86042348b38a
branch:      3.4
parent:      90598:9809a791436d
user:        Brett Cannon <brett at python.org>
date:        Fri May 09 11:55:49 2014 -0400
summary:
  Issue #21438: Document what loaders don't require a module name for
load_module().

files:
  Doc/library/importlib.rst |  12 +++++++++++-
  1 files changed, 11 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
@@ -887,6 +887,11 @@
 
       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 @@
       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 @@
 
       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``.

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


More information about the Python-checkins mailing list