Clarify importlib.machinery.PathFinder's difference from what __import__() does.

This commit is contained in:
Brett Cannon 2012-03-02 12:10:48 -05:00
parent 75321e8379
commit 83ac0133bd
1 changed files with 3 additions and 1 deletions

View File

@ -477,7 +477,9 @@ find and load modules.
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.