Trees | Indices | Help |
---|
|
object --+ | Interpreter --+ | code.InteractiveInterpreter --+ | ManholeInterpreter
Interactive Interpreter with special output and Deferred support.
Aside from the features provided by code.InteractiveInterpreter
, this class captures
sys.stdout output and redirects it to the appropriate location (the
Manhole protocol instance). It also treats Deferreds which reach the
top-level specially: each is formatted to the user with a unique
identifier and a new callback and errback added to it, each of which will
format the unique identifier and the result with which the Deferred fires
and then pass it on to the next participant in the callback chain.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
numDeferreds = 0
|
|||
buffer = None hash(x) |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Push a line to the interpreter. The line should not have a trailing newline; it may have internal newlines. The line is appended to a buffer and the interpreter's runsource() method is called with the concatenated contents of the buffer as source. If this indicates that the command was executed or invalid, the buffer is reset; otherwise, the command is incomplete, and the buffer is left as it was after the line was appended. The return value is 1 if more input is required, 0 if the line was dealt with in some way (this is the same as runsource()).
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sun May 10 13:41:01 2015 | http://epydoc.sourceforge.net |