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

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

[Python-Dev] Termination of two-arg iter() [Python-Dev] Termination of two-arg iter()Guido van Rossum guido@python.org
Sun, 14 Jul 2002 10:32:36 -0400
> An alternative approach would be to raise an exception when calling
> iter() on an exhausted iterator. This is orthogonal to whatever
> .next() does on such and iterator.

This just adds more complicated rules to no avail.  iter() on an
iterator should return that iterator itself.  The state of that
iterator is what it is.

--Guido van Rossum (home page: http://www.python.org/~guido/)




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