/third_party/python/Lib/test/ |
D | test_operator.py | 326 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.py | 5622 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 …]
|
D | test_xml_etree.py | 175 properties = operator.attrgetter('tag', 'tail', 'text', 'attrib')
|
/third_party/node/tools/gyp/pylib/gyp/ |
D | MSVSNew.py | 10 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/ |
D | sorting.rst | 94 :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)
|
D | functional.rst | 824 :func:`operator.attrgetter('id') <operator.attrgetter>`
|
/third_party/grpc/examples/python/multiprocessing/ |
D | client.py | 72 primes = zip(check_range, map(operator.attrgetter('isPrime'), primality))
|
/third_party/python/Doc/library/ |
D | operator.rst | 255 .. 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/ |
D | filters.py | 72 def attrgetter(item): function 84 return attrgetter 105 def attrgetter(item): function 118 return attrgetter
|
/third_party/jinja2/ |
D | filters.py | 72 def attrgetter(item): function 84 return attrgetter 105 def attrgetter(item): function 118 return attrgetter
|
/third_party/python/Lib/ |
D | operator.py | 226 class attrgetter: class 249 getters = tuple(map(attrgetter, self._attrs))
|
D | pathlib.py | 11 from operator import attrgetter 808 drive = property(attrgetter('_drv'), 811 root = property(attrgetter('_root'),
|
D | inspect.py | 51 from operator import attrgetter 1031 classes.sort(key=attrgetter('__module__', '__name__'))
|
/third_party/uboot/u-boot-2020.01/tools/binman/ |
D | image.py | 12 from operator import attrgetter
|
/third_party/grpc/tools/mkowners/ |
D | mkowners.py | 92 key=operator.attrgetter('dir'))
|
/third_party/node/tools/inspector_protocol/jinja2/ |
D | filters.py | 75 def attrgetter(item): function 84 return attrgetter
|
/third_party/python/Lib/importlib/ |
D | metadata.py | 561 by_group = operator.attrgetter('group')
|
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/ |
D | message_test.py | 390 get_bb = operator.attrgetter('bb')
|
/third_party/python/Lib/lib2to3/ |
D | refactor.py | 254 key_func = operator.attrgetter("run_order")
|
/third_party/protobuf/python/google/protobuf/internal/ |
D | message_test.py | 657 message.repeated_nested_message.sort(key=operator.attrgetter('bb')) 696 get_bb = operator.attrgetter('bb')
|
/third_party/python/Doc/whatsnew/ |
D | 2.5.rst | 1433 * The :mod:`operator` module's :func:`itemgetter` and :func:`attrgetter` 1435 ``operator.attrgetter('a', 'b')`` will return a function that retrieves the
|
D | 2.6.rst | 2152 The :func:`attrgetter` function now accepts dotted names and performs 2155 >>> inst_name = operator.attrgetter(
|
D | 2.4.rst | 1199 ``attrgetter(attr)`` and ``itemgetter(index)``. Both functions return
|
D | 3.5.rst | 1470 :func:`~operator.attrgetter`, :func:`~operator.itemgetter`,
|
/third_party/python/Doc/ |
D | glossary.rst | 652 :func:`~operator.attrgetter`, :func:`~operator.itemgetter`, and
|