/external/python/cpython3/Lib/test/ |
D | test_operator.py | 319 f = operator.attrgetter('name') 324 f = operator.attrgetter('rank') 326 self.assertRaises(TypeError, operator.attrgetter, 2) 327 self.assertRaises(TypeError, operator.attrgetter) 334 self.assertEqual(operator.attrgetter('x','z','y')(record), ('X', 'Z', 'Y')) 335 self.assertRaises(TypeError, operator.attrgetter, ('x', (), 'y')) 340 self.assertRaises(SyntaxError, operator.attrgetter('foo'), C()) 347 f = operator.attrgetter('child.name') 350 f = operator.attrgetter('name', 'child.name') 352 f = operator.attrgetter('name', 'child.name', 'child.child.name') [all …]
|
D | _test_multiprocessing.py | 3905 Queue = property(operator.attrgetter('manager.Queue')) 3906 JoinableQueue = property(operator.attrgetter('manager.JoinableQueue')) 3907 Lock = property(operator.attrgetter('manager.Lock')) 3908 RLock = property(operator.attrgetter('manager.RLock')) 3909 Semaphore = property(operator.attrgetter('manager.Semaphore')) 3910 BoundedSemaphore = property(operator.attrgetter('manager.BoundedSemaphore')) 3911 Condition = property(operator.attrgetter('manager.Condition')) 3912 Event = property(operator.attrgetter('manager.Event')) 3913 Barrier = property(operator.attrgetter('manager.Barrier')) 3914 Value = property(operator.attrgetter('manager.Value')) [all …]
|
/external/icu/tools/ |
D | ziputil.py | 21 from operator import attrgetter 37 info_a.sort(key=attrgetter('filename')) 38 info_b.sort(key=attrgetter('filename'))
|
/external/python/cpython2/Lib/test/ |
D | test_operator.py | 372 f = operator.attrgetter('name') 377 f = operator.attrgetter('rank') 379 f = operator.attrgetter(2) 381 self.assertRaises(TypeError, operator.attrgetter) 388 self.assertEqual(operator.attrgetter('x','z','y')(record), ('X', 'Z', 'Y')) 389 self.assertRaises(TypeError, operator.attrgetter('x', (), 'y'), record) 394 self.assertRaises(SyntaxError, operator.attrgetter('foo'), C()) 401 f = operator.attrgetter('child.name') 404 f = operator.attrgetter('name', 'child.name') 406 f = operator.attrgetter('name', 'child.name', 'child.child.name') [all …]
|
/external/toolchain-utils/automation/server/ |
D | machine_manager.py | 5 from operator import attrgetter 37 uses = attrgetter('uses')
|
/external/scapy/scapy/modules/ |
D | six.py | 575 get_method_function = operator.attrgetter(_meth_func) 576 get_method_self = operator.attrgetter(_meth_self) 577 get_function_closure = operator.attrgetter(_func_closure) 578 get_function_code = operator.attrgetter(_func_code) 579 get_function_defaults = operator.attrgetter(_func_defaults) 580 get_function_globals = operator.attrgetter(_func_globals)
|
/external/python/cpython3/Doc/howto/ |
D | sorting.rst | 92 :func:`~operator.attrgetter`, and a :func:`~operator.methodcaller` function. 96 >>> from operator import itemgetter, attrgetter 101 >>> sorted(student_objects, key=attrgetter('age')) 110 >>> sorted(student_objects, key=attrgetter('grade', 'age')) 123 >>> sorted(student_objects, key=attrgetter('age'), reverse=True) 144 >>> s = sorted(student_objects, key=attrgetter('age')) # sort on secondary key 145 >>> sorted(s, key=attrgetter('grade'), reverse=True) # now sort on primary key, descending
|
D | functional.rst | 820 :func:`operator.attrgetter('id') <operator.attrgetter>`
|
/external/autotest/client/site_tests/platform_UdevVars/ |
D | platform_UdevVars.py | 13 from operator import attrgetter 33 devices = filter(attrgetter('device_node'), devices)
|
/external/python/cpython2/Doc/howto/ |
D | sorting.rst | 92 module has :func:`operator.itemgetter`, :func:`operator.attrgetter`, and 97 >>> from operator import itemgetter, attrgetter 102 >>> sorted(student_objects, key=attrgetter('age')) 111 >>> sorted(student_objects, key=attrgetter('grade', 'age')) 134 >>> sorted(student_objects, key=attrgetter('age'), reverse=True) 155 >>> s = sorted(student_objects, key=attrgetter('age')) # sort on secondary key 156 >>> sorted(s, key=attrgetter('grade'), reverse=True) # now sort on primary key, descending
|
/external/python/cpython3/Doc/library/ |
D | operator.rst | 254 .. function:: attrgetter(attr) 255 attrgetter(*attrs) 261 * After ``f = attrgetter('name')``, the call ``f(b)`` returns ``b.name``. 263 * After ``f = attrgetter('name', 'date')``, the call ``f(b)`` returns 266 * After ``f = attrgetter('name.first', 'name.last')``, the call ``f(b)`` 271 def attrgetter(*items):
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/scripts/mako/ |
D | pyparser.py | 23 arg_id = operator.attrgetter('arg') 30 arg_id = operator.attrgetter('id')
|
D | util.py | 195 key=operator.attrgetter('timestamp'), reverse=True)
|
/external/python/cpython2/Doc/library/ |
D | operator.rst | 493 .. function:: attrgetter(attr) 494 attrgetter(*attrs) 500 * After ``f = attrgetter('name')``, the call ``f(b)`` returns ``b.name``. 502 * After ``f = attrgetter('name', 'date')``, the call ``f(b)`` returns 505 * After ``f = attrgetter('name.first', 'name.last')``, the call ``f(b)`` 510 def attrgetter(*items):
|
/external/python/cpython3/Lib/ |
D | operator.py | 226 class attrgetter: class 249 getters = tuple(map(attrgetter, self._attrs))
|
D | pathlib.py | 12 from operator import attrgetter 766 drive = property(attrgetter('_drv'), 769 root = property(attrgetter('_root'),
|
D | inspect.py | 50 from operator import attrgetter 945 classes.sort(key=attrgetter('__module__', '__name__'))
|
/external/python/cpython2/Lib/ |
D | cgi.py | 37 from operator import attrgetter 551 return map(attrgetter('value'), value) 573 return map(attrgetter('value'), value)
|
D | inspect.py | 41 from operator import attrgetter 707 classes.sort(key=attrgetter('__module__', '__name__'))
|
D | tarfile.py | 2084 directories.sort(key=operator.attrgetter('name'))
|
/external/libmojo/third_party/jinja2/ |
D | filters.py | 64 def attrgetter(item): function 70 return attrgetter
|
/external/autotest/frontend/tko/ |
D | rpc_interface.py | 158 iter_keyfunc = operator.attrgetter('iteration')
|
/external/python/cpython3/Lib/lib2to3/ |
D | refactor.py | 266 key_func = operator.attrgetter("run_order")
|
/external/python/cpython2/Lib/lib2to3/ |
D | refactor.py | 269 key_func = operator.attrgetter("run_order")
|
/external/protobuf/python/google/protobuf/internal/ |
D | message_test.py | 431 message.repeated_nested_message.sort(key=operator.attrgetter('bb')) 468 get_bb = operator.attrgetter('bb')
|