From: Fred Drake Date: Fri, 12 Jul 2002 17:15:10 +0000 (+0000) Subject: Clarify the return value of __nonzero__(): It *must* be an integer. X-Git-Tag: v2.3c1~5016 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e59f72075e2ae8ac3a00b98388cc85c2332e963;p=thirdparty%2FPython%2Fcpython.git Clarify the return value of __nonzero__(): It *must* be an integer. Closes SF bug #579991. --- diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index ca073b6b950e..1a07d3c98416 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -47,9 +47,9 @@ The following values are considered false: \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}.} + 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}