summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libcode.tex
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-04-05 02:21:09 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-04-05 02:21:09 (GMT)
commitd3dab2b19288139dfa6fc7c4f3302b734573f9dd (patch)
tree539ad29bdea7cefa53f5b0cd844005a9ec264687 /Doc/lib/libcode.tex
parentc334df5727ad9cb4a5de85f69b03808b9856b55c (diff)
downloadcpython-d3dab2b19288139dfa6fc7c4f3302b734573f9dd.zip
cpython-d3dab2b19288139dfa6fc7c4f3302b734573f9dd.tar.gz
cpython-d3dab2b19288139dfa6fc7c4f3302b734573f9dd.tar.bz2
Update doc to reflect Tim's changes to bool.
Diffstat (limited to 'Doc/lib/libcode.tex')
-rw-r--r--Doc/lib/libcode.tex10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/lib/libcode.tex b/Doc/lib/libcode.tex
index ff6bde2..7bde19b 100644
--- a/Doc/lib/libcode.tex
+++ b/Doc/lib/libcode.tex
@@ -80,18 +80,18 @@ The input is incorrect; \function{compile_command()} raised an
exception (\exception{SyntaxError} or \exception{OverflowError}). A
syntax traceback will be printed by calling the
\method{showsyntaxerror()} method. \method{runsource()} returns
-\code{0}.
+\code{False}.
\item
The input is incomplete, and more input is required;
\function{compile_command()} returned \code{None}.
-\method{runsource()} returns \code{1}.
+\method{runsource()} returns \code{True}.
\item
The input is complete; \function{compile_command()} returned a code
object. The code is executed by calling the \method{runcode()} (which
also handles run-time exceptions, except for \exception{SystemExit}).
-\method{runsource()} returns \code{0}.
+\method{runsource()} returns \code{False}.
\end{itemize}
The return value can be used to decide whether to use
@@ -155,8 +155,8 @@ newlines. The line is appended to a buffer and the interpreter's
of the buffer as source. If this indicates that the command was
executed or invalid, the buffer is reset; otherwise, the command is
incomplete, and the buffer is left as it was after the line was
-appended. The return value is \code{1} if more input is required,
-\code{0} if the line was dealt with in some way (this is the same as
+appended. The return value is \code{True} if more input is required,
+\code{False} if the line was dealt with in some way (this is the same as
\method{runsource()}).
\end{methoddesc}