/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | heapq.py | 191 def nlargest(n, iterable): argument 196 it = iter(iterable) 207 def nsmallest(n, iterable): argument 212 if hasattr(iterable, '__len__') and n * 10 <= len(iterable): 215 it = iter(iterable) 233 h = list(iterable) 356 def nsmallest(n, iterable, key=None): argument 363 it = iter(iterable) 373 size = len(iterable) 378 return sorted(iterable, key=key)[:n] [all …]
|
D | sets.py | 341 def _update(self, iterable): argument 346 if isinstance(iterable, BaseSet): 347 data.update(iterable._data) 352 if type(iterable) in (list, tuple, xrange): 355 it = iter(iterable) 368 for element in iterable: 385 def __init__(self, iterable=None): argument 389 if iterable is not None: 390 self._update(iterable) 410 def __init__(self, iterable=None): argument [all …]
|
D | collections.py | 195 def fromkeys(cls, iterable, value=None): argument 201 for key in iterable: 406 def __init__(self, iterable=None, **kwds): argument 418 self.update(iterable, **kwds) 463 def fromkeys(cls, iterable, v=None): argument 469 def update(self, iterable=None, **kwds): argument 489 if iterable is not None: 490 if isinstance(iterable, Mapping): 493 for elem, count in iterable.iteritems(): 496 super(Counter, self).update(iterable) # fast path when counter is empty [all …]
|
D | tokenize.py | 192 def untokenize(self, iterable): argument 193 for t in iterable: 195 self.compat(t, iterable) 206 def compat(self, token, iterable): argument 216 for tok in iterable: 243 def untokenize(iterable): argument 262 return ut.untokenize(iterable)
|
D | UserDict.py | 73 def fromkeys(cls, iterable, value=None): argument 75 for key in iterable:
|
D | StringIO.py | 241 def writelines(self, iterable): argument 250 for line in iterable:
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | heapq.py | 203 def nlargest(n, iterable): argument 210 it = iter(iterable) 221 def nsmallest(n, iterable): argument 228 it = iter(iterable) 399 def nsmallest(n, iterable, key=None): argument 406 it = iter(iterable) 416 size = len(iterable) 421 return sorted(iterable, key=key)[:n] 425 it = izip(iterable, count()) # decorate 430 in1, in2 = tee(iterable) [all …]
|
D | collections.py | 197 def fromkeys(cls, iterable, value=None): argument 203 for key in iterable: 510 def fromkeys(cls, iterable, v=None): argument 543 iterable = args[0] if args else None 544 if iterable is not None: 545 if isinstance(iterable, Mapping): 548 for elem, count in iterable.iteritems(): 551 super(Counter, self).update(iterable) # fast path when counter is empty 554 for elem in iterable: 582 iterable = args[0] if args else None [all …]
|
D | tokenize.py | 199 def untokenize(self, iterable): argument 200 it = iter(iterable) 216 def compat(self, token, iterable): argument 222 for tok in chain([token], iterable): 249 def untokenize(iterable): argument 268 return ut.untokenize(iterable)
|
D | UserDict.py | 73 def fromkeys(cls, iterable, value=None): argument 75 for key in iterable:
|
D | StringIO.py | 241 def writelines(self, iterable): argument 250 for line in iterable:
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/ |
D | __init__.py | 171 iterable = _default_encoder.iterencode(obj) 175 iterable = cls(skipkeys=skipkeys, ensure_ascii=ensure_ascii, 181 for chunk in iterable:
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/ |
D | __init__.py | 179 iterable = _default_encoder.iterencode(obj) 183 iterable = cls(skipkeys=skipkeys, ensure_ascii=ensure_ascii, 189 for chunk in iterable:
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/pgen2/ |
D | tokenize.py | 197 def untokenize(self, iterable): argument 198 for t in iterable: 200 self.compat(t, iterable) 211 def compat(self, token, iterable): argument 220 for tok in iterable: 324 def untokenize(iterable): argument 343 return ut.untokenize(iterable)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
D | _heapqmodule.c | 294 PyObject *heap=NULL, *elem, *iterable, *sol, *it, *oldelem; in nlargest() local 298 if (!PyArg_ParseTuple(args, "nO:nlargest", &n, &iterable)) in nlargest() 301 it = PyObject_GetIter(iterable); in nlargest() 463 PyObject *heap=NULL, *elem, *iterable, *los, *it, *oldelem; in nsmallest() local 467 if (!PyArg_ParseTuple(args, "nO:nsmallest", &n, &iterable)) in nsmallest() 470 it = PyObject_GetIter(iterable); in nsmallest()
|
D | itertoolsmodule.c | 515 tee_fromiterable(PyObject *iterable) in tee_fromiterable() argument 520 it = PyObject_GetIter(iterable); in tee_fromiterable() 549 PyObject *iterable; in tee_new() local 551 if (!PyArg_UnpackTuple(args, "tee", 1, 1, &iterable)) in tee_new() 553 return tee_fromiterable(iterable); in tee_new() 628 PyObject *it, *iterable, *copyable, *result; in tee() local 630 if (!PyArg_ParseTuple(args, "O|n", &iterable, &n)) in tee() 641 it = PyObject_GetIter(iterable); in tee() 686 PyObject *iterable; in cycle_new() local 693 if (!PyArg_UnpackTuple(args, "cycle", 1, 1, &iterable)) in cycle_new() [all …]
|
D | _collectionsmodule.c | 297 deque_extend(dequeobject *deque, PyObject *iterable) in deque_extend() argument 302 if ((PyObject *)deque == iterable) { in deque_extend() 304 PyObject *s = PySequence_List(iterable); in deque_extend() 312 it = PyObject_GetIter(iterable); in deque_extend() 349 deque_extendleft(dequeobject *deque, PyObject *iterable) in deque_extendleft() argument 354 if ((PyObject *)deque == iterable) { in deque_extendleft() 356 PyObject *s = PySequence_List(iterable); in deque_extendleft() 364 it = PyObject_GetIter(iterable); in deque_extendleft() 966 PyObject *iterable = NULL; in deque_init() local 971 if (!PyArg_ParseTupleAndKeywords(args, kwdargs, "|OO:deque", kwlist, &iterable, &maxlenobj)) in deque_init() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
D | _heapqmodule.c | 293 PyObject *heap=NULL, *elem, *iterable, *sol, *it, *oldelem; in nlargest() local 297 if (!PyArg_ParseTuple(args, "nO:nlargest", &n, &iterable)) in nlargest() 300 it = PyObject_GetIter(iterable); in nlargest() 462 PyObject *heap=NULL, *elem, *iterable, *los, *it, *oldelem; in nsmallest() local 466 if (!PyArg_ParseTuple(args, "nO:nsmallest", &n, &iterable)) in nsmallest() 469 it = PyObject_GetIter(iterable); in nsmallest()
|
D | itertoolsmodule.c | 534 tee_fromiterable(PyObject *iterable) in tee_fromiterable() argument 539 it = PyObject_GetIter(iterable); in tee_fromiterable() 568 PyObject *iterable; in tee_new() local 570 if (!PyArg_UnpackTuple(args, "tee", 1, 1, &iterable)) in tee_new() 572 return tee_fromiterable(iterable); in tee_new() 647 PyObject *it, *iterable, *copyable, *result; in tee() local 649 if (!PyArg_ParseTuple(args, "O|n", &iterable, &n)) in tee() 660 it = PyObject_GetIter(iterable); in tee() 705 PyObject *iterable; in cycle_new() local 712 if (!PyArg_UnpackTuple(args, "cycle", 1, 1, &iterable)) in cycle_new() [all …]
|
D | _collectionsmodule.c | 296 deque_extend(dequeobject *deque, PyObject *iterable) in deque_extend() argument 301 if ((PyObject *)deque == iterable) { in deque_extend() 303 PyObject *s = PySequence_List(iterable); in deque_extend() 311 it = PyObject_GetIter(iterable); in deque_extend() 348 deque_extendleft(dequeobject *deque, PyObject *iterable) in deque_extendleft() argument 353 if ((PyObject *)deque == iterable) { in deque_extendleft() 355 PyObject *s = PySequence_List(iterable); in deque_extendleft() 363 it = PyObject_GetIter(iterable); in deque_extendleft() 1015 PyObject *iterable = NULL; in deque_init() local 1020 if (!PyArg_ParseTupleAndKeywords(args, kwdargs, "|OO:deque", kwlist, &iterable, &maxlenobj)) in deque_init() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/ |
D | setobject.c | 1001 make_new_set(PyTypeObject *type, PyObject *iterable) in make_new_set() argument 1032 if (iterable != NULL) { in make_new_set() 1033 if (set_update_internal(so, iterable) == -1) { in make_new_set() 1048 PyObject *iterable = NULL, *result; in frozenset_new() local 1053 if (!PyArg_UnpackTuple(args, type->tp_name, 0, 1, &iterable)) in frozenset_new() 1057 return make_new_set(type, iterable); in frozenset_new() 1059 if (iterable != NULL) { in frozenset_new() 1061 if (PyFrozenSet_CheckExact(iterable)) { in frozenset_new() 1062 Py_INCREF(iterable); in frozenset_new() 1063 return iterable; in frozenset_new() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/ |
D | setobject.c | 1000 make_new_set(PyTypeObject *type, PyObject *iterable) in make_new_set() argument 1031 if (iterable != NULL) { in make_new_set() 1032 if (set_update_internal(so, iterable) == -1) { in make_new_set() 1047 PyObject *iterable = NULL, *result; in frozenset_new() local 1052 if (!PyArg_UnpackTuple(args, type->tp_name, 0, 1, &iterable)) in frozenset_new() 1056 return make_new_set(type, iterable); in frozenset_new() 1058 if (iterable != NULL) { in frozenset_new() 1060 if (PyFrozenSet_CheckExact(iterable)) { in frozenset_new() 1061 Py_INCREF(iterable); in frozenset_new() 1062 return iterable; in frozenset_new() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/ |
D | util.py | 135 def _ordered_count(iterable): argument 138 for elem in iterable:
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_itertools.py | 48 def prod(iterable): argument 49 return reduce(operator.mul, iterable, 1) 87 def combinations1(iterable, r): argument 89 pool = tuple(iterable) 106 def combinations2(iterable, r): argument 108 pool = tuple(iterable) 114 def combinations3(iterable, r): argument 116 pool = tuple(iterable) 153 def cwr1(iterable, r): argument 156 pool = tuple(iterable) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/ |
D | setobject.h | 94 PyAPI_FUNC(int) _PySet_Update(PyObject *set, PyObject *iterable);
|