Clarify that __path__ can't be just any value (GH-6554)

(cherry picked from commit 441d945eb3)

Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2018-04-20 16:45:14 -07:00 committed by GitHub
parent 32955299b4
commit 3e0d23cd43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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`,

View File

@ -0,0 +1 @@
Clarify that the ``__path__`` attribute on modules cannot be just any value.