Package logilab-common-0 :: Package 36 :: Package 1 :: Module monserver :: Class MonitorInterpreter
[frames] | no frames]

Class MonitorInterpreter

source code


Subclasses InteractiveConsole so that all inputs
and outputs are done through a socket

Instance Methods
 
__init__(self, rfile, wfile)
Constructor.
source code
 
write(self, data)
replace stderr output by writing to wfile
source code
 
raw_input(self, prompt=None)
Provides reading lines through the network
source code

Inherited from code.InteractiveConsole: interact, push, resetbuffer

Inherited from code.InteractiveInterpreter: runcode, runsource, showsyntaxerror, showtraceback

Method Details

__init__(self, rfile, wfile)
(Constructor)

source code 

Constructor.

The optional locals argument will be passed to the InteractiveInterpreter base class.

The optional filename argument should specify the (file)name of the input stream; it will show up in tracebacks.

Overrides: code.InteractiveInterpreter.__init__
(inherited documentation)

write(self, data)

source code 
replace stderr output by writing to wfile

Overrides: code.InteractiveInterpreter.write

raw_input(self, prompt=None)

source code 
Provides reading lines through the network

Overrides: code.InteractiveConsole.raw_input