[Python-Dev] NotImplemented comparisons

Guido van Rossum guido at python.org
Fri Aug 3 00:27:18 CEST 2007

On 8/2/07, Georg Brandl <g.brandl at gmx.net> wrote:
> Returning anything other than an int or NotImplemented raises an exception.
> NotImplemented seems to be special cased so that the other object's
> __cmp__ can be tried too.

Oops, sorry for the misinformation. :-(

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list