summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-12-07 13:02:27 -0800
committerSteve Dower <steve.dower@microsoft.com>2016-12-07 13:02:27 -0800
commit59b9eaed2a82da60cfbe3fddef196d654e6289eb (patch)
treedf7288c6ee30b78bc48bfbc0f23172eacef418a5
parent684e36b27ccefc80437a6313e03429de5b4b4173 (diff)
downloadcpython-59b9eaed2a82da60cfbe3fddef196d654e6289eb.tar.gz
Issue #28896: Deprecate WindowsRegistryFinder
(grafted from 25df9671663b5f8b1560d58d8842f9676f6dffc2)
-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/NEWS11
4 files changed, 27 insertions, 0 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index 8210a2f170..1fd56983d0 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 81efbb0c98..3e4b70e8a1 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 527e7429b1..ddca2ef8ca 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 770c8a9623..bab6558e12 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -2,6 +2,17 @@
Python News
+++++++++++
+What's New in Python 3.6.0 release candidate 2
+==============================================
+
+*Release date: XXXX-XX-XX*
+
+Windows
+-------
+
+- Issue #28896: Deprecate WindowsRegistryFinder
+
+
What's New in Python 3.6.0 release candidate 1
==============================================