Skip to content

Commit 3a75801

Browse files
committed
gh-143387: Add news blurb for importlib.metadata highlighting the change.
1 parent 87a879f commit 3a75801

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Doc/whatsnew/3.15.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,19 @@ http.server
12071207
(Contributed by Anton I. Sipos in :gh:`135057`.)
12081208

12091209

1210+
importlib.metadata
1211+
------------------
1212+
1213+
* Previously, when accessing a distribution metadata directory not
1214+
containing a metadata file, ``metadata()`` and ``Distribution.metadata()``
1215+
would return an empty ``PackageMetadata`` object as if the file
1216+
was present but empty. Now, a ``MetadataNotFound`` exception is raised.
1217+
See `importlib_metadata#493 <https://github.com/python/importlib_metadata/issues/493>`_
1218+
for background and rationale and and :gh:`143387` for rationale on the
1219+
compatibility concerns.
1220+
(Contributed by Jason R. Coombs.)
1221+
1222+
12101223
inspect
12111224
-------
12121225

0 commit comments

Comments
 (0)