Home
last modified time | relevance | path

Searched refs:itemgetter (Results 1 - 15 of 15) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_operator.py403 f = operator.itemgetter(2)
408 f = operator.itemgetter(10)
414 self.assertRaises(SyntaxError, operator.itemgetter(42), C())
416 f = operator.itemgetter('name')
418 self.assertRaises(TypeError, operator.itemgetter)
421 f = operator.itemgetter('key')
423 f = operator.itemgetter('nonkey')
428 getcount = operator.itemgetter(1)
435 self.assertEqual(operator.itemgetter(2,10,5)(data), ('2', '10', '5'))
436 self.assertRaises(TypeError, operator.itemgetter(
[all...]
H A Dtest_heapq.py10 from operator import itemgetter namespace
188 for key in [None, itemgetter(0), itemgetter(1), itemgetter(1, 0)]:
H A Dtest_collections.py580 # Some names like "self", "cls", "tuple", "itemgetter", and "property"
582 T = namedtuple('T', 'itemgetter property self cls tuple')
585 newt = t._replace(itemgetter=10, property=20, self=30, cls=40, tuple=50)
605 'isinstance', 'itemgetter', 'iterable', 'join', 'keyword', 'keywords',
/third_party/python/Tools/scripts/
H A Danalyze_dxp.py92 result.sort(key=operator.itemgetter(2), reverse=True)
112 result.sort(key=operator.itemgetter(2), reverse=True)
/third_party/python/Tools/ssl/
H A Dmake_ssl_data.py119 args.reasons = sorted(reasons, key=operator.itemgetter(0, 3))
/third_party/node/deps/v8/third_party/jinja2/
H A Dlexer.py10 from operator import itemgetter namespace
263 lineno, type, value = (property(itemgetter(x)) for x in range(3))
/third_party/node/tools/inspector_protocol/jinja2/
H A Dlexer.py19 from operator import itemgetter namespace
235 lineno, type, value = (property(itemgetter(x)) for x in range(3))
/third_party/skia/third_party/externals/jinja2/
H A Dlexer.py10 from operator import itemgetter namespace
263 lineno, type, value = (property(itemgetter(x)) for x in range(3))
/third_party/python/Lib/
H A Doperator.py17 'is_', 'is_not', 'isub', 'itemgetter', 'itruediv', 'ixor', 'le',
271 class itemgetter: class
274 After f = itemgetter(2), the call f(r) returns r[2].
275 After g = itemgetter(2, 5, 3), the call g(r) returns (r[2], r[5], r[3])
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/bloat/
H A Dbloat.py293 key=operator.itemgetter(1))[0])
/third_party/python/Lib/email/
H A D_header_value_parser.py74 from operator import itemgetter namespace
744 parts = sorted(parts, key=itemgetter(0))
/third_party/python/Tools/stringbench/
H A Dstringbench.py1436 operator.itemgetter(0)):
/third_party/python/Lib/lib2to3/tests/
H A Dtest_fixers.py6 from operator import itemgetter namespace
1841 a = "import %s" % ", ".join(map(itemgetter(0), changes))
/third_party/python/Lib/collections/
H A D__init__.py37 from operator import itemgetter as _itemgetter
/third_party/skia/third_party/externals/brotli/research/
H A Dbrotlidump.py12 from operator import itemgetter, methodcaller namespace

Completed in 38 milliseconds