]> granicus.if.org Git - python/commitdiff
(libparser.tex): Added note that the line number for a terminal token
authorFred Drake <fdrake@acm.org>
Thu, 5 Dec 1996 22:28:43 +0000 (22:28 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 5 Dec 1996 22:28:43 +0000 (22:28 +0000)
indicates the line on which the token ends rather than starts
(a side effect of interpreting the parse tree nodes directly).
Maybe I'll fix this for Python 2.0.

Doc/lib/libparser.tex
Doc/libparser.tex

index 859226aa5440001d57ee98c09e230973324186ff..5de93280992ef31f38822aaf24da0d1624a9bbf8 100644 (file)
@@ -166,8 +166,9 @@ tuple representation and converting that to nested lists.
 
 If \code{\var{line_info}} is true, line number information will be
 included for all terminal tokens as a third element of the list
-representing the token.  This information is omitted if the flag is
-false or omitted.
+representing the token.  Note that the line number provided specifies
+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}}}
index 859226aa5440001d57ee98c09e230973324186ff..5de93280992ef31f38822aaf24da0d1624a9bbf8 100644 (file)
@@ -166,8 +166,9 @@ tuple representation and converting that to nested lists.
 
 If \code{\var{line_info}} is true, line number information will be
 included for all terminal tokens as a third element of the list
-representing the token.  This information is omitted if the flag is
-false or omitted.
+representing the token.  Note that the line number provided specifies
+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}}}