diff options
author | Brett Cannon <brettcannon@users.noreply.github.com> | 2018-04-20 23:32:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-20 23:32:46 (GMT) |
commit | 441d945eb33f8dc130b268ebfa11315b98a2433c (patch) | |
tree | 90d9e27a16a9d60bdcb77a7f9e0c4aa59b099175 /Doc/reference/import.rst | |
parent | a8c342465b977115b88a4f130833a2fd4c4e7356 (diff) | |
download | cpython-441d945eb33f8dc130b268ebfa11315b98a2433c.zip cpython-441d945eb33f8dc130b268ebfa11315b98a2433c.tar.gz cpython-441d945eb33f8dc130b268ebfa11315b98a2433c.tar.bz2 |
Clarify that __path__ can't be just any value (GH-6554)
Diffstat (limited to 'Doc/reference/import.rst')
-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 45d4172..44b5b81 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`, |