[Python-checkins] CVS: python/dist/src/Doc/tut tut.tex,1.158,1.159
Fred L. Drake
fdrake@users.sourceforge.net
Thu, 07 Mar 2002 16:54:45 -0800
Update of /cvsroot/python/python/dist/src/Doc/tut
In directory usw-pr-cvs1:/tmp/cvs-serv26132/tut
Modified Files:
tut.tex
Log Message:
"Shortcut" should be "short-circuit".
This closes SF bug #526277.
Index: tut.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tut/tut.tex,v
retrieving revision 1.158
retrieving revision 1.159
diff -C2 -d -r1.158 -r1.159
*** tut.tex 29 Jan 2002 14:53:30 -0000 1.158
--- tut.tex 8 Mar 2002 00:54:43 -0000 1.159
***************
*** 2040,2049 ****
The Boolean operators \code{and} and \code{or} are so-called
! \emph{shortcut} operators: their arguments are evaluated from left to
! right, and evaluation stops as soon as the outcome is determined.
! E.g., if \code{A} and \code{C} are true but \code{B} is false, \code{A
! and B and C} does not evaluate the expression C. In general, the
! return value of a shortcut operator, when used as a general value and
! not as a Boolean, is the last evaluated argument.
It is possible to assign the result of a comparison or other Boolean
--- 2040,2050 ----
The Boolean operators \code{and} and \code{or} are so-called
! \emph{short-circuit} operators: their arguments are evaluated from
! left to right, and evaluation stops as soon as the outcome is
! determined. For example, if \code{A} and \code{C} are true but
! \code{B} is false, \code{A and B and C} does not evaluate the
! expression \code{C}. In general, the return value of a short-circuit
! operator, when used as a general value and not as a Boolean, is the
! last evaluated argument.
It is possible to assign the result of a comparison or other Boolean