[Python-Dev] Termination of two-arg iter()
Greg Ewing
greg@cosc.canterbury.ac.nz
Mon, 15 Jul 2002 13:40:41 +1200 (NZST)
Oren Tirosh <oren-py-d@hishome.net>:
> The hypothetical IteratorExhausted is an error.
Calling it IteratorExhaustedError would make this clearer.
But I'm not sure it would be a good idea to complexify
the iterator protocol any more than absolutely necessary,
and thus place an extra burden on all iterator implementors.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg@cosc.canterbury.ac.nz +--------------------------------------+