Skip to content

Commit

Permalink
Link to module.__path__ in NamespacePath docs
Browse files Browse the repository at this point in the history
Signed-off-by: Filipe Laíns <[email protected]>
  • Loading branch information
FFY00 committed Nov 17, 2024
1 parent 0dd0520 commit 06b8906
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Doc/library/importlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -988,9 +988,10 @@ find and load modules.
.. class:: NamespacePath(name, path, path_finder)

Represents a namespace package's path. It uses the module *name* to find its
parent module, and from there it looks up the parent's ``__path__``. When
this changes, the module's own path is recomputed, using *path_finder*. For
top-level modules, the parent module's path is :data:`sys.path`.
parent module, and from there it looks up the parent's
:attr:`module.__path__`. When this changes, the module's own path is
recomputed, using *path_finder*. For top-level modules, the parent module's
path is :data:`sys.path`.


.. class:: SourceFileLoader(fullname, path)
Expand Down

0 comments on commit 06b8906

Please sign in to comment.