> 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 sosince release 1.5. This is rarely used between standard objects, butnot unheard of; and class instances can certainly do anything theywant in their __cmp__.--Guido van Rossum (home page:http://www.python.org/~guido/)