(via Daily Python-URL)
This document proposes an iteration interface that objects can
provide to control the behaviour of 'for' loops. Looping is
customized by providing a method that produces an iterator object. The iterator provides a 'get next value' operation that produces the next item in the sequence each time it is called, raising an exception when no more items are available.
We discussed iterators here in the past.
This proposal doesn't seem to be very innovative or sexy. Maybe another design iteration is needed
Posted to Python by Ehud Lamm on 5/2/01; 6:14:06 AM