]> granicus.if.org Git - python/commitdiff
#17135: Add note in imp to use importlib for new programs.
authorR David Murray <rdmurray@bitdance.com>
Thu, 18 Apr 2013 13:51:17 +0000 (09:51 -0400)
committerR David Murray <rdmurray@bitdance.com>
Thu, 18 Apr 2013 13:51:17 +0000 (09:51 -0400)
Doc/library/imp.rst

index 60d01055b797e397621b5b1a7afcd4d37c7c5e0c..7d4bf4facf895fb1ff4cc215519ea64d2310cb20 100644 (file)
@@ -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