Home
last modified time | relevance | path

Searched refs:attrgetter (Results 1 – 25 of 51) sorted by relevance

123

/external/python/cpython3/Lib/test/
Dtest_operator.py319 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.py4876 Queue = property(operator.attrgetter('manager.Queue'))
4877 JoinableQueue = property(operator.attrgetter('manager.JoinableQueue'))
4878 Lock = property(operator.attrgetter('manager.Lock'))
4879 RLock = property(operator.attrgetter('manager.RLock'))
4880 Semaphore = property(operator.attrgetter('manager.Semaphore'))
4881 BoundedSemaphore = property(operator.attrgetter('manager.BoundedSemaphore'))
4882 Condition = property(operator.attrgetter('manager.Condition'))
4883 Event = property(operator.attrgetter('manager.Event'))
4884 Barrier = property(operator.attrgetter('manager.Barrier'))
4885 Value = property(operator.attrgetter('manager.Value'))
[all …]
/external/icu/tools/
Dziputil.py24 from operator import attrgetter
40 info_a.sort(key=attrgetter('filename'))
41 info_b.sort(key=attrgetter('filename'))
/external/python/cpython2/Lib/test/
Dtest_operator.py372 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/
Dmachine_manager.py5 from operator import attrgetter
37 uses = attrgetter('uses')
/external/scapy/scapy/modules/
Dsix.py575 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/setuptools/pkg_resources/_vendor/
Dsix.py565 get_method_function = operator.attrgetter(_meth_func)
566 get_method_self = operator.attrgetter(_meth_self)
567 get_function_closure = operator.attrgetter(_func_closure)
568 get_function_code = operator.attrgetter(_func_code)
569 get_function_defaults = operator.attrgetter(_func_defaults)
570 get_function_globals = operator.attrgetter(_func_globals)
/external/python/setuptools/setuptools/_vendor/
Dsix.py565 get_method_function = operator.attrgetter(_meth_func)
566 get_method_self = operator.attrgetter(_meth_self)
567 get_function_closure = operator.attrgetter(_func_closure)
568 get_function_code = operator.attrgetter(_func_code)
569 get_function_defaults = operator.attrgetter(_func_defaults)
570 get_function_globals = operator.attrgetter(_func_globals)
/external/python/six/
Dsix.py571 get_method_function = operator.attrgetter(_meth_func)
572 get_method_self = operator.attrgetter(_meth_self)
573 get_function_closure = operator.attrgetter(_func_closure)
574 get_function_code = operator.attrgetter(_func_code)
575 get_function_defaults = operator.attrgetter(_func_defaults)
576 get_function_globals = operator.attrgetter(_func_globals)
/external/python/cpython3/Doc/howto/
Dsorting.rst92 :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
/external/autotest/client/site_tests/platform_UdevVars/
Dplatform_UdevVars.py13 from operator import attrgetter
33 devices = filter(attrgetter('device_node'), devices)
/external/python/cpython2/Doc/howto/
Dsorting.rst92 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/apitools/apitools/gen/
Dextended_descriptor.py280 enum_type.values, key=operator.attrgetter('number'))
390 enum_type.values, key=operator.attrgetter('number'))
476 enum_types = sorted(enum_types, key=operator.attrgetter('name'))
482 message_list = sorted(message_list, key=operator.attrgetter('name'))
/external/python/cpython3/Doc/library/
Doperator.rst255 .. function:: attrgetter(attr)
256 attrgetter(*attrs)
262 * After ``f = attrgetter('name')``, the call ``f(b)`` returns ``b.name``.
264 * After ``f = attrgetter('name', 'date')``, the call ``f(b)`` returns
267 * After ``f = attrgetter('name.first', 'name.last')``, the call ``f(b)``
272 def attrgetter(*items):
/external/python/cpython2/Doc/library/
Doperator.rst493 .. 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/u-boot/tools/binman/
Dimage.py11 from operator import attrgetter
/external/python/cpython3/Lib/
Doperator.py226 class attrgetter: class
249 getters = tuple(map(attrgetter, self._attrs))
Dpathlib.py11 from operator import attrgetter
767 drive = property(attrgetter('_drv'),
770 root = property(attrgetter('_root'),
/external/python/cpython2/Lib/
Dcgi.py37 from operator import attrgetter
551 return map(attrgetter('value'), value)
573 return map(attrgetter('value'), value)
Dinspect.py41 from operator import attrgetter
714 classes.sort(key=attrgetter('__module__', '__name__'))
/external/python/setuptools/setuptools/command/
Dtest.py223 paths = map(operator.attrgetter('location'), installed_dists)
/external/grpc-grpc/tools/mkowners/
Dmkowners.py95 key=operator.attrgetter('dir'))
/external/libchrome/third_party/jinja2/
Dfilters.py75 def attrgetter(item): function
84 return attrgetter
/external/antlr/runtime/Python3/
Dez_setup.py461 directories.sort(key=operator.attrgetter('name'), reverse=True)
/external/autotest/frontend/tko/
Drpc_interface.py158 iter_keyfunc = operator.attrgetter('iteration')

123