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/026482.html below:

[Python-Dev] Termination of two-arg iter()

[Python-Dev] Termination of two-arg iter() [Python-Dev] Termination of two-arg iter()Barry A. Warsaw barry@zope.com
Sun, 14 Jul 2002 10:58:02 -0400
>>>>> "GvR" == Guido van Rossum <guido@python.org> writes:

    GvR> -1.  IndexError belongs to sequences.  I don't like the idea
    GvR> of raising another exception at all -- we should either keep
    GvR> things the way they are, or continue to raise StopIteration
    GvR> forever once it's been raised.  Other suggestions don't make
    GvR> sense to me.

I think it would be fine to leave the situation as is
(i.e. undefined).  You can use the PEP to encourage a particular
behavior but I'm not sure it needs to be required ("SHOULD" in RFC
terms, but not "MUST").

-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