Issue1539

classification
Title: No readline module usage in raw_input build in function
Type: behaviour Severity: normal
Components: Core Versions: 2.5.1
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: romel
Priority: Keywords:

Created on 2010-01-12.22:58:44 by romel, last changed 2010-01-12.22:58:44 by romel.

Messages
msg5429 (view) Author: Romel R. Sandoval-Palomo (romel) Date: 2010-01-12.22:58:44
When using raw_record build in function, this does not use readline module even if it is available.

After installing GNU readline and Java-Readline using the method described in http://wiki.python.org/jython/ReadlineSetup. The following code has an incorrect behavior:

import readline

while(True):
    command = raw_input("> ")
    if command == "":
        continue
    if command == "q":
        print "bye"
        break
    print "comand: %s" %(command)

Using CPython when you press up key you get the items in readline history. But on Jython you get ^[[A.
History
Date User Action Args
2010-01-12 22:58:44romelcreate