]> granicus.if.org Git - python/commitdiff
Clarify that __path__ can't be just any value (GH-6554)
authorBrett Cannon <brettcannon@users.noreply.github.com>
Fri, 20 Apr 2018 23:32:46 +0000 (16:32 -0700)
committerGitHub <noreply@github.com>
Fri, 20 Apr 2018 23:32:46 +0000 (16:32 -0700)
Doc/reference/import.rst
Misc/NEWS.d/next/Documentation/2018-04-20-14-09-36.bpo-33276.rA1z_3.rst [new file with mode: 0644]

index 45d417295d06d007386e7aa3b6e463077231bfda..44b5b818aa8233b8d13d3ae55e6a63a19669c3b9 100644 (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`,
diff --git a/Misc/NEWS.d/next/Documentation/2018-04-20-14-09-36.bpo-33276.rA1z_3.rst b/Misc/NEWS.d/next/Documentation/2018-04-20-14-09-36.bpo-33276.rA1z_3.rst
new file mode 100644 (file)
index 0000000..0da58a0
--- /dev/null
@@ -0,0 +1 @@
+Clarify that the ``__path__`` attribute on modules cannot be just any value.