]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-112419: Document removal of sys.meta_path's 'find_module' fallback (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 11 Jan 2024 09:49:21 +0000 (10:49 +0100)
committerGitHub <noreply@github.com>
Thu, 11 Jan 2024 09:49:21 +0000 (09:49 +0000)
(cherry picked from commit ec23e90082ffdedc7f0bdd2dfadfc4983ddc0712)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Doc/library/sys.rst

index f0b1d940ec5ec6369d99a7f2bb78ab5e1c526408..af0eae668e10d6052ba36f57103f26a070a5f8df 100644 (file)
@@ -1254,10 +1254,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