Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9c61e24 + a0d1d96 commit 0a4edd5Copy full SHA for 0a4edd5
2 files changed
Lib/functools.py
@@ -96,6 +96,7 @@ def total_ordering(cls):
96
def cmp_to_key(mycmp):
97
"""Convert a cmp= function into a key= function"""
98
class K(object):
99
+ __slots__ = ['obj']
100
def __init__(self, obj, *args):
101
self.obj = obj
102
def __lt__(self, other):
Misc/NEWS
@@ -84,6 +84,8 @@ Library
84
- Issue #11371: Mark getopt error messages as localizable. Patch by Filip
85
Gruszczyński.
86
87
+- Issue #11628: cmp_to_key generated class should use __slots__
88
+
89
- Issue #5537: Fix time2isoz() and time2netscape() functions of
90
httplib.cookiejar for expiration year greater than 2038 on 32-bit systems.
91
0 commit comments