Roundup Robot devnull@devnull added the comment:
New changeset 136298326897 by Raymond Hettinger in branch '2.7':
Issue #11628: cmp_to_key should use__slots__.
http://hg.python.org/cpython/rev/136298326897
--
___
Python tracker rep...@bugs.python.org
New submission from Chris Colbert sccolb...@gmail.com:
The cmp_to_key func acts as a class factory for generating key objects that
behave according to a user defined cmp function.
Many patterns/libs that make use of key functions (for example blist and the
SortedCollection recipe) store the
Changes by Daniel Stutzbach stutzb...@google.com:
--
nosy: +stutzbach
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11628
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
versions: -Python 3.1, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11628
___
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
I think this is a good idea.
Am not sure whether it should be backported though.
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11628
Éric Araujo mer...@netwok.org added the comment:
Right, I edited the versions field to match the versions that contain
cmp_to_key, but if this behavior change is just for performance, it’s not a
candidate for backport.
Chris: I’d go with the simpler implementation.
--
versions:
Roundup Robot devnull@devnull added the comment:
New changeset 97799a54728e by Raymond Hettinger in branch '3.2':
Issue #11628: cmp_to_key should use __slots__.
http://hg.python.org/cpython/rev/97799a54728e
New changeset 2e5e5d515c09 by Raymond Hettinger in branch 'default':
Issue #11628:
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11628
___
Chris Colbert sccolb...@gmail.com added the comment:
Man, you guys are quick! Cheers!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11628
___