diff options
author | Terry Reedy <tjreedy@udel.edu> | 2011-01-24 21:48:11 (GMT) |
---|---|---|
committer | Terry Reedy <tjreedy@udel.edu> | 2011-01-24 21:48:11 (GMT) |
commit | 51581de168f1c931b144fb8c61cdfbaf2c53734f (patch) | |
tree | 5b3c031ab0137ece9533971da2628767fd1fa2de /Doc/library | |
parent | f8583acb534432097671e79eb4110b9861dd2e17 (diff) | |
download | cpython-51581de168f1c931b144fb8c61cdfbaf2c53734f.zip cpython-51581de168f1c931b144fb8c61cdfbaf2c53734f.tar.gz cpython-51581de168f1c931b144fb8c61cdfbaf2c53734f.tar.bz2 |
Issue #11000 ast.parse doc fix (r88172)
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 039fe41..ef36f50 100644 --- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -127,9 +127,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)``. |