Allow standard library packages to be namespace packages.
This commit is contained in:
parent
1f39ef5450
commit
a2445765c1
11
pep-0420.txt
11
pep-0420.txt
|
@ -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
|
||||
======================
|
||||
|
||||
|
|
Loading…
Reference in New Issue