diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-04-20 16:45:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-20 16:45:14 -0700 |
commit | 3e0d23cd4366a913e8119c48c6b74569edeb53ca (patch) | |
tree | aa5525738056c3a95e933b030930b37bb2522a3f /Doc/reference | |
parent | 32955299b4b102138220150e2925de4ce7f17c82 (diff) | |
download | cpython-git-3e0d23cd4366a913e8119c48c6b74569edeb53ca.tar.gz |
Clarify that __path__ can't be just any value (GH-6554)
(cherry picked from commit 441d945eb33f8dc130b268ebfa11315b98a2433c)
Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/import.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/reference/import.rst b/Doc/reference/import.rst index 45d417295d..44b5b818aa 100644 --- a/Doc/reference/import.rst +++ b/Doc/reference/import.rst @@ -616,8 +616,7 @@ the module. module.__path__ --------------- -By definition, if a module has a ``__path__`` attribute, it is a package, -regardless of its value. +By definition, if a module has a ``__path__`` attribute, it is a package. A package's ``__path__`` attribute is used during imports of its subpackages. Within the import machinery, it functions much the same as :data:`sys.path`, |