[Python-3000] Please re-add __cmp__ to python 3000
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Oct 30 21:42:35 CET 2007
Adam Olsen wrote:
> It'd be simpler still if we only had __cmp__ and __eq__. I just don't
> understand the use cases where that's not sufficient.
>
> Hrm. I guess set's subset checking requires more relationships than
> __cmp__ provides.
Also, you might want to give the comparison operators meanings
that don't have anything to do with comparison in the usual
sense. The reason tp_richcmp was added in the first place was
so that arbitrary meanings could be given to the comparison
operators individually.
--
Greg
More information about the Python-3000
mailing list