[nitpicking one specific point] In article <pan.2010.05.13.03.29...@remove.this.cybersource.com.au>, Steven D'Aprano <ste...@remove.this.cybersource.com.au> wrote: > >On the other hand a cmp function is specific to sorting, and nothing >but sorting.
Not quite. cmp() is useful any time you have an expensive comparison operation and you need to take three different codepaths depending on the comparison result. I don't know what the current code does, but I used it in the first cut Decimal() class. -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ f u cn rd ths, u cn gt a gd jb n nx prgrmmng. -- http://mail.python.org/mailman/listinfo/python-list