summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-12-08 17:01:39 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-12-08 17:01:39 (GMT)
commit3b3a7c01bca9729a8e516dc0b045663c72456401 (patch)
tree4260ce65b51010eb87998a67704b2283f4407d8e
parent808e47ee0cb369680b4edb641989f870de71da49 (diff)
parent20367420c8b32602a550834fa3fb061a9d9a3b55 (diff)
downloadcpython-3b3a7c01bca9729a8e516dc0b045663c72456401.zip
cpython-3b3a7c01bca9729a8e516dc0b045663c72456401.tar.gz
cpython-3b3a7c01bca9729a8e516dc0b045663c72456401.tar.bz2
Issue #28896: Deprecate WindowsRegistryFinder
-rw-r--r--Doc/library/importlib.rst4
-rw-r--r--Doc/using/windows.rst8
-rw-r--r--Doc/whatsnew/3.6.rst4
-rw-r--r--Misc/NEWS2
4 files changed, 18 insertions, 0 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index 8210a2f..1fd5698 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -806,6 +806,10 @@ find and load modules.
.. versionadded:: 3.3
+ .. deprecated:: 3.6
+ Use :mod:`site` configuration instead. Future versions of Python may
+ not enable this finder by default.
+
.. class:: PathFinder
diff --git a/Doc/using/windows.rst b/Doc/using/windows.rst
index 81efbb0..3e4b70e 100644
--- a/Doc/using/windows.rst
+++ b/Doc/using/windows.rst
@@ -823,6 +823,14 @@ non-standard paths in the registry and user site-packages.
* Adds ``pythonXX.zip`` as a potential landmark when directly adjacent
to the executable.
+.. deprecated::
+ 3.6
+
+ Modules specified in the registry under ``Modules`` (not ``PythonPath``)
+ may be imported by :class:`importlib.machinery.WindowsRegistryFinder`.
+ This finder is enabled on Windows in 3.6.0 and earlier, but may need to
+ be explicitly added to :attr:`sys.meta_path` in the future.
+
Additional modules
==================
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst
index 527e742..ddca2ef 100644
--- a/Doc/whatsnew/3.6.rst
+++ b/Doc/whatsnew/3.6.rst
@@ -1938,6 +1938,10 @@ are now deprecated. They were the only remaining implementations of
been deprecated in previous versions of Python in favour of
:meth:`importlib.abc.Loader.exec_module`.
+The :class:`importlib.machinery.WindowsRegistryFinder` class is now
+deprecated. As of 3.6.0, it is still added to :attr:`sys.meta_path` by
+default (on Windows), but this may change in future releases.
+
os
~~
diff --git a/Misc/NEWS b/Misc/NEWS
index e0cb0b7..f992fab 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -457,6 +457,8 @@ Library
Windows
-------
+- Issue #28896: Deprecate WindowsRegistryFinder
+
- Issue #28522: Fixes mishandled buffer reallocation in getpathp.c
- Issue #28402: Adds signed catalog files for stdlib on Windows.