From: R David Murray Date: Thu, 18 Apr 2013 13:51:17 +0000 (-0400) Subject: #17135: Add note in imp to use importlib for new programs. X-Git-Tag: v3.3.2~85 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bca1a2629a1237b55ffcfbe03ecab0d90c00c755;p=thirdparty%2FPython%2Fcpython.git #17135: Add note in imp to use importlib for new programs. --- diff --git a/Doc/library/imp.rst b/Doc/library/imp.rst index 60d01055b797..7d4bf4facf89 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 ` 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