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
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to