]> granicus.if.org Git - python/commitdiff
Issue #28896: Deprecate WindowsRegistryFinder
authorSteve Dower <steve.dower@microsoft.com>
Wed, 7 Dec 2016 21:02:27 +0000 (13:02 -0800)
committerSteve Dower <steve.dower@microsoft.com>
Wed, 7 Dec 2016 21:02:27 +0000 (13:02 -0800)
Doc/library/importlib.rst
Doc/using/windows.rst
Doc/whatsnew/3.6.rst
Misc/NEWS

index 8210a2f17093d643c55c04ab3d42c24775467180..1fd56983d0a9e911082d6106dfe0e577c2d73f31 100644 (file)
@@ -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
 
index 81efbb0c985b5db9a3789fd5be5454e0bfbe7f54..3e4b70e8a17ef7ee8671ae14174b7246393ee9c0 100644 (file)
@@ -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
 ==================
 
index 527e7429b1e6e65ea5eb87f3787c6fb3f90e8fb1..ddca2ef8ca328e394b96305b158554f7fe3cdaba 100644 (file)
@@ -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
 ~~
 
index a15bb9bf871f1985ea0d0a1287e5bc9149bd24b0..deb1549a28e9a0fc05310908a158863d6b86fd10 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -22,6 +22,11 @@ Library
 - Issue #28847: dbm.dumb now supports reading read-only files and no longer
   writes the index file when it is not changed.
 
+Windows
+-------
+
+- Issue #28896: Deprecate WindowsRegistryFinder
+
 Tests
 -----