/external/python/cpython2/Lib/ |
D | functools.py | 80 def cmp_to_key(mycmp): argument 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/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/selinux/python/sepolgen/src/sepolgen/ |
D | util.py | 150 def cmp_to_key(mycmp): argument 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 166 return mycmp(self.obj, other.obj) != 0
|
/external/python/cpython3/Lib/ |
D | functools.py | 211 def cmp_to_key(mycmp): argument 218 return mycmp(self.obj, other.obj) < 0 220 return mycmp(self.obj, other.obj) > 0 222 return mycmp(self.obj, other.obj) == 0 224 return mycmp(self.obj, other.obj) <= 0 226 return mycmp(self.obj, other.obj) >= 0
|
/external/python/cpython3/Doc/howto/ |
D | sorting.rst | 226 def cmp_to_key(mycmp): 232 return mycmp(self.obj, other.obj) < 0 234 return mycmp(self.obj, other.obj) > 0 236 return mycmp(self.obj, other.obj) == 0 238 return mycmp(self.obj, other.obj) <= 0 240 return mycmp(self.obj, other.obj) >= 0 242 return mycmp(self.obj, other.obj) != 0
|
/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 | 806 def cmp_to_key(mycmp): argument 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
|
/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/valgrind/cachegrind/ |
D | cg_annotate.in | 491 sub mycmp ($$) 601 mycmp($fn_totals{$a}, $fn_totals{$b})
|
/external/valgrind/callgrind/ |
D | callgrind_annotate.in | 766 sub mycmp ($$) 879 mycmp($fn_totals{$a}, $fn_totals{$b})
|
/external/python/cpython3/Lib/test/ |
D | test_functools.py | 827 key = self.cmp_to_key(mycmp=cmp1) 862 key = self.cmp_to_key(mycmp=cmp1) 866 def mycmp(x, y): function 868 self.assertEqual(sorted(range(5), key=self.cmp_to_key(mycmp)), 872 def mycmp(x, y): function 876 values = sorted(values, key=self.cmp_to_key(mycmp)) 881 def mycmp(x, y): function 883 key = self.cmp_to_key(mycmp)
|
/external/python/cpython2/Objects/ |
D | listsort.txt | 614 def mycmp(x, y): 625 bound(mycmp)
|
/external/python/cpython3/Objects/ |
D | listsort.txt | 614 def mycmp(x, y): 625 bound(mycmp)
|