Skip to content

Commit 0377c28

Browse files
aiskerlend-aasland
andcommitted
pythongh-112419: Document removal of sys.meta_path's 'find_module' fallback (python#112421)
Co-authored-by: Erlend E. Aasland <[email protected]>
1 parent f7a8e0e commit 0377c28

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Doc/library/sys.rst

+7-4
Original file line numberDiff line numberDiff line change
@@ -1268,10 +1268,13 @@ always available.
12681268
.. versionchanged:: 3.4
12691269

12701270
:term:`Module specs <module spec>` were introduced in Python 3.4, by
1271-
:pep:`451`. Earlier versions of Python looked for a method called
1272-
:meth:`!find_module`.
1273-
This is still called as a fallback if a :data:`meta_path` entry doesn't
1274-
have a :meth:`~importlib.abc.MetaPathFinder.find_spec` method.
1271+
:pep:`451`.
1272+
1273+
.. versionchanged:: 3.12
1274+
1275+
Removed the fallback that looked for a :meth:`!find_module` method
1276+
if a :data:`meta_path` entry didn't have a
1277+
:meth:`~importlib.abc.MetaPathFinder.find_spec` method.
12751278

12761279
.. data:: modules
12771280

0 commit comments

Comments
 (0)