diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-05-27 23:57:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 23:57:04 (GMT) |
commit | 59f9594f9018450101079eb47e06e3c44cfeee36 (patch) | |
tree | 515633a60635dc363bbcbe968fd07dda49433629 /Doc/whatsnew | |
parent | d1c732912e20e89815aca2d986442d349e82e31f (diff) | |
download | cpython-59f9594f9018450101079eb47e06e3c44cfeee36.zip cpython-59f9594f9018450101079eb47e06e3c44cfeee36.tar.gz cpython-59f9594f9018450101079eb47e06e3c44cfeee36.tar.bz2 |
[3.10] bpo-44246: Update What's New for importlib.metadata. (GH-26408) (GH-26415)
* [bpo-44246](): Update What's New for importlib.metadata.
Bump version of importlib_metadata included.
Add note about compatibility notice and fix link to entry_points documentation.
Add note about removal of access by index on Distribution.entry_points.
* Fix syntax mistake in issue reference.
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* Fix broken reference in entry-points.
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 28f12c9f4f39d283d823d81e311d863526dfdb54)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Automerge-Triggered-By: GH:jaraco
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.10.rst | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index f828415..1297a81 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -1039,11 +1039,17 @@ and will be incorrect in some rare cases, including some ``_``-s in importlib.metadata ------------------ -Feature parity with ``importlib_metadata`` 3.7. +Feature parity with ``importlib_metadata`` 4.2 +(`history <https://importlib-metadata.readthedocs.io/en/latest/history.html>`_). -:func:`importlib.metadata.entry_points` now provides a nicer experience +:ref:`importlib.metadata entry points <entry-points>` +now provides a nicer experience for selecting entry points by group and name through a new -:class:`importlib.metadata.EntryPoints` class. +:class:`importlib.metadata.EntryPoints` class. See the Compatibility +Note in the docs for more info on the deprecation and usage. +Incidentally, these changes also removed access by index on the +result of :func:`importlib.metadata.Distribution.entry_points` +(see :issue:`44246` for more detail). Added :func:`importlib.metadata.packages_distributions` for resolving top-level Python modules and packages to their |