diff options
author | Terry Reedy <tjreedy@udel.edu> | 2011-01-24 21:36:03 (GMT) |
---|---|---|
committer | Terry Reedy <tjreedy@udel.edu> | 2011-01-24 21:36:03 (GMT) |
commit | feac624827a6523e29f69210d69a0627d19bfd2b (patch) | |
tree | 3f5a72d4c04feaaa835e9d3edc63d0a7685d1ffa /Doc/library | |
parent | b02701101b94bda88179652b0133557baa801368 (diff) | |
download | cpython-feac624827a6523e29f69210d69a0627d19bfd2b.zip cpython-feac624827a6523e29f69210d69a0627d19bfd2b.tar.gz cpython-feac624827a6523e29f69210d69a0627d19bfd2b.tar.bz2 |
Issue #11000 ast.parse parses source, not just expressions.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/ast.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index ca8af56..e2c0b6d 100644 --- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -110,9 +110,9 @@ The abstract grammar is currently defined as follows: Apart from the node classes, :mod:`ast` module defines these utility functions and classes for traversing abstract syntax trees: -.. function:: parse(expr, filename='<unknown>', mode='exec') +.. function:: parse(source, filename='<unknown>', mode='exec') - Parse an expression into an AST node. Equivalent to ``compile(expr, + Parse the source into an AST node. Equivalent to ``compile(source, filename, mode, ast.PyCF_ONLY_AST)``. |