[Python-checkins] peps: Clarifaction about creating namespace packages. Thanks Carl Meyer.
eric.smith
python-checkins at python.org
Sat Apr 28 12:24:10 CEST 2012
http://hg.python.org/peps/rev/b6dc6b727a9b
changeset: 4320:b6dc6b727a9b
user: Eric V. Smith <eric at trueblade.com>
date: Sat Apr 28 06:23:39 2012 -0400
summary:
Clarifaction about creating namespace packages. Thanks Carl Meyer.
files:
pep-0420.txt | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pep-0420.txt b/pep-0420.txt
--- a/pep-0420.txt
+++ b/pep-0420.txt
@@ -122,8 +122,8 @@
* If not, but ``foo`` is found and is a directory, it is recorded.
If the scan along the parent path completes without finding a module
-or package, then a namespace package is created. The new namespace
-package:
+or package and at least one directory was recorded, then a namespace
+package is created. The new namespace package:
* Has a ``__file__`` attribute set to the first directory that was
found during the scan, including the trailing path separator.
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list