Comparing objects - is there a maximum object?

Martin v. Löwis martin at v.loewis.de
Fri Sep 5 00:38:15 CEST 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