Allow standard library packages to be namespace packages.

This commit is contained in:
Eric V. Smith 2012-05-14 20:51:54 -04:00
parent 1f39ef5450
commit a2445765c1
1 changed files with 10 additions and 1 deletions

View File

@ -77,7 +77,7 @@ setuptools allows declaring namespace packages in a distribution's
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 @@ differences are:
``__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
======================