Update section on impact to finders.

This commit is contained in:
Eric V. Smith 2012-04-24 13:05:25 -04:00
parent 36e5f61f80
commit 0f69eab7e2
1 changed files with 8 additions and 1 deletions

View File

@ -144,7 +144,14 @@ deferred until a sub-level import occurs.
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
==========