summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1996-12-05 22:28:43 (GMT)
committerFred Drake <fdrake@acm.org>1996-12-05 22:28:43 (GMT)
commit9abe64a3954bdf10963d8f0c817a2d6b75155530 (patch)
tree04df4205164ee7fd5a5e7d668b5d8ca7491a054f /Doc/lib
parentba469ba9d78aa183bd0504d5ae064d4575905eb7 (diff)
downloadcpython-9abe64a3954bdf10963d8f0c817a2d6b75155530.zip
cpython-9abe64a3954bdf10963d8f0c817a2d6b75155530.tar.gz
cpython-9abe64a3954bdf10963d8f0c817a2d6b75155530.tar.bz2
(libparser.tex): Added note that the line number for a terminal token
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.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libparser.tex5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/lib/libparser.tex b/Doc/lib/libparser.tex
index 859226a..5de9328 100644
--- a/Doc/lib/libparser.tex
+++ b/Doc/lib/libparser.tex
@@ -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}}}