rarely used. No direct replacement exists. *Anything* is better than CGI
to interface a web server with a request handler.
+* :mod:`importlib`:
+
+ * ``load_module()`` method: use ``exec_module()`` instead.
+
* :class:`locale`: :func:`locale.getdefaultlocale` was deprecated in Python 3.11
and originally planned for removal in Python 3.13 (:gh:`90817`),
but removal has been postponed to Python 3.15.
:exc:`NotImplementedError`. Functionality provided when
:meth:`exec_module` is available.
- .. deprecated:: 3.4
+ .. deprecated-removed:: 3.4 3.15
The recommended API for loading a module is :meth:`exec_module`
(and :meth:`create_module`). Loaders should implement it instead of
:meth:`load_module`. The import machinery takes care of all the
Implementation of :meth:`Loader.load_module`.
- .. deprecated:: 3.4
+ .. deprecated-removed:: 3.4 3.15
use :meth:`exec_module` instead.
Calls super's ``load_module()``.
- .. deprecated:: 3.4
+ .. deprecated-removed:: 3.4 3.15
Use :meth:`Loader.exec_module` instead.
.. abstractmethod:: get_filename(fullname)
Concrete implementation of :meth:`Loader.load_module`.
- .. deprecated:: 3.4
+ .. deprecated-removed:: 3.4 3.15
Use :meth:`exec_module` instead.
.. method:: get_source(fullname)
Concrete implementation of :meth:`importlib.abc.Loader.load_module` where
specifying the name of the module to load is optional.
- .. deprecated:: 3.6
+ .. deprecated-removed:: 3.6 3.15
Use :meth:`importlib.abc.Loader.exec_module` instead.
Concrete implementation of :meth:`importlib.abc.Loader.load_module` where
specifying the name of the module to load is optional.
- .. deprecated:: 3.6
+ .. deprecated-removed:: 3.6 3.15
Use :meth:`importlib.abc.Loader.exec_module` instead.
"""
msg = ("the load_module() method is deprecated and slated for removal in "
- "Python 3.12; use exec_module() instead")
+ "Python 3.15; use exec_module() instead")
_warnings.warn(msg, DeprecationWarning)
spec = spec_from_loader(fullname, self)
if fullname in sys.modules: