[Python-checkins] peps: Allow standard library packages to be namespace packages.

eric.smith python-checkins at python.org
Tue May 15 02:52:02 CEST 2012


http://hg.python.org/peps/rev/d52109a2cd33
changeset:   4375:d52109a2cd33
user:        Eric V. Smith <eric at trueblade.com>
date:        Mon May 14 20:51:54 2012 -0400
summary:
  Allow standard library packages to be namespace packages.

files:
  pep-0420.txt |  11 ++++++++++-
  1 files changed, 10 insertions(+), 1 deletions(-)


diff --git a/pep-0420.txt b/pep-0420.txt
--- a/pep-0420.txt
+++ b/pep-0420.txt
@@ -77,7 +77,7 @@
 magic ``__path__`` modification into ``__init__.py`` themselves.
 
 See PEP 402's "The Problem" section [2]_ for more details on the
-motivation for namespace packages. Note that PEP 402 has been
+motivation for namespace packages.  Note that PEP 402 has been
 rejected, but the motivating use cases are still valid.
 
 Rationale
@@ -221,6 +221,15 @@
    ``__loader__`` attribute.
 
 
+Namespace packages in the standard library
+------------------------------------------
+
+It is possible, and this PEP explicitely allows, that parts of the
+standard library be implemented as namespace packages.  When and if
+any standard library packages become namespace packages is outside the
+scope of this PEP.
+
+
 Packaging Implications
 ======================
 

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list