From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 11 Jan 2024 09:49:21 +0000 (+0100) Subject: [3.12] gh-112419: Document removal of sys.meta_path's 'find_module' fallback (GH... X-Git-Tag: v3.12.2~195 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c238225f60c33cf1931b1a8c9a3310192c716ae;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-112419: Document removal of sys.meta_path's 'find_module' fallback (GH-112421) (#113934) (cherry picked from commit ec23e90082ffdedc7f0bdd2dfadfc4983ddc0712) Co-authored-by: AN Long Co-authored-by: Erlend E. Aasland --- diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index f0b1d940ec5e..af0eae668e10 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -1254,10 +1254,13 @@ always available. .. versionchanged:: 3.4 :term:`Module specs ` 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