Message5429

Author romel
Recipients romel
Date 2010-01-12.22:58:44
SpamBayes Score 4.8919e-11
Marked as misclassified No
Message-id <1263337124.85.0.605724370347.issue1539@psf.upfronthosting.co.za>
In-reply-to
Content
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:44romelsetrecipients: + romel
2010-01-12 22:58:44romelsetmessageid: <1263337124.85.0.605724370347.issue1539@psf.upfronthosting.co.za>
2010-01-12 22:58:44romellinkissue1539 messages
2010-01-12 22:58:44romelcreate