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 <d...@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 >
-- http://mail.python.org/mailman/listinfo/python-list