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

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

[Python-Dev] Termination of two-arg iter() [Python-Dev] Termination of two-arg iter()Gordon McMillan gmcm@hypernet.com
Tue, 16 Jul 2002 07:46:19 -0400
On 15 Jul 2002 at 16:51, Ka-Ping Yee wrote:

> ...  An exhausted
> iterator is not the same thing as a freshly-created
> iterator on an empty sequence, 

Right. But a freshly-created iterator on an empty
sequence is exactly like an iterator which will be
exhausted on the next next.

This is something the callng code can easily
detect if it desires, so having the iterator track
it is needless complication.

-- Gordon
http://www.mcmillan-inc.com/

PS to ?ing: Seen Aaron & Cindy lately?




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