Message8450

Author emcdowell
Recipients emcdowell
Date 2014-05-20.19:22:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400613741.96.0.567813804001.issue2152@psf.upfronthosting.co.za>
In-reply-to
Content
The following examples show that everything works from scripts.  This is a REPL problem.

H:\user\python\jytest>type test1.py
line = raw_input('Prompt? ')
print repr(line)

H:\user\python\jytest>java -jar jython.jar test1.py
Prompt? My text.
'My text.'

H:\user\python\jytest>type test2.py
import sys
sys.stdout.write('Prompt? ')
sys.stdout.flush()
line = sys.stdin.readline()
sys.stdout.write(repr(line))
sys.stdout.write('\n')

H:\user\python\jytest>java -jar jython.jar test2.py
Prompt? My text.
'My text.\n'

H:\user\python\jytest>
History
Date User Action Args
2014-05-20 19:22:21emcdowellsetmessageid: <1400613741.96.0.567813804001.issue2152@psf.upfronthosting.co.za>
2014-05-20 19:22:21emcdowellsetrecipients: + emcdowell
2014-05-20 19:22:21emcdowelllinkissue2152 messages
2014-05-20 19:22:21emcdowellcreate