[Python-checkins] CVS: python/dist/src/Doc/tut tut.tex,1.133.2.5,1.133.2.6
Fred L. Drake
fdrake@users.sourceforge.net
Thu, 07 Mar 2002 17:01:52 -0800
Update of /cvsroot/python/python/dist/src/Doc/tut
In directory usw-pr-cvs1:/tmp/cvs-serv27668/tut
Modified Files:
Tag: release21-maint
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.133.2.5
retrieving revision 1.133.2.6
diff -C2 -d -r1.133.2.5 -r1.133.2.6
*** tut.tex 18 Jul 2001 19:21:43 -0000 1.133.2.5
--- tut.tex 8 Mar 2002 01:01:50 -0000 1.133.2.6
***************
*** 2000,2009 ****
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
--- 2000,2010 ----
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