public class InteractiveConsole extends InteractiveInterpreter
Modifier and Type | Field and Description |
---|---|
static String |
CONSOLE_FILENAME |
String |
filename |
buffer
Constructor and Description |
---|
InteractiveConsole() |
InteractiveConsole(PyObject locals) |
InteractiveConsole(PyObject locals,
String filename) |
InteractiveConsole(PyObject locals,
String filename,
boolean replaceRawInput) |
Modifier and Type | Method and Description |
---|---|
static String |
getDefaultBanner() |
void |
interact()
Closely emulate the interactive Python console.
|
void |
interact(String banner,
PyObject file) |
boolean |
push(String line)
Push a line to the interpreter.
|
String |
raw_input(PyObject prompt)
Write a prompt and read a line from standard input.
|
String |
raw_input(PyObject prompt,
PyObject file)
Write a prompt and read a line from a file.
|
interrupt, resetbuffer, runcode, runsource, runsource, runsource, showexception, write
cleanup, close, compile, compile, compile, compile, eval, eval, exec, exec, execfile, execfile, execfile, get, get, getLocals, getSystemState, initialize, set, set, setErr, setErr, setErr, setIn, setIn, setIn, setLocals, setOut, setOut, setOut, threadLocalStateInterpreter
public static final String CONSOLE_FILENAME
public String filename
public InteractiveConsole()
public InteractiveConsole(PyObject locals)
public void interact()
public static String getDefaultBanner()
public boolean push(String line)
public String raw_input(PyObject prompt)