changeset: 83439:8f15a46a8c76 branch: 3.3 parent: 83430:a4d03e9259a2 user: R David Murray date: Thu Apr 18 09:51:17 2013 -0400 files: Doc/library/imp.rst description: #17135: Add note in imp to use importlib for new programs. diff -r a4d03e9259a2 -r 8f15a46a8c76 Doc/library/imp.rst --- a/Doc/library/imp.rst Wed Apr 17 21:16:52 2013 +0100 +++ b/Doc/library/imp.rst Thu Apr 18 09:51:17 2013 -0400 @@ -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 @@ :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

AltStyle によって変換されたページ (->オリジナル) /