]> granicus.if.org Git - python/commitdiff
Issue #18278: properly document how the loaders are called for FileFinder
authorBrett Cannon <brett@python.org>
Fri, 21 Jun 2013 22:31:55 +0000 (18:31 -0400)
committerBrett Cannon <brett@python.org>
Fri, 21 Jun 2013 22:31:55 +0000 (18:31 -0400)
Doc/library/importlib.rst

index 51a0a283428cfdb387eb59ed58fa6c7e42c408c7..efd027b316231ce0f3cc5337ca6b6d9ed0be490c 100644 (file)
@@ -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