diff options
author | Brett Cannon <brett@python.org> | 2014-05-09 15:56:07 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2014-05-09 15:56:07 (GMT) |
commit | a237a987539aed6ba28115c2e932b205c592be88 (patch) | |
tree | eead8872cd80f5474e10ccdd792fe2b9121d0868 /Doc/library | |
parent | f25f25796bbd0ad51fa6b6f57a8c5c7efdf4371f (diff) | |
parent | 062fcac9a41fb6c89c8edc423ee4d364b79edcf5 (diff) | |
download | cpython-a237a987539aed6ba28115c2e932b205c592be88.zip cpython-a237a987539aed6ba28115c2e932b205c592be88.tar.gz cpython-a237a987539aed6ba28115c2e932b205c592be88.tar.bz2 |
Merge for issue #21438
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/importlib.rst | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index a83e5e4..50f4ee4 100644 --- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -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``. |