summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-07-12 17:15:10 (GMT)
committerFred Drake <fdrake@acm.org>2002-07-12 17:15:10 (GMT)
commit3e59f72075e2ae8ac3a00b98388cc85c2332e963 (patch)
tree130d7ac09913c97e184acab0bf12f4d797148bd8 /Doc
parent979c53757b5a555725bfab5ee65cfb00b763b46b (diff)
downloadcpython-3e59f72075e2ae8ac3a00b98388cc85c2332e963.zip
cpython-3e59f72075e2ae8ac3a00b98388cc85c2332e963.tar.gz
cpython-3e59f72075e2ae8ac3a00b98388cc85c2332e963.tar.bz2
Clarify the return value of __nonzero__(): It *must* be an integer.
Closes SF bug #579991.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libstdtypes.tex6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index ca073b6..1a07d3c 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}