summaryrefslogtreecommitdiff
path: root/Lib/functools.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/functools.py')
-rw-r--r--Lib/functools.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/functools.py b/Lib/functools.py
index fdc9c79098..3bffbacae4 100644
--- a/Lib/functools.py
+++ b/Lib/functools.py
@@ -96,6 +96,7 @@ def total_ordering(cls):
def cmp_to_key(mycmp):
"""Convert a cmp= function into a key= function"""
class K(object):
+ __slots__ = ['obj']
def __init__(self, obj, *args):
self.obj = obj
def __lt__(self, other):