Guido rethinking removal of cmp from sort method
Santoso Wijaya
santoso.wijaya at gmail.com
Mon Mar 14 01:56:05 EDT 2011
I did not even realize such a change occurred in Python 3. I'm still
currently blissful in Python 2 land. I'd be concerned about the impact in
ported libraries (memory footprint? others?)...
~/santa
On Sun, Mar 13, 2011 at 1:35 PM, Dave Abrahams <dave at boostpro.com> wrote:
> Steven D'Aprano <steve+comp.lang.python <at> pearwood.info> writes:
>
> > If anyone has any use-cases for sorting with a comparison function that
> > either can't be written using a key function, or that perform really
> > badly when done so, this would be a good time to speak up.
>
> I think it's probably provable that there are no cases in the first
> category,
> provided you're willing to do something sufficiently contorted. However,
> it also seems self-evident to me that many programmers will rightly chafe
> at the idea of creating and tearing down a bunch of objects just to
> compare things for sorting. Think of the heap churn! Even if it turns out
> that Python 3 contains some magic implementation detail that makes it
> efficient most of the time, it goes against a natural understanding of the
> computation model
>
> 2p for y'all.
> -Dave
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110313/33f897e4/attachment-0001.html>
More information about the Python-list
mailing list