[Python-checkins] cpython (3.3): Issue #18278: properly document how the loaders are called for FileFinder

brett.cannon python-checkins at python.org
Sat Jun 22 00:37:11 CEST 2013


http://hg.python.org/cpython/rev/6978d7a6692a
changeset:   84246:6978d7a6692a
branch:      3.3
parent:      84243:ea8359a13ce7
user:        Brett Cannon <brett at python.org>
date:        Fri Jun 21 18:31:55 2013 -0400
summary:
  Issue #18278: properly document how the loaders are called for FileFinder

files:
  Doc/library/importlib.rst |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -697,6 +697,8 @@
 
    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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list