About 86 results
Open links in new tab
  1. Functions creating iterators for efficient looping - Python

    1 day ago · This module implements a number of iterator building blocks inspired by constructs from APL, Haskell, and SML. Each …

  2. Iterator Objects — Python 3.15.2 documentation

    4 days ago · Iterator Objects ¶ Python provides two general-purpose iterator objects. The first, a sequence iterator, works with an …

  3. Iterator - Python Wiki

    Iterator ¶ Legacy Wiki Page This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer …

  4. PEP 234 – Iterators | peps.python.org

    Jan 30, 2001 · This document proposes an iteration interface that objects can provide to control the behaviour of for loops. Looping is …

  5. Generators - Python Wiki

    Generator functions allow you to declare a function that behaves like an iterator, i.e. it can be used in a for loop. Simplified Code ¶ …

  6. What is iterators and generators? - Discussions on Python.org

    Jan 16, 2026 · An iterator is any object that you can step through and perform an operation or extract information from. Examples …

  7. PEP 276 – Simple Iterator for ints | peps.python.org

    Nov 12, 2001 · Python 2.1 added new functionality to support iterators (PEP 234). Iterators have proven to be useful and convenient …

  8. what are the advantage of using iter over list - Python Help ...

    Feb 14, 2023 · numbers = [7 , 4 , 11 , 3] iter ( numbers ) I saw suggested as being the preferred way to iterate over a set of objects. I …

  9. Welcome to Python.org

    Highlights: Python 2.4 ... function tee () that returns N independent iterators that replicate the iterator passed as an argument. A new …

  10. Protocols and structural subtyping — typing documentation

    Iterator [T] ¶ ... See also Iterator. Collection protocols ¶ Many of these are implemented by built-in container types such as list and …