(Contributed by Brett Cannon in :issue:`42135`.)
* The deprecations of :mod:`!imp`, :func:`!importlib.find_loader`,
- :func:`importlib.util.set_package_wrapper`,
- :func:`importlib.util.set_loader_wrapper`,
- :func:`importlib.util.module_for_loader`,
+ :func:`!importlib.util.set_package_wrapper`,
+ :func:`!importlib.util.set_loader_wrapper`,
+ :func:`!importlib.util.module_for_loader`,
:class:`!pkgutil.ImpImporter`, and
:class:`!pkgutil.ImpLoader` have all been updated to list Python 3.12 as the
slated version of removal (they began raising :exc:`DeprecationWarning` in
* :meth:`!importlib.machinery.FrozenLoader.module_repr`
* :meth:`!importlib.machinery.PathFinder.find_module`
* :meth:`!importlib.machinery.WindowsRegistryFinder.find_module`
-* :func:`importlib.util.module_for_loader`
+* :func:`!importlib.util.module_for_loader`
* :func:`!importlib.util.set_loader_wrapper`
* :func:`!importlib.util.set_package_wrapper`
* :class:`!pkgutil.ImpImporter`
:meth:`importlib.abc.SourceLoader.exec_module`) and let the import system
take care of the rest; and
:meth:`!importlib.abc.Loader.module_repr`,
- :meth:`importlib.util.module_for_loader`, :meth:`importlib.util.set_loader`,
- and :meth:`importlib.util.set_package` are no longer needed because their
+ :meth:`!importlib.util.module_for_loader`, :meth:`!importlib.util.set_loader`,
+ and :meth:`!importlib.util.set_package` are no longer needed because their
functions are now handled automatically by the import system.
* The :mod:`!imp` module is pending deprecation. To keep compatibility with
in a backwards-compatible fashion, use e.g.
``getattr(module, '__loader__', None) is not None``. (:issue:`17115`.)
-* :meth:`importlib.util.module_for_loader` now sets ``__loader__`` and
+* :meth:`!importlib.util.module_for_loader` now sets ``__loader__`` and
``__package__`` unconditionally to properly support reloading. If this is not
desired then you will need to set these attributes manually. You can use
:func:`importlib.util.module_to_load` for module management.
.. nonce: HY2beA
.. section: Documentation
-Updated importlib.utils.resolve_name() doc to use __spec__.parent instead of
+Updated importlib.util.resolve_name() doc to use __spec__.parent instead of
__package__. (Thanks Yair Frid.)
..
.. nonce: NzdREm
.. section: Library
-Remove deprecated :func:`importlib.utils.set_loader` and
-:func:`importlib.utils.module_for_loader` from :mod:`importlib.utils`.
+Remove deprecated :func:`!importlib.util.set_loader` and
+:func:`!importlib.util.module_for_loader` from :mod:`importlib.util`.
..