From: Fred Drake Date: Fri, 12 Jul 2002 17:15:45 +0000 (+0000) Subject: Clarify the return value of __nonzero__(): It *must* be an integer. X-Git-Tag: v2.2.2b1~266 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=003eb0328723554e994d39f9bf01bf75277c6d90;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 436fd7b47206..911999e748d6 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -39,9 +39,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}