org.python.core
Class PyIterator
public abstract
class
PyIterator
extends PyObject
An abstract helper class usefull when implementing an iterator object. This
implementation supply a correct __iter__() and a next() method based on the
__iternext__() implementation. The __iternext__() method must be supplied by
the subclass.
If the implementation raises a StopIteration exception, it should be stored
in stopException so the correct exception can be thrown to preserve the line
numbers in the traceback.