]> granicus.if.org Git - python/commitdiff
Clarify an assumption that importlib.abc.PyLoader makes when importing a
authorBrett Cannon <bcannon@gmail.com>
Mon, 9 Mar 2009 07:53:09 +0000 (07:53 +0000)
committerBrett Cannon <bcannon@gmail.com>
Mon, 9 Mar 2009 07:53:09 +0000 (07:53 +0000)
package and setting __path__.

Doc/library/importlib.rst

index eb9fd00706d44234dfa4de89642529bcd6432db7..a39c17ebd3cc5bfc8c2005d1087ba31a2c39ad7d 100644 (file)
@@ -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)