Separating __cmp__ from < and > ?
Erik Max Francis
max at alcyone.com
Mon Aug 14 21:27:23 EDT 2000
Aahz Maruch wrote:
> Right. Problem is, though, that if you have a list of such objects
> and
> someone does list.sort(), you need to have a way of evaluating the
> sort
> order.
Sure, but if someone calls sort on a list of objects that don't have a
well-ordering, they're up the creek anyway.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ He who knows how to be poor knows everything.
\__/ Jules Michelet
Maths reference / http://www.alcyone.com/max/reference/maths/
A mathematics reference.
More information about the Python-list
mailing list