| Home | Trees | Indices | Help |
|
|---|
|
|
Iterates through a specified list of values. When the end of the list is reached a generator.GeneratorCompleted exceoption is raised. Last item will be returned until reset is called.
Example:
>>> list = List(None, ['1', '2', '3']) >>> list.getValue() 1 >>> list.next() >>> list.getValue() 2 >>> list.next() >>> list.getValue() 3
|
|||
|
|||
|
|||
|
|||
| string |
|
||
| list |
|
||
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
_list = None
|
|||
_curPos = 0
|
|||
|
|||
Base constructor, please call me!
|
Called to reset the generator to its initial state. OVERRIDE
|
Next value. OVERRIDE From Python docs on next(): The intention of the protocol is that once an iterator's next() method raises StopIteration, it will continue to do so on subsequent calls. Implementations that do not obey this property are deemed broken. (This constraint was added in Python 2.3; in Python 2.2, various iterators are broken according to this rule.) For Generators, please use the GeneratorCompleted exception instead of StopIteration (its a subclass).
|
Return raw value w/o passing through transformer if set. OVERRIDE
|
Get current list of values.
|
Set list of values.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Aug 16 12:17:06 2008 | http://epydoc.sourceforge.net |