summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>2024-11-01 16:35:22 (GMT)
committerGitHub <noreply@github.com>2024-11-01 16:35:22 (GMT)
commit464a7a91d0c75241a2f1913e78dbfbc29d4193b4 (patch)
tree1e9d04bc545540f6eaa78976e2b4564fe922cfce /Doc/library
parent38a604fd90e765d5ac42373755397ab1e6cc0a39 (diff)
downloadcpython-464a7a91d0c75241a2f1913e78dbfbc29d4193b4.zip
cpython-464a7a91d0c75241a2f1913e78dbfbc29d4193b4.tar.gz
cpython-464a7a91d0c75241a2f1913e78dbfbc29d4193b4.tar.bz2
gh-97850: remove ``find_loader`` and ``get_loader`` from ``pkgutil`` (#119656)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Brett Cannon <brett@python.org>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/pkgutil.rst40
1 files changed, 0 insertions, 40 deletions
diff --git a/Doc/library/pkgutil.rst b/Doc/library/pkgutil.rst
index 4a39d53..20b8f6b 100644
--- a/Doc/library/pkgutil.rst
+++ b/Doc/library/pkgutil.rst
@@ -49,25 +49,6 @@ support.
this function to raise an exception (in line with :func:`os.path.isdir`
behavior).
-.. function:: find_loader(fullname)
-
- Retrieve a module :term:`loader` for the given *fullname*.
-
- This is a backwards compatibility wrapper around
- :func:`importlib.util.find_spec` that converts most failures to
- :exc:`ImportError` and only returns the loader rather than the full
- :class:`importlib.machinery.ModuleSpec`.
-
- .. versionchanged:: 3.3
- Updated to be based directly on :mod:`importlib` rather than relying
- on the package internal :pep:`302` import emulation.
-
- .. versionchanged:: 3.4
- Updated to be based on :pep:`451`
-
- .. deprecated-removed:: 3.12 3.14
- Use :func:`importlib.util.find_spec` instead.
-
.. function:: get_importer(path_item)
@@ -84,27 +65,6 @@ support.
on the package internal :pep:`302` import emulation.
-.. function:: get_loader(module_or_name)
-
- Get a :term:`loader` object for *module_or_name*.
-
- If the module or package is accessible via the normal import mechanism, a
- wrapper around the relevant part of that machinery is returned. Returns
- ``None`` if the module cannot be found or imported. If the named module is
- not already imported, its containing package (if any) is imported, in order
- to establish the package ``__path__``.
-
- .. versionchanged:: 3.3
- Updated to be based directly on :mod:`importlib` rather than relying
- on the package internal :pep:`302` import emulation.
-
- .. versionchanged:: 3.4
- Updated to be based on :pep:`451`
-
- .. deprecated-removed:: 3.12 3.14
- Use :func:`importlib.util.find_spec` instead.
-
-
.. function:: iter_importers(fullname='')
Yield :term:`finder` objects for the given module name.