1. mirror
  2. cpython

Commits

bitdancer  committed 8f15a46

#17135: Add note in imp to use importlib for new programs.

  • Participants
  • Parent commits a4d03e9
  • Branches 3.3

Comments (0)

Files changed (1)

File Doc/library/imp.rst

View file
-: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.
 :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