Home | Trees | Indices | Help |
|
---|
|
object --+ | PreviewIterator
An iter
wrapper class providing a "previewable"
iterator.
This "preview" functionality allows the iterator to return
successive values from its iterable
object, without actually
mvoving forward itself. This is very usefuly if the next item(s) in an
iterator must be used for something, after which the iterator should
"undo" those read operations, so that they can be read again by
another function.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
|
Return the next item in the Successive calls to preview() will always return the next item from
iterable after the item returned by the previous
preview() or next() call, whichever was called
the most recently. To force the "preview() iterator" to
synchronize with the "next() iterator" (without calling
next() ), use resetPreview() .
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon Jul 23 15:15:29 2007 | http://epydoc.sourceforge.net |