mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
Clarify an assumption that importlib.abc.PyLoader makes when importing a
package and setting __path__.
This commit is contained in:
parent
2a922ed6ad
commit
ad876c7083
1 changed files with 4 additions and 1 deletions
|
|
@ -215,7 +215,10 @@ are also provided to help in implementing the core ABCs.
|
||||||
..method:: load_module(fullname)
|
..method:: load_module(fullname)
|
||||||
|
|
||||||
A concrete implementation of :meth:`importlib.abc.Loader.load_module`
|
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)
|
..method:: get_code(fullname)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue