[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?