[Python-3000-checkins] r67161 - python/branches/py3k/Doc/library/functions.rst
benjamin.peterson
python-3000-checkins at python.org
Sat Nov 8 17:54:05 CET 2008
Author: benjamin.peterson
Date: Sat Nov 8 17:54:05 2008
New Revision: 67161
Log:
compile can also produce AST
Modified:
python/branches/py3k/Doc/library/functions.rst
Modified: python/branches/py3k/Doc/library/functions.rst
==============================================================================
--- python/branches/py3k/Doc/library/functions.rst (original)
+++ python/branches/py3k/Doc/library/functions.rst Sat Nov 8 17:54:05 2008
@@ -199,11 +199,11 @@
.. 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
More information about the Python-3000-checkins
mailing list