[Python-checkins] python/dist/src/Doc/ref ref5.tex,1.79,1.80

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Fri Apr 23 13:11:49 EDT 2004


Update of /cvsroot/python/python/dist/src/Doc/ref
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22415
Modified Files:
	ref5.tex 
Log Message:
SF bug #940579: section 5.10: 'not' returns boolean, not int
Index: ref5.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref5.tex,v
retrieving revision 1.79
retrieving revision 1.80
diff -C2 -d -r1.79 -r1.80
*** ref5.tex	9 Nov 2003 16:33:56 -0000	1.79
--- ref5.tex	23 Apr 2004 17:11:47 -0000	1.80
***************
*** 978,983 ****
 other values are interpreted as true.
 
! The operator \keyword{not} yields \code{1} if its argument is false,
! \code{0} otherwise.
 \opindex{not}
 
--- 978,983 ----
 other values are interpreted as true.
 
! The operator \keyword{not} yields \code{True} if its argument is false,
! \code{False} otherwise.
 \opindex{not}
 
***************
*** 993,997 ****
 
 (Note that neither \keyword{and} nor \keyword{or} restrict the value
! and type they return to \code{0} and \code{1}, but rather return the
 last evaluated argument.
 This is sometimes useful, e.g., if \code{s} is a string that should be
--- 993,997 ----
 
 (Note that neither \keyword{and} nor \keyword{or} restrict the value
! and type they return to \code{False} and \code{True}, but rather return the
 last evaluated argument.
 This is sometimes useful, e.g., if \code{s} is a string that should be
***************
*** 999,1003 ****
 \code{s or 'foo'} yields the desired value. Because \keyword{not} has to
 invent a value anyway, it does not bother to return a value of the
! same type as its argument, so e.g., \code{not 'foo'} yields \code{0},
 not \code{''}.)
 
--- 999,1003 ----
 \code{s or 'foo'} yields the desired value. Because \keyword{not} has to
 invent a value anyway, it does not bother to return a value of the
! same type as its argument, so e.g., \code{not 'foo'} yields \code{False},
 not \code{''}.)
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /