[Python-checkins] python/dist/src/Doc/lib libstdtypes.tex,1.80.6.10,1.80.6.11

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Wed, 07 Aug 2002 08:41:34 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv27501/lib

Modified Files:
      Tag: release22-maint
	libstdtypes.tex 
Log Message:
Clarify that the bool instances are acceptable return values from
__nonzero__(), in response to SF bug #579991.


Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.80.6.10
retrieving revision 1.80.6.11
diff -C2 -d -r1.80.6.10 -r1.80.6.11
*** libstdtypes.tex	12 Jul 2002 17:15:45 -0000	1.80.6.10
--- libstdtypes.tex	7 Aug 2002 15:41:31 -0000	1.80.6.11
***************
*** 29,33 ****
  
  \item	\code{None}
! 	\withsubitem{(Built-in object)}{\ttindex{None}}
  
  \item	zero of any numeric type, for example, \code{0}, \code{0L},
--- 29,36 ----
  
  \item	\code{None}
!         \withsubitem{(Built-in object)}{\ttindex{None}}
! 
! \item   \code{False}
!         \withsubitem{(Built-in object)}{\ttindex{False}}
  
  \item	zero of any numeric type, for example, \code{0}, \code{0L},
***************
*** 39,44 ****
  
  \item	instances of user-defined classes, if the class defines a
! 	\method{__nonzero__()} or \method{__len__()} method, when that
! 	method returns the integer zero.\footnote{Additional
  information on these special methods may be found in the
  \citetitle[../ref/ref.html]{Python Reference Manual}.}
--- 42,48 ----
  
  \item	instances of user-defined classes, if the class defines a
!         \method{__nonzero__()} or \method{__len__()} method, when that
!         method returns the integer zero or \class{bool} value
!         \code{False}.\footnote{Additional 
  information on these special methods may be found in the
  \citetitle[../ref/ref.html]{Python Reference Manual}.}