mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Issue #18278: properly document how the loaders are called for FileFinder
This commit is contained in:
parent
60a95933cb
commit
29b2f174da
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue