changeset: 105531:5376b3a168c8 parent: 105529:e66481099b9b parent: 105530:25df9671663b user: Steve Dower date: Thu Dec 08 09:01:39 2016 -0800 files: Doc/whatsnew/3.6.rst Misc/NEWS description: Issue #28896: Deprecate WindowsRegistryFinder diff -r e66481099b9b -r 5376b3a168c8 Doc/library/importlib.rst --- a/Doc/library/importlib.rst Thu Dec 08 17:17:17 2016 +0100 +++ b/Doc/library/importlib.rst Thu Dec 08 09:01:39 2016 -0800 @@ -806,6 +806,10 @@ .. 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 -r e66481099b9b -r 5376b3a168c8 Doc/using/windows.rst --- a/Doc/using/windows.rst Thu Dec 08 17:17:17 2016 +0100 +++ b/Doc/using/windows.rst Thu Dec 08 09:01:39 2016 -0800 @@ -823,6 +823,14 @@ * 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 -r e66481099b9b -r 5376b3a168c8 Doc/whatsnew/3.6.rst --- a/Doc/whatsnew/3.6.rst Thu Dec 08 17:17:17 2016 +0100 +++ b/Doc/whatsnew/3.6.rst Thu Dec 08 09:01:39 2016 -0800 @@ -1938,6 +1938,10 @@ 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 -r e66481099b9b -r 5376b3a168c8 Misc/NEWS --- a/Misc/NEWS Thu Dec 08 17:17:17 2016 +0100 +++ b/Misc/NEWS Thu Dec 08 09:01:39 2016 -0800 @@ -457,6 +457,8 @@ Windows ------- +- Issue #28896: Deprecate WindowsRegistryFinder + - Issue #28522: Fixes mishandled buffer reallocation in getpathp.c - Issue #28402: Adds signed catalog files for stdlib on Windows.