Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29b2f17

Browse files
committed
Issue #18278: properly document how the loaders are called for FileFinder
1 parent 60a9593 commit 29b2f17

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/library/importlib.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,8 @@ find and load modules.
697697

698698
The *loader_details* argument is a variable number of 2-item tuples each
699699
containing a loader and a sequence of file suffixes the loader recognizes.
700+
The loaders are expected to be callables which accept two arguments of
701+
the module's name and the path to the file found.
700702

701703
The finder will cache the directory contents as necessary, making stat calls
702704
for each module search to verify the cache is not outdated. Because cache

0 commit comments

Comments
 (0)