Commit 3e59f720 authored by Fred Drake's avatar Fred Drake

Clarify the return value of __nonzero__(): It *must* be an integer.

Closes SF bug #579991.
parent 979c5375
...@@ -47,9 +47,9 @@ The following values are considered false: ...@@ -47,9 +47,9 @@ The following values are considered false:
\item instances of user-defined classes, if the class defines a \item instances of user-defined classes, if the class defines a
\method{__nonzero__()} or \method{__len__()} method, when that \method{__nonzero__()} or \method{__len__()} method, when that
method returns zero.\footnote{Additional information on these method returns the integer zero.\footnote{Additional
special methods may be found in the \citetitle[../ref/ref.html]{Python information on these special methods may be found in the
Reference Manual}.} \citetitle[../ref/ref.html]{Python Reference Manual}.}
\end{itemize} \end{itemize}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment