A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-July/026789.html below:

[Python-Dev] Single- vs. Multi-pass iterability

[Python-Dev] Single- vs. Multi-pass iterability [Python-Dev] Single- vs. Multi-pass iterabilityBarry A. Warsaw barry@zope.com
Fri, 19 Jul 2002 13:07:29 -0400
>>>>> "A" == Aahz  <aahz@pythoncraft.com> writes:

    A> The for loop in Python <2.2 has an internal state object.
    A> Iterators are the external manifestation of that state object,
    A> generalized to objects other than sequences.  I'm surprised
    A> that anyone is surprised that the state object gets
    A> mutated/destroyed.  I'm also surprised that people are
    A> surprised about what happens when that state object is coupled
    A> to an inherently mutating object such as file objects.

Well said.
-Barry




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4