]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-112419: Document removal of sys.meta_path's 'find_module' fallback (#112421)
authorAN Long <aisk@users.noreply.github.com>
Thu, 11 Jan 2024 09:43:35 +0000 (17:43 +0800)
committerGitHub <noreply@github.com>
Thu, 11 Jan 2024 09:43:35 +0000 (09:43 +0000)
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Doc/library/sys.rst

index 2426c37ccb1e0f8310242acdfc3a94590c442639..c371663934314a75c527abb191420d1ea32817ad 100644 (file)
@@ -1268,10 +1268,13 @@ always available.
     .. versionchanged:: 3.4
 
         :term:`Module specs <module spec>` were introduced in Python 3.4, by
-        :pep:`451`. Earlier versions of Python looked for a method called
-        :meth:`!find_module`.
-        This is still called as a fallback if a :data:`meta_path` entry doesn't
-        have a :meth:`~importlib.abc.MetaPathFinder.find_spec` method.
+        :pep:`451`.
+
+    .. versionchanged:: 3.12
+
+        Removed the fallback that looked for a :meth:`!find_module` method
+        if a :data:`meta_path` entry didn't have a
+        :meth:`~importlib.abc.MetaPathFinder.find_spec` method.
 
 .. data:: modules