[Python-checkins] cpython: Clarify importlib.machinery.PathFinder's difference from what __import__() does.
brett.cannon
python-checkins at python.org
Tue Mar 6 21:33:32 CET 2012
http://hg.python.org/cpython/rev/139d90ed368d
changeset: 75462:139d90ed368d
user: Brett Cannon <brett at python.org>
date: Fri Mar 02 12:10:48 2012 -0500
summary:
Clarify importlib.machinery.PathFinder's difference from what __import__() does.
files:
Doc/library/importlib.rst | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -477,7 +477,9 @@
This class does not perfectly mirror the semantics of :keyword:`import` in
terms of :data:`sys.path`. No implicit path hooks are assumed for
- simplification of the class and its semantics.
+ simplification of the class and its semantics. This implies that when
+ ``None`` is found in :data:`sys.path_importer_cache` that it is simply
+ ignored instead of implying a default finder.
Only class methods are defined by this class to alleviate the need for
instantiation.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list