From: Benjamin Peterson Date: Sun, 13 Dec 2009 00:32:14 +0000 (+0000) Subject: death to exec statement X-Git-Tag: v3.2a1~2052 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45abfbccbab0bbc65553e3233fceaa019e502d9b;p=python death to exec statement --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 555cb31b5d..6e380ddc92 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -142,9 +142,9 @@ are always available. They are listed here in alphabetical order. .. function:: compile(source, filename, mode, flags=0, dont_inherit=False) Compile the *source* into a code or AST object. Code objects can be executed - by an :keyword:`exec` statement or evaluated by a call to :func:`eval`. - *source* can either be a string or an AST object. Refer to the :mod:`ast` - module documentation for information on how to work with AST objects. + by:func:`exec` or :func:`eval`. *source* can either be a string or an AST + object. Refer to the :mod:`ast` module documentation for information on how + to work with AST objects. The *filename* argument should give the file from which the code was read; pass some recognizable value if it wasn't read from a file (``''`` is