From a2445765c11d27fb02a6ba4e2a3840b07655350d Mon Sep 17 00:00:00 2001 From: "Eric V. Smith" Date: Mon, 14 May 2012 20:51:54 -0400 Subject: [PATCH] Allow standard library packages to be namespace packages. --- pep-0420.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pep-0420.txt b/pep-0420.txt index 4cb1ad468..95ed4fdda 100644 --- a/pep-0420.txt +++ b/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 ======================