[Python-checkins] python/dist/src/Doc/lib libstdtypes.tex,1.103,1.104
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Wed, 07 Aug 2002 08:40:17 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv26551/Doc/lib
Modified Files:
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.103
retrieving revision 1.104
diff -C2 -d -r1.103 -r1.104
*** libstdtypes.tex 6 Aug 2002 17:01:28 -0000 1.103
--- libstdtypes.tex 7 Aug 2002 15:40:15 -0000 1.104
***************
*** 34,41 ****
\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},
--- 34,41 ----
\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},
***************
*** 47,52 ****
\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}.}
--- 47,53 ----
\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}.}