Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstdtypes.tex @ 24227:8a67f28a42a5 legacy-trunk
Clarify the return value of __nonzero__(): It *must* be an integer.
Closes SF bug #579991.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Fri, 12 Jul 2002 17:15:10 +0000 |
| parents | 63ee31bb25f3 |
| children | 62f4b45b05fd |
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex Fri Jul 12 16:50:32 2002 +0000 +++ b/Doc/lib/libstdtypes.tex Fri Jul 12 17:15:10 2002 +0000 @@ -47,9 +47,9 @@ \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}
