[Python-checkins] peps: Update section on impact to finders.

eric.smith python-checkins at python.org
Tue Apr 24 19:06:21 CEST 2012


http://hg.python.org/peps/rev/3c0c053d8cf5
changeset:   4304:3c0c053d8cf5
user:        Eric V. Smith <eric at trueblade.com>
date:        Tue Apr 24 13:05:25 2012 -0400
summary:
  Update section on impact to finders.

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


diff --git a/pep-0420.txt b/pep-0420.txt
--- a/pep-0420.txt
+++ b/pep-0420.txt
@@ -144,7 +144,14 @@
 Impact on Import Finders and Loaders
 ------------------------------------
 
-To be determined in the sample implementation.
+PEP 302 defines "finders" that are called to search path
+elements. These finders' ``find_module`` methods currently return
+either a "loader" object or None. For a finder to contribute to
+namespace packages, ``find_module`` will return a third type: a
+string. This is the string that will be recorded and later used as a
+component of the namespace module's __path__, as described above.
+
+[Consider Brett's idea to pass NamespaceLoader in to PathFinder]
 
 Discussion
 ==========

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


More information about the Python-checkins mailing list