Skip to content

Commit c1311b8

Browse files
committed
Update glossary entry for 'loader' to reflect current import system
1 parent 6c52ada commit c1311b8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Doc/glossary.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,8 +812,11 @@ Glossary
812812

813813
loader
814814
An object that loads a module. It must define a method named
815-
:meth:`load_module`. A loader is typically returned by a
816-
:term:`finder`. See also:
815+
:meth:`exec_module`, along with :meth:`create_module`.
816+
The :meth:`load_module` method, which was used in earlier
817+
versions of Python, has been deprecated since version 3.4
818+
and should no longer be implemented in new code. A loader is
819+
typically returned by a :term:`finder`. See also:
817820

818821
* :ref:`finders-and-loaders`
819822
* :class:`importlib.abc.Loader`

0 commit comments

Comments
 (0)