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

Skip to content

Commit 4067aa2

Browse files
committed
Issue #17357: Use more stern wording for
importlib.invalidate_caches().
1 parent e1a1674 commit 4067aa2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/library/importlib.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ Functions
103103

104104
Invalidate the internal caches of finders stored at
105105
:data:`sys.meta_path`. If a finder implements ``invalidate_caches()`` then it
106-
will be called to perform the invalidation. This function may be needed if
107-
some modules are installed while your program is running and you expect the
108-
program to notice the changes.
106+
will be called to perform the invalidation. This function should be called
107+
if any modules are created/installed while your program is running to
108+
guarantee all finders will notice the new module's existence.
109109

110110
.. versionadded:: 3.3
111111

@@ -182,7 +182,7 @@ ABC hierarchy::
182182

183183
.. versionadded:: 3.3
184184

185-
.. method:: find_loader(fullname):
185+
.. method:: find_loader(fullname)
186186

187187
An abstract method for finding a :term:`loader` for the specified
188188
module. Returns a 2-tuple of ``(loader, portion)`` where ``portion``
@@ -194,7 +194,7 @@ ABC hierarchy::
194194
the empty list then no loader or location for a namespace package were
195195
found (i.e. failure to find anything for the module).
196196

197-
.. method:: find_module(fullname):
197+
.. method:: find_module(fullname)
198198

199199
A concrete implementation of :meth:`Finder.find_module` which is
200200
equivalent to ``self.find_loader(fullname)[0]``.

0 commit comments

Comments
 (0)