Lines Matching refs:iterators
20 skip to the next section on :ref:`functional-howto-iterators`.
176 .. _functional-howto-iterators:
182 foundation for writing functional-style programs: iterators.
238 Sequence unpacking also supports iterators: if you know an iterator will return
249 and ``"not in"`` operators also support iterators: ``X in iterator`` is true if
267 We've already seen how lists and tuples support iterators. In fact, any Python
296 dictionaries have methods that return other iterators. If you want to iterate
356 useful if you're working with iterators that return an infinite stream or a very
434 iterators. Regular functions compute a value and return it, but generators
620 Let's look in more detail at built-in functions often used with iterators.
718 It doesn't construct an in-memory list and exhaust all the input iterators
731 longer iterators and discarded. This means you can't go on to use the iterators
738 The :mod:`itertools` module contains a number of commonly-used iterators as well
739 as functions for combining several iterators. This section will introduce the
749 Creating new iterators
801 returns *n* independent iterators that will all return the contents of the
803 If you don't supply a value for *n*, the default is 2. Replicating iterators
805 significant memory if the iterator is large and one of the new iterators is
875 iterators and returns only those elements of *data* for which the corresponding
983 already be sorted based on the key. Note that the returned iterators also use