Commit 1b799186 authored by Brett Cannon's avatar Brett Cannon

Issue #15640: Document importlib.abc.Finder as deprecated.

The code for the class itself isn't deprecated for
backwards-compatibility reasons, but the class shouldn't be directly
inherited by anyone anymore as the API is no longer as widely valid as
it used to be.
parent 7385adc8
......@@ -124,7 +124,7 @@ are also provided to help in implementing the core ABCs.
ABC hierarchy::
object
+-- Finder
+-- Finder (deprecated)
| +-- MetaPathFinder
| +-- PathEntryFinder
+-- Loader
......@@ -133,15 +133,16 @@ ABC hierarchy::
+-- ExecutionLoader --+
+-- FileLoader
+-- SourceLoader
+-- PyLoader
+-- PyPycLoader
+-- PyLoader (deprecated)
+-- PyPycLoader (deprecated)
.. class:: Finder
An abstract base class representing a :term:`finder`. Finder
implementations should derive from (or register with) the more specific
:class:`MetaPathFinder` or :class:`PathEntryFinder` ABCs.
An abstract base class representing a :term:`finder`.
.. deprecated:: 3.3
Use :class:`MetaPathFinder` or :class:`PathEntryFinder` instead.
.. method:: find_module(fullname, path=None)
......@@ -656,7 +657,7 @@ find and load modules.
.. class:: PathFinder
:term:`Finder` for :data:`sys.path` and package ``__path__`` attributes.
A :term:`Finder` for :data:`sys.path` and package ``__path__`` attributes.
This class implements the :class:`importlib.abc.MetaPathFinder` ABC.
Only class methods are defined by this class to alleviate the need for
......@@ -678,7 +679,7 @@ find and load modules.
.. classmethod:: invalidate_caches()
Call :meth:`importlib.abc.PathEntryFinder.invalidate_caches` on all
Calls :meth:`importlib.abc.PathEntryFinder.invalidate_caches` on all
finders stored in :attr:`sys.path_importer_cache`.
......
......@@ -41,6 +41,8 @@ Tools/Demos
Documentation
-------------
- Issue #15640: Document importlib.abc.Finder as deprecated.
- Issue #15630: Add an example for "continue" stmt in the tutorial. Patch by
Daniel Ellis.
......
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