/external/scapy/scapy/ |
D | compat.py | 21 def cmp_to_key(mycmp): argument 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/python/cpython2/Lib/ |
D | functools.py | 85 def cmp_to_key(mycmp): argument 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/selinux/python/sepolgen/src/sepolgen/ |
D | util.py | 148 def cmp_to_key(mycmp): argument 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/python/cpython3/Doc/howto/ |
D | sorting.rst | 239 def cmp_to_key(mycmp): 245 return mycmp(self.obj, other.obj) < 0 247 return mycmp(self.obj, other.obj) > 0 249 return mycmp(self.obj, other.obj) == 0 251 return mycmp(self.obj, other.obj) <= 0 253 return mycmp(self.obj, other.obj) >= 0 255 return mycmp(self.obj, other.obj) != 0
|
/external/llvm-project/llvm/test/Instrumentation/AddressSanitizer/ |
D | asan-detect-invalid-pointer-pair.ll | 17 define i32 @mycmp(i8* %p, i8* %q) sanitize_address { 18 ; ALL-LABEL: @mycmp
|
/external/python/cpython2/Doc/howto/ |
D | sorting.rst | 239 def cmp_to_key(mycmp): 245 return mycmp(self.obj, other.obj) < 0 247 return mycmp(self.obj, other.obj) > 0 249 return mycmp(self.obj, other.obj) == 0 251 return mycmp(self.obj, other.obj) <= 0 253 return mycmp(self.obj, other.obj) >= 0 255 return mycmp(self.obj, other.obj) != 0
|
/external/libxml2/python/ |
D | generator.py | 807 def cmp_to_key(mycmp): argument 813 return mycmp(self.obj, other.obj) < 0 815 return mycmp(self.obj, other.obj) > 0 817 return mycmp(self.obj, other.obj) == 0 819 return mycmp(self.obj, other.obj) <= 0 821 return mycmp(self.obj, other.obj) >= 0 823 return mycmp(self.obj, other.obj) != 0
|
/external/python/cpython3/Lib/ |
D | functools.py | 206 def cmp_to_key(mycmp): argument 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 221 return mycmp(self.obj, other.obj) >= 0
|
/external/python/cpython2/Lib/test/ |
D | test_functools.py | 491 def mycmp(x, y): function 493 self.assertEqual(sorted(range(5), key=functools.cmp_to_key(mycmp)), 497 def mycmp(x, y): function 499 key = functools.cmp_to_key(mycmp)
|
/external/python/cpython3/Lib/test/ |
D | test_functools.py | 881 key = self.cmp_to_key(mycmp=cmp1) 916 key = self.cmp_to_key(mycmp=cmp1) 920 def mycmp(x, y): function 922 self.assertEqual(sorted(range(5), key=self.cmp_to_key(mycmp)), 926 def mycmp(x, y): function 930 values = sorted(values, key=self.cmp_to_key(mycmp)) 935 def mycmp(x, y): function 937 key = self.cmp_to_key(mycmp)
|
/external/python/cpython3/Objects/ |
D | listsort.txt | 614 def mycmp(x, y): 625 bound(mycmp)
|
/external/python/cpython2/Objects/ |
D | listsort.txt | 614 def mycmp(x, y): 625 bound(mycmp)
|