Home
last modified time | relevance | path

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

12

/third_party/python/Lib/test/
Dtest_operator.py326 f = operator.attrgetter('name')
331 f = operator.attrgetter('rank')
333 self.assertRaises(TypeError, operator.attrgetter, 2)
334 self.assertRaises(TypeError, operator.attrgetter)
341 self.assertEqual(operator.attrgetter('x','z','y')(record), ('X', 'Z', 'Y'))
342 self.assertRaises(TypeError, operator.attrgetter, ('x', (), 'y'))
347 self.assertRaises(SyntaxError, operator.attrgetter('foo'), C())
354 f = operator.attrgetter('child.name')
357 f = operator.attrgetter('name', 'child.name')
359 f = operator.attrgetter('name', 'child.name', 'child.child.name')
[all …]
D_test_multiprocessing.py5622 Queue = property(operator.attrgetter('manager.Queue'))
5623 JoinableQueue = property(operator.attrgetter('manager.JoinableQueue'))
5624 Lock = property(operator.attrgetter('manager.Lock'))
5625 RLock = property(operator.attrgetter('manager.RLock'))
5626 Semaphore = property(operator.attrgetter('manager.Semaphore'))
5627 BoundedSemaphore = property(operator.attrgetter('manager.BoundedSemaphore'))
5628 Condition = property(operator.attrgetter('manager.Condition'))
5629 Event = property(operator.attrgetter('manager.Event'))
5630 Barrier = property(operator.attrgetter('manager.Barrier'))
5631 Value = property(operator.attrgetter('manager.Value'))
[all …]
Dtest_xml_etree.py175 properties = operator.attrgetter('tag', 'tail', 'text', 'attrib')
/third_party/node/tools/gyp/pylib/gyp/
DMSVSNew.py10 from operator import attrgetter
103 self.entries = sorted(entries or [], key=attrgetter("path"))
255 all_entries = sorted(all_entries, key=attrgetter("path"))
/third_party/python/Doc/howto/
Dsorting.rst94 :func:`~operator.attrgetter`, and a :func:`~operator.methodcaller` function.
98 >>> from operator import itemgetter, attrgetter
103 >>> sorted(student_objects, key=attrgetter('age'))
112 >>> sorted(student_objects, key=attrgetter('grade', 'age'))
125 >>> sorted(student_objects, key=attrgetter('age'), reverse=True)
146 >>> s = sorted(student_objects, key=attrgetter('age')) # sort on secondary key
147 >>> sorted(s, key=attrgetter('grade'), reverse=True) # now sort on primary key, descending
155 ... xs.sort(key=attrgetter(key), reverse=reverse)
Dfunctional.rst824 :func:`operator.attrgetter('id') <operator.attrgetter>`
/third_party/grpc/examples/python/multiprocessing/
Dclient.py72 primes = zip(check_range, map(operator.attrgetter('isPrime'), primality))
/third_party/python/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):
/third_party/skia/third_party/externals/jinja2/
Dfilters.py72 def attrgetter(item): function
84 return attrgetter
105 def attrgetter(item): function
118 return attrgetter
/third_party/jinja2/
Dfilters.py72 def attrgetter(item): function
84 return attrgetter
105 def attrgetter(item): function
118 return attrgetter
/third_party/python/Lib/
Doperator.py226 class attrgetter: class
249 getters = tuple(map(attrgetter, self._attrs))
Dpathlib.py11 from operator import attrgetter
808 drive = property(attrgetter('_drv'),
811 root = property(attrgetter('_root'),
Dinspect.py51 from operator import attrgetter
1031 classes.sort(key=attrgetter('__module__', '__name__'))
/third_party/uboot/u-boot-2020.01/tools/binman/
Dimage.py12 from operator import attrgetter
/third_party/grpc/tools/mkowners/
Dmkowners.py92 key=operator.attrgetter('dir'))
/third_party/node/tools/inspector_protocol/jinja2/
Dfilters.py75 def attrgetter(item): function
84 return attrgetter
/third_party/python/Lib/importlib/
Dmetadata.py561 by_group = operator.attrgetter('group')
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dmessage_test.py390 get_bb = operator.attrgetter('bb')
/third_party/python/Lib/lib2to3/
Drefactor.py254 key_func = operator.attrgetter("run_order")
/third_party/protobuf/python/google/protobuf/internal/
Dmessage_test.py657 message.repeated_nested_message.sort(key=operator.attrgetter('bb'))
696 get_bb = operator.attrgetter('bb')
/third_party/python/Doc/whatsnew/
D2.5.rst1433 * The :mod:`operator` module's :func:`itemgetter` and :func:`attrgetter`
1435 ``operator.attrgetter('a', 'b')`` will return a function that retrieves the
D2.6.rst2152 The :func:`attrgetter` function now accepts dotted names and performs
2155 >>> inst_name = operator.attrgetter(
D2.4.rst1199 ``attrgetter(attr)`` and ``itemgetter(index)``. Both functions return
D3.5.rst1470 :func:`~operator.attrgetter`, :func:`~operator.itemgetter`,
/third_party/python/Doc/
Dglossary.rst652 :func:`~operator.attrgetter`, :func:`~operator.itemgetter`, and

12