org.python.util
Class ReadlineConsole
public class ReadlineConsole
static String | _raw_input(args[] , kws[] )- Central point of dispatch to Readline library for all clients,
whether the console itself or others like cmd.Cmd interpreters.
|
String | raw_input(PyObject prompt)- Write a prompt and read a line.
|
cleanup, eval, exec, exec, execfile, execfile, execfile, get, get, getLocals, initialize, set, set, setErr, setErr, setErr, setLocals, setOut, setOut, setOut |
filename
public String filename
ReadlineConsole
public ReadlineConsole()
Create a new Interpreter with an empty dictionary
ReadlineConsole
public ReadlineConsole(PyObject locals)
Create a new interpreter with the given dictionary to use as its
namespace
ReadlineConsole
public ReadlineConsole(PyObject locals,
String filename)
_raw_input
public static String _raw_input(args[] ,
kws[] ) Central point of dispatch to Readline library for all clients,
whether the console itself or others like cmd.Cmd interpreters.
Both of these uses come through here.
raw_input
public String raw_input(PyObject prompt)
Write a prompt and read a line.
The returned line does not include the trailing newline. When the
user enters the EOF key sequence, EOFError is raised.
This subclass implements the functionality using JavaReadline.
- raw_input in interface InteractiveConsole
Jython homepage