-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…or zipimport (#5248)
- Loading branch information
Showing
5 changed files
with
157 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 6 additions & 13 deletions
19
Misc/NEWS.d/next/Library/2017-12-15-15-34-12.bpo-32248.zmO8G2.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,6 @@ | ||
Add :class:`importlib.abc.ResourceReader` as an ABC to provide a | ||
unified API for reading resources contained within packages. Loaders | ||
wishing to support resource reading are expected to implement the | ||
``get_resource_reader(fullname)`` method. | ||
|
||
Also add :mod:`importlib.resources` as the stdlib port of the | ||
``importlib_resources`` PyPI package. The modules provides a high-level | ||
API for end-users to read resources in a nicer fashion than having to | ||
directly interact with low-level details such as loaders. | ||
|
||
Thanks to this work, :class:`importlib.abc.ResourceLoader` has now | ||
been documented as deprecated due to its under-specified nature and | ||
lack of features as provided by :class:`importlib.abc.ResourceReader`. | ||
Add :mod:`importlib.resources` and :class:`importlib.abc.ResourceReader` as | ||
the unified API for reading resources contained within packages. Loaders | ||
wishing to support resource reading must implement the | ||
:meth:`get_resource_reader()` method. File-based and zipimport-based loaders | ||
both implement these APIs. :class:`importlib.abc.ResourceLoader` is | ||
deprecated in favor of these new APIs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters