Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5dc1fb3

Browse files
committed
Issue #28896: Deprecate WindowsRegistryFinder
(grafted from 25df9671663b5f8b1560d58d8842f9676f6dffc2)
1 parent b5e688a commit 5dc1fb3

4 files changed

Lines changed: 27 additions & 0 deletions

File tree

Doc/library/importlib.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,10 @@ find and load modules.
806806

807807
.. versionadded:: 3.3
808808

809+
.. deprecated:: 3.6
810+
Use :mod:`site` configuration instead. Future versions of Python may
811+
not enable this finder by default.
812+
809813

810814
.. class:: PathFinder
811815

Doc/using/windows.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,14 @@ non-standard paths in the registry and user site-packages.
823823
* Adds ``pythonXX.zip`` as a potential landmark when directly adjacent
824824
to the executable.
825825

826+
.. deprecated::
827+
3.6
828+
829+
Modules specified in the registry under ``Modules`` (not ``PythonPath``)
830+
may be imported by :class:`importlib.machinery.WindowsRegistryFinder`.
831+
This finder is enabled on Windows in 3.6.0 and earlier, but may need to
832+
be explicitly added to :attr:`sys.meta_path` in the future.
833+
826834
Additional modules
827835
==================
828836

Doc/whatsnew/3.6.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,6 +1938,10 @@ are now deprecated. They were the only remaining implementations of
19381938
been deprecated in previous versions of Python in favour of
19391939
:meth:`importlib.abc.Loader.exec_module`.
19401940

1941+
The :class:`importlib.machinery.WindowsRegistryFinder` class is now
1942+
deprecated. As of 3.6.0, it is still added to :attr:`sys.meta_path` by
1943+
default (on Windows), but this may change in future releases.
1944+
19411945
os
19421946
~~
19431947

Misc/NEWS

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
Python News
33
+++++++++++
44

5+
What's New in Python 3.6.0 release candidate 2
6+
==============================================
7+
8+
*Release date: XXXX-XX-XX*
9+
10+
Windows
11+
-------
12+
13+
- Issue #28896: Deprecate WindowsRegistryFinder
14+
15+
516
What's New in Python 3.6.0 release candidate 1
617
==============================================
718

0 commit comments

Comments
 (0)