summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorBrett Cannon <brettcannon@users.noreply.github.com>2018-01-12 23:08:59 (GMT)
committerGitHub <noreply@github.com>2018-01-12 23:08:59 (GMT)
commitbca42186b69e2e615d29d0d4fdb493c9fe71c48b (patch)
treefffc97d389a1f85f43312a11b31e83cb1c5c3b39 /Doc/whatsnew
parent5b76bdba071e7bbd9fda0b9b100d1506d95c04bd (diff)
downloadcpython-bca42186b69e2e615d29d0d4fdb493c9fe71c48b.zip
cpython-bca42186b69e2e615d29d0d4fdb493c9fe71c48b.tar.gz
cpython-bca42186b69e2e615d29d0d4fdb493c9fe71c48b.tar.bz2
bpo-32248: Introduce the concept of Loader.get_resource_reader() (GH-5108)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.7.rst17
1 files changed, 13 insertions, 4 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index 992d9ba..1041d31 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -328,8 +328,8 @@ importlib.resources
This module provides several new APIs and one new ABC for access to, opening,
and reading *resources* inside packages. Resources are roughly akin to files
inside of packages, but they needn't be actual files on the physical file
-system. Module loaders can implement the
-:class:`importlib.abc.ResourceReader` ABC to support this new module's API.
+system. Module loaders can provide :class:`importlib.abc.ResourceReader`
+implementations to support this new module's API.
Improved Modules
@@ -429,6 +429,12 @@ and the ``--directory`` to the command line of the module :mod:`~http.server`.
With this parameter, the server serves the specified directory, by default it uses the current working directory.
(Contributed by Stéphane Wirtel and Julien Palard in :issue:`28707`.)
+importlib
+---------
+
+The :class:`importlib.abc.ResourceReader` ABC was introduced to
+support the loading of resource from packages.
+
locale
------
@@ -761,6 +767,9 @@ Deprecated
- The :mod:`macpath` is now deprecated and will be removed in Python 3.8.
+- The :class:`importlib.abc.ResourceLoader` ABC has been deprecated in
+ favour of :class:`importlib.abc.ResourceReader`.
+
Changes in the C API
--------------------
@@ -785,8 +794,8 @@ Windows Only
been used. If the specified version is not available py.exe will error exit.
(Contributed by Steve Barnes in :issue:`30291`.)
-- The launcher can be run as "py -0" to produce a list of the installed pythons,
- *with default marked with an asterix*. Running "py -0p" will include the paths.
+- The launcher can be run as ``py -0`` to produce a list of the installed pythons,
+ *with default marked with an asterisk*. Running ``py -0p`` will include the paths.
If py is run with a version specifier that cannot be matched it will also print
the *short form* list of available specifiers.
(Contributed by Steve Barnes in :issue:`30362`.)