Commit 04405716 authored by Brett Cannon's avatar Brett Cannon

Issue #17357: Use more stern wording for

importlib.invalidate_caches().
parent e6806b2a
...@@ -103,9 +103,9 @@ Functions ...@@ -103,9 +103,9 @@ Functions
Invalidate the internal caches of finders stored at Invalidate the internal caches of finders stored at
:data:`sys.meta_path`. If a finder implements ``invalidate_caches()`` then it :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 will be called to perform the invalidation. This function should be called
some modules are installed while your program is running and you expect the if any modules are created/installed while your program is running to
program to notice the changes. guarantee all finders will notice the new module's existence.
.. versionadded:: 3.3 .. versionadded:: 3.3
...@@ -182,7 +182,7 @@ ABC hierarchy:: ...@@ -182,7 +182,7 @@ ABC hierarchy::
.. versionadded:: 3.3 .. versionadded:: 3.3
.. method:: find_loader(fullname): .. method:: find_loader(fullname)
An abstract method for finding a :term:`loader` for the specified An abstract method for finding a :term:`loader` for the specified
module. Returns a 2-tuple of ``(loader, portion)`` where ``portion`` module. Returns a 2-tuple of ``(loader, portion)`` where ``portion``
...@@ -194,7 +194,7 @@ ABC hierarchy:: ...@@ -194,7 +194,7 @@ ABC hierarchy::
the empty list then no loader or location for a namespace package were the empty list then no loader or location for a namespace package were
found (i.e. failure to find anything for the module). found (i.e. failure to find anything for the module).
.. method:: find_module(fullname): .. method:: find_module(fullname)
A concrete implementation of :meth:`Finder.find_module` which is A concrete implementation of :meth:`Finder.find_module` which is
equivalent to ``self.find_loader(fullname)[0]``. equivalent to ``self.find_loader(fullname)[0]``.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment