From 29b2f174da2ac5c6fa33b3f2a7836f1c1565351c Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 21 Jun 2013 18:31:55 -0400 Subject: [PATCH] Issue #18278: properly document how the loaders are called for FileFinder --- Doc/library/importlib.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index 51a0a28342..efd027b316 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 -- 2.40.0