[nitpicking one specific point]

In article <[email protected]>,
Steven D'Aprano  <[email protected]> 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 ([email protected])           <*>         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

Reply via email to