Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstdtypes.tex @ 24228:5b66e63d7abb 2.2
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:45 +0000 |
| parents | e43aafffb03c |
| children | f6a97cd3ba24 |
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex Fri Jul 12 16:03:09 2002 +0000 +++ b/Doc/lib/libstdtypes.tex Fri Jul 12 17:15:45 2002 +0000 @@ -39,9 +39,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}
