Commit 441d945e authored by Brett Cannon's avatar Brett Cannon Committed by GitHub

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

parent a8c34246
......@@ -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`,
......
Clarify that the ``__path__`` attribute on modules cannot be just any value.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment