Skip to content

Commit 5c23822

Browse files
miss-islingtonaiskerlend-aasland
authored
[3.12] gh-112419: Document removal of sys.meta_path's 'find_module' fallback (GH-112421) (#113934)
(cherry picked from commit ec23e90) Co-authored-by: AN Long <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]>
1 parent fa181fc commit 5c23822

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
@@ -1254,10 +1254,13 @@ always available.
12541254
.. versionchanged:: 3.4
12551255

12561256
:term:`Module specs <module spec>` were introduced in Python 3.4, by
1257-
:pep:`451`. Earlier versions of Python looked for a method called
1258-
:meth:`!find_module`.
1259-
This is still called as a fallback if a :data:`meta_path` entry doesn't
1260-
have a :meth:`~importlib.abc.MetaPathFinder.find_spec` method.
1257+
:pep:`451`.
1258+
1259+
.. versionchanged:: 3.12
1260+
1261+
Removed the fallback that looked for a :meth:`!find_module` method
1262+
if a :data:`meta_path` entry didn't have a
1263+
:meth:`~importlib.abc.MetaPathFinder.find_spec` method.
12611264

12621265
.. data:: modules
12631266

0 commit comments

Comments
 (0)