Op 2005-10-28, Ron Adam schreef <[EMAIL PROTECTED]>: > > I haven't heard he was removing __cmp__,
I read somewhere he was considering it. > but I would think the sort or > sorted functions would just use the available comparisons methods or > equivalent C code for base types. So I expect it would only matter if > you need a custom or modified sort. > > Although It is a thought that these cases could be improved by making > the sort value available to the underlying C sort function. Something > on the order of: > > __sortvalue__ == self.value. I doubt that will be possible in general. You can't even calculate such a __sortvalue__ for lists. -- Antoon Pardon -- http://mail.python.org/mailman/listinfo/python-list