[Python-Dev] Re: Unicode and comparisons

Guido van Rossum guido@python.org
Tue, 04 Apr 2000 15:49:32 -0400


> I always thought it is a core property of cmp that it works between
> all objects.

Not any more.  Comparisons can raise exceptions -- this has been so
since release 1.5.  This is rarely used between standard objects, but
not unheard of; and class instances can certainly do anything they
want in their __cmp__.

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