[issue11628] cmp_to_key generated class should use __slots__

2011-03-22 Thread Roundup Robot
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

[issue11628] cmp_to_key generated class should use __slots__

2011-03-21 Thread Chris Colbert
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

[issue11628] cmp_to_key generated class should use __slots__

2011-03-21 Thread Daniel Stutzbach
Changes by Daniel Stutzbach stutzb...@google.com: -- nosy: +stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11628 ___ ___ Python-bugs-list

[issue11628] cmp_to_key generated class should use __slots__

2011-03-21 Thread Éric Araujo
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 ___

[issue11628] cmp_to_key generated class should use __slots__

2011-03-21 Thread Raymond Hettinger
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

[issue11628] cmp_to_key generated class should use __slots__

2011-03-21 Thread Éric Araujo
É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:

[issue11628] cmp_to_key generated class should use __slots__

2011-03-21 Thread Roundup Robot
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:

[issue11628] cmp_to_key generated class should use __slots__

2011-03-21 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11628 ___

[issue11628] cmp_to_key generated class should use __slots__

2011-03-21 Thread Chris Colbert
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 ___