summaryrefslogtreecommitdiffstats
path: root/Doc/library/importlib.rst
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-03-09 07:53:09 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-03-09 07:53:09 (GMT)
commitad876c7083e606ddd4cc60afc62dfbd15dc31014 (patch)
tree0d8df9b33ebd9397da3d582e4450fddc71bb7b4c /Doc/library/importlib.rst
parent2a922ed6adf28fabd10cb852133be5aeeb906aa5 (diff)
downloadcpython-ad876c7083e606ddd4cc60afc62dfbd15dc31014.zip
cpython-ad876c7083e606ddd4cc60afc62dfbd15dc31014.tar.gz
cpython-ad876c7083e606ddd4cc60afc62dfbd15dc31014.tar.bz2
Clarify an assumption that importlib.abc.PyLoader makes when importing a
package and setting __path__.
Diffstat (limited to 'Doc/library/importlib.rst')
-rw-r--r--Doc/library/importlib.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index eb9fd00..a39c17e 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -215,7 +215,10 @@ are also provided to help in implementing the core ABCs.
..method:: load_module(fullname)
A concrete implementation of :meth:`importlib.abc.Loader.load_module`
- that loads Python source code.
+ that loads Python source code. All needed information comes from the
+ abstract methods required by this ABC. The only pertinent assumption
+ made by this method is that when loading a package
+ :attr:`__path__` is set to ``[os.path.dirname(__file__)]``.
..method:: get_code(fullname)