Skip to content

Commit

Permalink
pythongh-112419: Document removal of sys.meta_path's 'find_module' fa…
Browse files Browse the repository at this point in the history
…llback (pythonGH-112421)

(cherry picked from commit ec23e90)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
  • Loading branch information
2 people authored and miss-islington committed Jan 11, 2024
1 parent fa181fc commit e6a7e80
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Doc/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e6a7e80

Please sign in to comment.