mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#17135: Add note in imp to use importlib for new programs.
This commit is contained in:
parent
0471ac3d80
commit
bca1a2629a
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue