diff --git a/Doc/library/distutils.rst b/Doc/library/distutils.rst index 6c439ecd2be56e..af63e035bf3c4a 100644 --- a/Doc/library/distutils.rst +++ b/Doc/library/distutils.rst @@ -8,7 +8,7 @@ .. deprecated-removed:: 3.10 3.12 This module is no longer part of the Python standard library. -It was :ref:`removed in Python 3.12 ` after +It was :ref:`removed in Python 3.12 ` after being deprecated in Python 3.10. The removal was decided in :pep:`632`, which has `migration advice `_. diff --git a/Doc/library/imp.rst b/Doc/library/imp.rst index eb78f1a71e7e7a..3dc4c568b1ae2f 100644 --- a/Doc/library/imp.rst +++ b/Doc/library/imp.rst @@ -8,8 +8,11 @@ .. deprecated-removed:: 3.4 3.12 This module is no longer part of the Python standard library. -It was :ref:`removed in Python 3.12 ` after +It was :ref:`removed in Python 3.12 ` after being deprecated in Python 3.4. +The :ref:`removal notice ` includes guidance for +migrating code from :mod:`!imp` to :mod:`importlib`. + The last version of Python that provided the :mod:`!imp` module was `Python 3.11 `_. diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 9204af46c15192..4fffc78a237791 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -1368,6 +1368,8 @@ configparser * :class:`configparser.ConfigParser` no longer has a ``readfp`` method. Use :meth:`~configparser.ConfigParser.read_file` instead. +.. _whatsnew312-removed-distutils: + distutils --------- @@ -1449,6 +1451,8 @@ importlib * ``importlib.abc.Finder``, ``pkgutil.ImpImporter``, and ``pkgutil.ImpLoader`` have been removed. (Contributed by Barry Warsaw in :gh:`98040`.) +.. _whatsnew312-removed-imp: + imp ---