Skip to content

Commit 441d945

Browse files
authored
Clarify that __path__ can't be just any value (GH-6554)
1 parent a8c3424 commit 441d945

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/reference/import.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,7 @@ the module.
616616
module.__path__
617617
---------------
618618

619-
By definition, if a module has a ``__path__`` attribute, it is a package,
620-
regardless of its value.
619+
By definition, if a module has a ``__path__`` attribute, it is a package.
621620

622621
A package's ``__path__`` attribute is used during imports of its subpackages.
623622
Within the import machinery, it functions much the same as :data:`sys.path`,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarify that the ``__path__`` attribute on modules cannot be just any value.

0 commit comments

Comments
 (0)