[Python-Dev] Single- vs. Multi-pass iterability

Greg Ewing greg@cosc.canterbury.ac.nz
Thu, 18 Jul 2002 12:01:39 +1200 (NZST)


> Unfortunately "next" is a pretty common word and it's quite possible
> that such a method name is already in use.

It is -- all my scanners have a "next" method that
does something different from what an iterator's
"next" is supposed to do. Fortunately I haven't
had an urge to make any of them into an iterator
yet.

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	   +--------------------------------------+