From: Brett Cannon Date: Fri, 21 Jun 2013 22:31:55 +0000 (-0400) Subject: Issue #18278: properly document how the loaders are called for FileFinder X-Git-Tag: v3.4.0a1~431^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=29b2f174da2ac5c6fa33b3f2a7836f1c1565351c;p=thirdparty%2FPython%2Fcpython.git Issue #18278: properly document how the loaders are called for FileFinder --- diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index 51a0a283428c..efd027b31623 100644 --- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -697,6 +697,8 @@ find and load modules. The *loader_details* argument is a variable number of 2-item tuples each containing a loader and a sequence of file suffixes the loader recognizes. + The loaders are expected to be callables which accept two arguments of + the module's name and the path to the file found. The finder will cache the directory contents as necessary, making stat calls for each module search to verify the cache is not outdated. Because cache