]> granicus.if.org Git - python/commitdiff
Clarify the return value of __nonzero__(): It *must* be an integer.
authorFred Drake <fdrake@acm.org>
Fri, 12 Jul 2002 17:15:10 +0000 (17:15 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 12 Jul 2002 17:15:10 +0000 (17:15 +0000)
Closes SF bug #579991.

Doc/lib/libstdtypes.tex

index ca073b6b950e418308c28213c8134c1eed6680b4..1a07d3c984163637a8c987e3ecf3e61373827eb8 100644 (file)
@@ -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}