Package org.python.util
Class ReadlineConsole
java.lang.Object
org.python.util.PythonInterpreter
org.python.util.InteractiveInterpreter
org.python.util.InteractiveConsole
org.python.util.ReadlineConsole
Uses: Java Readline
Based on CPython-1.5.2's code module
-
Field Summary
FieldsFields inherited from class org.python.util.InteractiveConsole
CONSOLE_FILENAME
Fields inherited from class org.python.util.InteractiveInterpreter
buffer
-
Constructor Summary
ConstructorsConstructorDescriptionReadlineConsole
(PyObject locals) ReadlineConsole
(PyObject locals, String filename) -
Method Summary
Methods inherited from class org.python.util.InteractiveConsole
getDefaultBanner, interact, interact, push
Methods inherited from class org.python.util.InteractiveInterpreter
interrupt, resetbuffer, runcode, runsource, runsource, runsource, showexception, write
-
Field Details
-
filename
-
-
Constructor Details
-
ReadlineConsole
public ReadlineConsole() -
ReadlineConsole
-
ReadlineConsole
-
-
Method Details
-
raw_input
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.- Overrides:
raw_input
in classInteractiveConsole
-