[Python-checkins] cpython (merge 3.2 -> default): Issue #11628: cmp_to_key should use slots. (original) (raw)

raymond.hettinger python-checkins at python.org
Tue Mar 22 01:54:35 CET 2011


http://hg.python.org/cpython/rev/2e5e5d515c09 changeset: 68825:2e5e5d515c09 parent: 68823:15f9eca5e956 parent: 68824:97799a54728e user: Raymond Hettinger <python at rcn.com> date: Mon Mar 21 17:54:04 2011 -0700 summary: Issue #11628: cmp_to_key should use slots.

files: Lib/functools.py Misc/NEWS

diff --git a/Lib/functools.py b/Lib/functools.py --- a/Lib/functools.py +++ b/Lib/functools.py @@ -96,6 +96,7 @@ def cmp_to_key(mycmp): """Convert a cmp= function into a key= function""" class K(object):

diff --git a/Misc/NEWS b/Misc/NEWS --- a/Misc/NEWS +++ b/Misc/NEWS @@ -84,6 +84,8 @@

+- Issue #11628: cmp_to_key generated class should use slots +

-- Repository URL: http://hg.python.org/cpython



More information about the Python-checkins mailing list