Message95975
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 :-). |
|
Date |
User |
Action |
Args |
2009-12-04 22:49:40 | gvanrossum | set | recipients:
+ gvanrossum, rhettinger, LeWiemann, tixxit |
2009-12-04 22:49:40 | gvanrossum | set | messageid: <1259966980.63.0.923180045214.issue1771@psf.upfronthosting.co.za> |
2009-12-04 22:49:38 | gvanrossum | link | issue1771 messages |
2009-12-04 22:49:38 | gvanrossum | create | |
|