/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
functools.py | 80 def cmp_to_key(mycmp):
87 return mycmp(self.obj, other.obj) < 0
89 return mycmp(self.obj, other.obj) > 0
91 return mycmp(self.obj, other.obj) == 0
93 return mycmp(self.obj, other.obj) <= 0
95 return mycmp(self.obj, other.obj) >= 0
97 return mycmp(self.obj, other.obj) != 0
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
functools.py | 80 def cmp_to_key(mycmp):
87 return mycmp(self.obj, other.obj) < 0
89 return mycmp(self.obj, other.obj) > 0
91 return mycmp(self.obj, other.obj) == 0
93 return mycmp(self.obj, other.obj) <= 0
95 return mycmp(self.obj, other.obj) >= 0
97 return mycmp(self.obj, other.obj) != 0
|
/external/python/cpython2/Lib/ |
functools.py | 85 def cmp_to_key(mycmp): 92 return mycmp(self.obj, other.obj) < 0 94 return mycmp(self.obj, other.obj) > 0 96 return mycmp(self.obj, other.obj) == 0 98 return mycmp(self.obj, other.obj) <= 0 100 return mycmp(self.obj, other.obj) >= 0 102 return mycmp(self.obj, other.obj) != 0
|
/external/scapy/scapy/ |
compat.py | 21 def cmp_to_key(mycmp): 34 return mycmp(self.obj, other.obj) < 0 36 return mycmp(self.obj, other.obj) > 0 38 return mycmp(self.obj, other.obj) == 0 40 return mycmp(self.obj, other.obj) <= 0 42 return mycmp(self.obj, other.obj) >= 0 44 return mycmp(self.obj, other.obj) != 0
|
/external/selinux/python/sepolgen/src/sepolgen/ |
util.py | 148 def cmp_to_key(mycmp): 154 return mycmp(self.obj, other.obj) < 0 156 return mycmp(self.obj, other.obj) > 0 158 return mycmp(self.obj, other.obj) == 0 160 return mycmp(self.obj, other.obj) <= 0 162 return mycmp(self.obj, other.obj) >= 0 164 return mycmp(self.obj, other.obj) != 0
|
/external/libxml2/python/ |
generator.py | 806 def cmp_to_key(mycmp): 812 return mycmp(self.obj, other.obj) < 0 814 return mycmp(self.obj, other.obj) > 0 816 return mycmp(self.obj, other.obj) == 0 818 return mycmp(self.obj, other.obj) <= 0 820 return mycmp(self.obj, other.obj) >= 0 822 return mycmp(self.obj, other.obj) != 0 [all...] |
/external/python/cpython3/Lib/ |
functools.py | 204 def cmp_to_key(mycmp): 211 return mycmp(self.obj, other.obj) < 0 213 return mycmp(self.obj, other.obj) > 0 215 return mycmp(self.obj, other.obj) == 0 217 return mycmp(self.obj, other.obj) <= 0 219 return mycmp(self.obj, other.obj) >= 0
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_functools.py | 343 def mycmp(x, y):
function in function:TestCmpToKey.test_cmp_to_key 345 self.assertEqual(sorted(range(5), key=functools.cmp_to_key(mycmp)),
349 def mycmp(x, y):
function in function:TestCmpToKey.test_hash 351 key = functools.cmp_to_key(mycmp)
|
/external/python/cpython2/Lib/test/ |
test_functools.py | 491 def mycmp(x, y): function in function:TestCmpToKey.test_cmp_to_key 493 self.assertEqual(sorted(range(5), key=functools.cmp_to_key(mycmp)), 497 def mycmp(x, y): function in function:TestCmpToKey.test_hash 499 key = functools.cmp_to_key(mycmp)
|
/external/python/cpython3/Lib/test/ |
test_functools.py | 853 key = self.cmp_to_key(mycmp=cmp1) 892 def mycmp(x, y): function in function:TestCmpToKey.test_sort_int 898 def mycmp(x, y): function in function:TestCmpToKey.test_sort_int_str 907 def mycmp(x, y): function in function:TestCmpToKey.test_hash [all...] |