Why keep identity-based equality comparison?

Paul Rubin http
Thu Jan 12 04:13:31 EST 2006


Antoon Pardon <apardon at forel.vub.ac.be> writes:
> There is a use case for things like 1 < (1,3) making sense and denoting
> a total order. When you have a hetergenous list, having a total order
> makes it possible to sort the list which will make it easier to
> weed out duplicates. So why don't you demand a use case for the
> new behaviour to counter this use case?

This could easily be handled with an alternate comparison function
that you pass to the sort function.



More information about the Python-list mailing list