From: Senthil Kumaran Date: Tue, 6 Sep 2016 00:16:06 +0000 (-0700) Subject: [merge from 3.5] - Update pkgutil docs to reference appropriate finder and loader... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56b4872ff5cb1eef8fcef61db3b9b36f7acc5f1e;p=python [merge from 3.5] - Update pkgutil docs to reference appropriate finder and loader object documentation. Initial patch contributed by Jaysinh shukla. --- 56b4872ff5cb1eef8fcef61db3b9b36f7acc5f1e diff --cc Lib/pkgutil.py index 15b3ae1161,0685378c44..7fc356c9ae --- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py @@@ -395,9 -395,9 +395,9 @@@ except ImportError def get_importer(path_item): - """Retrieve a PEP 302 finder for the given path item + """Retrieve a finder for the given path item - The returned importer is cached in sys.path_importer_cache + The returned finder is cached in sys.path_importer_cache if it was newly created by a path hook. The cache (or part of it) can be cleared manually if a @@@ -419,11 -419,11 +419,11 @@@ def iter_importers(fullname=""): - """Yield PEP 302 finders for the given module name + """Yield finders for the given module name - If fullname contains a '.', the importers will be for the package + If fullname contains a '.', the finders will be for the package containing fullname, otherwise they will be all registered top level - importers (i.e. those on both sys.meta_path and sys.path_hooks). + finders (i.e. those on both sys.meta_path and sys.path_hooks). If the named module is in a package, that package is imported as a side effect of invoking this function.