diff options
author | Brett Cannon <brett@python.org> | 2013-04-27 23:20:55 -0400 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-04-27 23:20:55 -0400 |
commit | 1f6ee73c1e6338ff9494dea5a5473d9266eb66f5 (patch) | |
tree | fb5e372c845c039e8ab410b6d3ea2e6c384157f1 | |
parent | 9f146819598013046dfb4d24ef4f2a748e6c5930 (diff) | |
parent | 4067aa272ee680f1b593bcbba2d227adb1791f2f (diff) | |
download | cpython-git-1f6ee73c1e6338ff9494dea5a5473d9266eb66f5.tar.gz |
merge for issue #17357
-rw-r--r-- | Doc/library/importlib.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index e78a2eda70..aeeb3fde4c 100644 --- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -109,9 +109,9 @@ Functions Invalidate the internal caches of finders stored at :data:`sys.meta_path`. If a finder implements ``invalidate_caches()`` then it - will be called to perform the invalidation. This function may be needed if - some modules are installed while your program is running and you expect the - program to notice the changes. + will be called to perform the invalidation. This function should be called + if any modules are created/installed while your program is running to + guarantee all finders will notice the new module's existence. .. versionadded:: 3.3 @@ -197,7 +197,7 @@ ABC hierarchy:: .. versionadded:: 3.3 - .. method:: find_loader(fullname): + .. method:: find_loader(fullname) An abstract method for finding a :term:`loader` for the specified module. Returns a 2-tuple of ``(loader, portion)`` where ``portion`` @@ -212,7 +212,7 @@ ABC hierarchy:: .. versionchanged:: 3.4 Returns ``(None, [])`` instead of raising :exc:`NotImplementedError`. - .. method:: find_module(fullname): + .. method:: find_module(fullname) A concrete implementation of :meth:`Finder.find_module` which is equivalent to ``self.find_loader(fullname)[0]``. |