[3.12] gh-112419: Document removal of sys.meta_path's 'find_module' fallback (GH-112421) (#113934)

(cherry picked from commit ec23e90082)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
This commit is contained in:
Miss Islington (bot) 2024-01-11 10:49:21 +01:00 committed by GitHub
parent fa181fcf21
commit 5c238225f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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