Searched refs:iterables (Results 1 – 25 of 51) sorted by relevance
123
173 .. function:: chain(*iterables)176 exhausted, then proceeds to the next iterable, until all of the iterables are180 def chain(*iterables):182 for it in iterables:192 def from_iterable(iterables):194 for it in iterables:299 Stops when either the *data* or *selectors* iterables has been exhausted.556 .. function:: product(*iterables, repeat=1)558 Cartesian product of input iterables.565 the input's iterables are sorted, the product tuples are emitted in sorted[all …]
41 .. method:: map(func, *iterables, timeout=None, chunksize=1)43 Similar to :func:`map(func, *iterables) <map>` except:45 * the *iterables* are collected immediately rather than lazily;59 When using :class:`ProcessPoolExecutor`, this method chops *iterables*62 setting *chunksize* to a positive integer. For very long iterables,
86 .. function:: merge(*iterables, key=None, reverse=False)92 Similar to ``sorted(itertools.chain(*iterables))`` but returns an iterable, does104 to ``sorted(itertools.chain(*iterables), reverse=True)``, all iterables must
120 The first three arguments are iterables of 'waitable objects': either129 Empty iterables are allowed, but acceptance of three empty iterables is144 Among the acceptable object types in the iterables are Python :term:`file
995 iterables in parallel. With multiple iterables, the iterator stops when the1691 see :func:`math.fsum`\. To concatenate a series of iterables, consider using1833 .. function:: zip(*iterables, strict=False)1835 Iterate over several iterables in parallel, producing tuples with an item1848 tuple contains the *i*-th element from each of the argument iterables.1858 One thing to consider is that the iterables passed to :func:`zip` could have1860 the code that prepared these iterables. Python offers three different1864 It will ignore the remaining items in the longer iterables, cutting off1870 * :func:`zip` is often used in cases where the iterables are assumed to be1877 Unlike the default behavior, it checks that the lengths of iterables are[all …]
33 are iterables of all predecessors of that node in the graph (the nodes that
314 def merge(*iterables, key=None, reverse=False): argument347 for order, it in enumerate(map(iter, iterables)):370 for order, it in enumerate(map(iter, iterables)):
183 def _get_chunks(*iterables, chunksize): argument185 it = zip(*iterables)710 def map(self, fn, *iterables, timeout=None, chunksize=1): argument735 _get_chunks(*iterables, chunksize=chunksize),
573 def map(self, fn, *iterables, timeout=None, chunksize=1): argument598 fs = [self.submit(fn, *args) for args in zip(*iterables)]
7 Re-allow arbitrary iterables in `concurrent.futures.as_completed()`. Fixes
7 Optimized creating bytes and bytearray from byte-like objects and iterables.
526 csv.Writer.writerow() now supports arbitrary iterables.
594 empty iterables.
24 …// "downlevelIteration": true, /* Provide full support for iterables in 'for-of',…
103 /// also applies to any iterables derived from this one, e.g. as
722 This iterator is intended to be used with iterables that are all of the same723 length. If the iterables are of different lengths, the resulting stream will be778 number of iterables as input, and returns all the elements of the first780 iterables have been exhausted. ::1020 therefore, can't be applied to infinite iterables. *func* must be a function
1582 * Several methods of the built-in set types now accept multiple iterables:1976 takes any number of iterables returning data in sorted2012 each of the elements; if some of the iterables are shorter than2019 of the supplied iterables, a set of tuples containing2028 product of an iterable or a set of iterables with themselves,2036 With two iterables, *2N*-tuples are returned. ::2065 ``itertools.chain(*iterables)`` is an existing function in2068 iterable that should return other iterables. :func:`chain` will