summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-11-08 16:54:05 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-11-08 16:54:05 (GMT)
commitbeef207ad0e3a1b0a0ed3a5fbd7269afa881f9a0 (patch)
tree2437d36e18a27c21de3b9dbefb65ca4ff80d8886
parentda06606b6357b2614659b394ab286f317c38f0d1 (diff)
downloadcpython-beef207ad0e3a1b0a0ed3a5fbd7269afa881f9a0.zip
cpython-beef207ad0e3a1b0a0ed3a5fbd7269afa881f9a0.tar.gz
cpython-beef207ad0e3a1b0a0ed3a5fbd7269afa881f9a0.tar.bz2
compile can also produce AST
-rw-r--r--Doc/library/functions.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 5b683ab..c2af1e8 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -199,11 +199,11 @@ are always available. They are listed here in alphabetical order.
.. function:: compile(source, filename, mode[, flags[, dont_inherit]])
- Compile the *source* into a code object. Code objects can be
+ Compile the *source* into a code object or AST object. Code objects can be
executed by a call to :func:`exec` 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 compile into and from AST objects.
+ :func:`eval`. *source* can either be a string or an AST object. Refer to the
+ :mod:`_ast` module documentation for information on how to compile into and
+ from AST objects.
The *filename* argument should give the file from
which the code was read; pass some recognizable value if it wasn't