[Python-checkins] python/dist/src/Doc/lib libstdtypes.tex,1.98,1.99
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Fri, 12 Jul 2002 10:15:12 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv10343/lib
Modified Files:
libstdtypes.tex
Log Message:
Clarify the return value of __nonzero__(): It *must* be an integer.
Closes SF bug #579991.
Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.98
retrieving revision 1.99
diff -C2 -d -r1.98 -r1.99
*** libstdtypes.tex 14 Jun 2002 09:16:40 -0000 1.98
--- libstdtypes.tex 12 Jul 2002 17:15:10 -0000 1.99
***************
*** 48,54 ****
\item instances of user-defined classes, if the class defines a
\method{__nonzero__()} or \method{__len__()} method, when that
! method returns zero.\footnote{Additional information on these
! special methods may be found in the \citetitle[../ref/ref.html]{Python
! Reference Manual}.}
\end{itemize}
--- 48,54 ----
\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}.}
\end{itemize}