summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.12.rst
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2023-09-25 06:24:02 (GMT)
committerGitHub <noreply@github.com>2023-09-25 06:24:02 (GMT)
commit7b8bfe1644c3d008c1b5c19a537ee7d19bc32c59 (patch)
treee15ab960b5c3965f85cf7d2a1ddd50f75eac2861 /Doc/whatsnew/3.12.rst
parent09a73d50f687b9b388b0386f400d9ba5a7c5f2a5 (diff)
downloadcpython-7b8bfe1644c3d008c1b5c19a537ee7d19bc32c59.zip
cpython-7b8bfe1644c3d008c1b5c19a537ee7d19bc32c59.tar.gz
cpython-7b8bfe1644c3d008c1b5c19a537ee7d19bc32c59.tar.bz2
GH-109190: Copyedit 3.12 What's New: Update the ``imp`` porting guidance (#109755)
Diffstat (limited to 'Doc/whatsnew/3.12.rst')
-rw-r--r--Doc/whatsnew/3.12.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 33ddd53..09d74fb 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -1411,7 +1411,7 @@ imp
* The :mod:`!imp` module has been removed. (Contributed by Barry Warsaw in
:gh:`98040`.)
-* Replace removed :mod:`!imp` functions with :mod:`importlib` functions:
+ To migrate, consult the following correspondence table:
================================= =======================================
imp importlib
@@ -1426,9 +1426,10 @@ imp
``imp.new_module(name)`` ``types.ModuleType(name)``
``imp.reload()`` :func:`importlib.reload`
``imp.source_from_cache()`` :func:`importlib.util.source_from_cache`
+ ``imp.load_source()`` *See below*
================================= =======================================
-* Replace ``imp.load_source()`` with::
+ Replace ``imp.load_source()`` with::
import importlib.util
import importlib.machinery