/external/python/cpython3/Lib/test/ |
test_sort.py | 4 from functools import cmp_to_key 18 raw.sort(key=cmp_to_key(compare)) 103 s.sort(key=cmp_to_key(lambda a, b: int(random.random() * 3) - 1)) 160 self.assertRaises(ValueError, L.sort, key=cmp_to_key(mutating_cmp)) 165 self.assertRaises(ValueError, L.sort, key=cmp_to_key(mutating_cmp)) 180 copy.sort(key=cmp_to_key(my_cmp)) 256 data.sort(key=cmp_to_key(my_cmp), reverse=True) 257 copy1.sort(key=cmp_to_key(my_cmp_reversed)) 349 [cmp_to_key(lambda x,y: x<y)(x) for x in range(100)]]
|
list_tests.py | 7 from functools import cmp_to_key 452 u.sort(key=cmp_to_key(revcmp)) 465 z.sort(key=cmp_to_key(myComparison)) 478 key=cmp_to_key(selfmodifyingComparison))
|
test_functools.py | 837 key = self.cmp_to_key(cmp1) 844 key = self.cmp_to_key(cmp2) 853 key = self.cmp_to_key(mycmp=cmp1) 861 key = self.cmp_to_key() # too few args 863 key = self.cmp_to_key(cmp1, None) # too many args 864 key = self.cmp_to_key(cmp1) 873 key = self.cmp_to_key(cmp1) 918 cmp_to_key = c_functools.cmp_to_key variable in class:TestCmpToKeyC 922 cmp_to_key = staticmethod(py_functools.cmp_to_key) variable in class:TestCmpToKeyPy [all...] |
/external/selinux/python/sepolgen/src/sepolgen/ |
output.py | 134 rules.sort(key=util.cmp_to_key(rule_cmp)) 158 ras.sort(key=util.cmp_to_key(role_type_cmp))
|
util.py | 147 # cmp_to_key function is missing in python2.6 148 def cmp_to_key(mycmp): function 167 from functools import cmp_to_key
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
functools.py | 80 def cmp_to_key(mycmp):
function
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
functools.py | 80 def cmp_to_key(mycmp):
function
|
pstats.py | 40 from functools import cmp_to_key
242 stats_list.sort(key=cmp_to_key(TupleComp(sort_tuple).compare))
|
/external/python/cpython2/Lib/ |
functools.py | 85 def cmp_to_key(mycmp): function
|
pstats.py | 28 from functools import cmp_to_key 234 stats_list.sort(key=cmp_to_key(TupleComp(sort_tuple).compare))
|
/external/scapy/scapy/ |
compat.py | 21 def cmp_to_key(mycmp): function 22 # TODO remove me once all 'key=cmp_to_key(..)' has been fixed in utils6.py, automaton.py 28 list.sort(key=cmp_to_key(stg_cmp))
|
utils6.py | 76 cset.sort(key=cmp_to_key(cset_sort)) # Sort with global addresses first 156 candidate_set.sort(key=cmp_to_key(rfc3484_cmp), reverse=True)
|
automaton.py | 446 v.sort(key=cmp_to_key(lambda t1_f1,t2_f2: cmp(t1_f1[0],t2_f2[0]))) 451 v.sort(key=cmp_to_key(lambda c1,c2: cmp(c1.atmt_prio,c2.atmt_prio))) 453 actlst.sort(key=cmp_to_key(lambda c1,c2: cmp(c1.atmt_cond[condname], c2.atmt_cond[condname]))) [all...] |
/external/libxml2/python/ |
generator.py | 806 def cmp_to_key(mycmp): function [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/ |
loader.py | 9 from functools import cmp_to_key as _CmpToKey
|
/external/python/cpython2/Lib/unittest/ |
loader.py | 9 from functools import cmp_to_key as _CmpToKey
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_functools.py | 345 self.assertEqual(sorted(range(5), key=functools.cmp_to_key(mycmp)),
351 key = functools.cmp_to_key(mycmp)
|
/external/python/cpython2/Lib/test/ |
test_functools.py | 493 self.assertEqual(sorted(range(5), key=functools.cmp_to_key(mycmp)), 499 key = functools.cmp_to_key(mycmp)
|
/external/python/cpython3/Lib/ |
functools.py | 13 'total_ordering', 'cmp_to_key', 'lru_cache', 'reduce', 'partial', 201 ### cmp_to_key() function converter 204 def cmp_to_key(mycmp): function 224 from _functools import cmp_to_key
|
pstats.py | 29 from functools import cmp_to_key 250 stats_list.sort(key=cmp_to_key(TupleComp(sort_tuple).compare))
|
/external/python/cpython3/Lib/unittest/ |
loader.py | 239 testFnNames.sort(key=functools.cmp_to_key(self.sortTestMethodsUsing))
|
/external/python/cpython2/Lib/pydoc_data/ |
topics.py | [all...] |