This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients LeWiemann, gvanrossum, rhettinger, tixxit
Date 2009-12-04.22:49:38
SpamBayes Score 2.5074387e-13
Marked as misclassified No
Message-id <1259966980.63.0.923180045214.issue1771@psf.upfronthosting.co.za>
In-reply-to
Content
Can someone provide a code sample to make this argument more 
understandable for those of us who don't compare points by angular order 
for a living... :-)

I'm not sure what the 2to3 example (I presume you mean msg59937) shows 
except that conversion from a cmp function to a key function may require 
you to actually think...

Also, for all of you asking for cmp back, I hope you realize that 
sorting N values using a custom cmp function makes about N log N calls 
calls to cmp, whereas using a custom key calls the key function only N 
times.  This means that even if your cmp function is faster than the 
best key function you can write, the advantage is lost as N increases 
(which is just where you'd like it to matter most :-).
History
Date User Action Args
2009-12-04 22:49:40gvanrossumsetrecipients: + gvanrossum, rhettinger, LeWiemann, tixxit
2009-12-04 22:49:40gvanrossumsetmessageid: <1259966980.63.0.923180045214.issue1771@psf.upfronthosting.co.za>
2009-12-04 22:49:38gvanrossumlinkissue1771 messages
2009-12-04 22:49:38gvanrossumcreate