[Python-checkins] python/dist/src/Doc/ref ref5.tex, 1.76.10.2, 1.76.10.3

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Fri Apr 23 13:14:37 EDT 2004


Update of /cvsroot/python/python/dist/src/Doc/ref
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23069

Modified Files:
      Tag: release23-maint
	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.76.10.2
retrieving revision 1.76.10.3
diff -C2 -d -r1.76.10.2 -r1.76.10.3
*** ref5.tex	2 Nov 2003 16:11:48 -0000	1.76.10.2
--- ref5.tex	23 Apr 2004 17:14:35 -0000	1.76.10.3
***************
*** 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