|
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).
- Overrides:
generator.Generator.next
- (inherited documentation)
|