> 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/)