summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-04-18 13:51:17 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-04-18 13:51:17 (GMT)
commitbca1a2629a1237b55ffcfbe03ecab0d90c00c755 (patch)
treeedaf59f7f002c47a4fbbcb574e086f887b6a8a88 /Doc/library
parent0471ac3d80cb9acdfc82b053145477f5f1e7c6f1 (diff)
downloadcpython-bca1a2629a1237b55ffcfbe03ecab0d90c00c755.zip
cpython-bca1a2629a1237b55ffcfbe03ecab0d90c00c755.tar.gz
cpython-bca1a2629a1237b55ffcfbe03ecab0d90c00c755.tar.bz2
#17135: Add note in imp to use importlib for new programs.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/imp.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/library/imp.rst b/Doc/library/imp.rst
index 60d0105..7d4bf4f 100644
--- a/Doc/library/imp.rst
+++ b/Doc/library/imp.rst
@@ -1,5 +1,5 @@
-:mod:`imp` --- Access the :keyword:`import` internals
-=====================================================
+:mod:`imp` --- Access the :ref:`import <importsystem>` internals
+================================================================
.. module:: imp
:synopsis: Access the implementation of the import statement.
@@ -11,6 +11,10 @@ This module provides an interface to the mechanisms used to implement the
:keyword:`import` statement. It defines the following constants and functions:
+.. note::
+ New programs should use :mod:`importlib` rather than this module.
+
+
.. function:: get_magic()
.. index:: pair: file; byte-code