diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-12-13 00:32:14 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-12-13 00:32:14 (GMT) |
commit | 45abfbccbab0bbc65553e3233fceaa019e502d9b (patch) | |
tree | c64034629ae6168a3cbe6582dd8204b09fdcd67c /Doc | |
parent | b89ee8eae8a20d893644064552ea65cc5217c96c (diff) | |
download | cpython-45abfbccbab0bbc65553e3233fceaa019e502d9b.zip cpython-45abfbccbab0bbc65553e3233fceaa019e502d9b.tar.gz cpython-45abfbccbab0bbc65553e3233fceaa019e502d9b.tar.bz2 |
death to exec statement
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/functions.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 555cb31..6e380dd 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 (``'<string>'`` is |