Comparing objects - is there a maximum object?

Martin v. Löwis martin at v.loewis.de
Thu Sep 4 18:38:15 EDT 2003


"Andrew Dalke" <adalke at mindspring.com> writes:

> Shouldn't there also be a
> 
>     def __rcmp__(self, other):
>         return -1
> ?

No, this would not be used. cmp(a,b) == -cmp(b,a)

Regards,
Martin




More information about the Python-list mailing list