diff options
author | Fred Drake <fdrake@acm.org> | 1998-03-17 06:33:25 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-03-17 06:33:25 (GMT) |
commit | cce1090d49ba91cdc06c60d8a2af04d057abe7dc (patch) | |
tree | 8b866b9986508cfb7cec89ab4fb5e1c269756b8f /Doc/lib/libparser.tex | |
parent | c9a4438c16c66af5b196adf172fd3416ac4ec9d3 (diff) | |
download | cpython-cce1090d49ba91cdc06c60d8a2af04d057abe7dc.zip cpython-cce1090d49ba91cdc06c60d8a2af04d057abe7dc.tar.gz cpython-cce1090d49ba91cdc06c60d8a2af04d057abe7dc.tar.bz2 |
Change "\," to just "," in function signatures. This is easier to maintain,
works better with LaTeX2HTML, and allows some simplification of the python.sty
macros.
Diffstat (limited to 'Doc/lib/libparser.tex')
-rw-r--r-- | Doc/lib/libparser.tex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/lib/libparser.tex b/Doc/lib/libparser.tex index cf45b45..ec1bae5 100644 --- a/Doc/lib/libparser.tex +++ b/Doc/lib/libparser.tex @@ -153,7 +153,7 @@ converted to parse trees represented as list- or tuple- trees, or may be compiled into executable code objects. Parse trees may be extracted with or without line numbering information. -\begin{funcdesc}{ast2list}{ast\optional{\, line_info\code{ = 0}}} +\begin{funcdesc}{ast2list}{ast\optional{, line_info\code{ = 0}}} This function accepts an AST object from the caller in \code{\var{ast}} and returns a Python list representing the equivelent parse tree. The resulting list representation can be used @@ -172,7 +172,7 @@ the line on which the token \emph{ends}. This information is omitted if the flag is false or omitted. \end{funcdesc} -\begin{funcdesc}{ast2tuple}{ast\optional{\, line_info\code{ = 0}}} +\begin{funcdesc}{ast2tuple}{ast\optional{, line_info\code{ = 0}}} This function accepts an AST object from the caller in \code{\var{ast}} and returns a Python tuple representing the equivelent parse tree. Other than returning a tuple instead of a @@ -184,7 +184,7 @@ representing the token. This information is omitted if the flag is false or omitted. \end{funcdesc} -\begin{funcdesc}{compileast}{ast\optional{\, filename\code{ = '<ast>'}}} +\begin{funcdesc}{compileast}{ast\optional{, filename\code{ = '<ast>'}}} The Python byte compiler can be invoked on an AST object to produce code objects which can be used as part of an \code{exec} statement or a call to the built-in \function{eval()}\bifuncindex{eval} function. |