8000 [3.11] gh-102215: importlib documentation cleanups by miss-islington · Pull Request #108023 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] gh-102215: importlib documentation cleanups #108023

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Doc/library/importlib.metadata.rst
8000
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
.. _using:

=================================
Using :mod:`!importlib.metadata`
=================================
========================================================
:mod:`!importlib.metadata` -- Accessing package metadata
========================================================

.. module:: importlib.metadata
:synopsis: The implementation of the importlib metadata.
:synopsis: Accessing package metadata

.. versionadded:: 3.8
.. versionchanged:: 3.10
``importlib.metadata`` is no longer provisional.

**Source code:** :source:`Lib/importlib/metadata/__init__.py`

``importlib_metadata`` is a library that provides access to
``importlib.metadata`` is a library that provides access to
the metadata of an installed `Distribution Package <https://packaging.python.org/en/latest/glossary/#term-Distribution-Package>`_,
such as its entry points
or its top-level names (`Import Package <https://packaging.python.org/en/latest/glossary/#term-Import-Package>`_\s, modules, if any).
Expand All @@ -24,7 +24,7 @@ API`_ and `metadata API`_ of ``pkg_resources``. Along with
this package can eliminate the need to use the older and less efficient
``pkg_resources`` package.

``importlib_metadata`` operates on third-party *distribution packages*
``importlib.metadata`` operates on third-party *distribution packages*
installed into Python's ``site-packages`` directory via tools such as
`pip <https://pypi.org/project/pip/>`_.
Specifically, it works with distributions with discoverable
Expand Down Expand Up @@ -365,7 +365,7 @@ system `finders`_. To find a distribution package's metadata,
``importlib.metadata`` queries the list of :term:`meta path finders <meta path finder>` on
:data:`sys.meta_path`.

By default ``importlib_metadata`` installs a finder for distribution packages
By default ``importlib.metadata`` installs a finder for distribution packages
found on the file system.
This finder doesn't actually find any *distributions*,
but it can find their metadata.
Expand Down
6 changes: 3 additions & 3 deletions Doc/library/importlib.resources.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:mod:`importlib.resources` -- Resources
---------------------------------------
:mod:`importlib.resources` -- Package resource reading, opening and access
--------------------------------------------------------------------------

.. module:: importlib.resources
:synopsis: Package resource reading, opening, and access
< 6035 svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-fold-down"> Expand Down Expand Up @@ -79,7 +79,7 @@ for example, a package and its resources can be imported from a zip file using
.. versionadded:: 3.9

Deprecated functions
--------------------
^^^^^^^^^^^^^^^^^^^^

An older, deprecated set of functions is still available, but is
scheduled for removal in a future version of Python.
Expand Down
0