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.
Field Summary
static PyString__doc__next
Method Summary
PyObjectnext()
abstract PyObject__iternext__()
PyObject__iter__()

Field Detail

__doc__next

public static PyString __doc__next

Method Detail

next

public PyObject next()

__iternext__

public abstract PyObject __iternext__()

__iter__

public PyObject __iter__()
Jython homepage