public String raw_input(PyObject prompt) {
try {
return Readline.readline(prompt==null ? "" : prompt.toString());
} catch (java.io.EOFException eofe) {
throw new PyException(Py.EOFError);
} catch (java.io.IOException ioe) {
throw new PyException();
} catch (java.io.UnsupportedEncodingException e) {
throw new PyException();
}
}
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. |