Class t.f.w._Iterable(Stage):

Part of twisted.flow.wrap View Source View In Hierarchy

Wrapper for iterable objects, pass in a next() function

This wraps functions (or bound methods). Execution starts with the initial function. If the return value is a Stage, then control passes on to that stage for the next round of execution. If the return value is Cooperate, then the chain of Stages is put on hold, and this return value travels all the way up the call stack so that the underlying mechanism can sleep, or perform other tasks, etc. All other non-Instruction return values, Failure objects included, are passed back to the previous stage via self.result

All exceptions signal the end of the Stage. StopIteration means to stop without providing a result, while all other exceptions provide a Failure self.result followed by stoppage.

Split Table into Classes Show Methods in One Table

Line # Kind Name Docs
76 Method __init__ Undocumented
81 Method _yield executed during a yield statement

Inherited from Stage:

Line # Kind Name Docs
170 Method __iter__ Undocumented
173 Method next return current result
Line # Kind Name Docs
76 Method __init__ Undocumented
170 Method __iter__ Undocumented
173 Method next return current result
81 Method _yield executed during a yield statement
def __init__(self, iterable, *trap): (source)
Undocumented
def _yield(self): (source)
executed during a yield statement
API Documentation for Twisted, generated by pydoctor at 2008-10-26 16:12:37.