Message4706

Author undefined
Recipients undefined
Date 2009-05-22.02:56:41
SpamBayes Score 1.5188833e-08
Marked as misclassified No
Message-id <1242961002.14.0.990774424224.issue1354@psf.upfronthosting.co.za>
In-reply-to
Content
Jython 2.5rc2 (Release_2_5rc2:6341, May 11 2009, 17:07:28) 
[OpenJDK Client VM (Sun Microsystems Inc.)] on java1.6.0_0

double-intended/nested code read by the interpreter through manual entry
or a file read on stdin fails with a syntax error, but read as a file
specified as an argument to jython, it works fine.

$ jython test.py
True
$ jython <test.py
  File "<stdin>", line 3
    if True:
           ^
SyntaxError: mismatched input '' expecting INDENT
  File "<stdin>", line 1
    print 'True'
    ^
SyntaxError: no viable alternative at input '            '
History
Date User Action Args
2009-05-22 02:56:42undefinedsetrecipients: + undefined
2009-05-22 02:56:42undefinedsetmessageid: <1242961002.14.0.990774424224.issue1354@psf.upfronthosting.co.za>
2009-05-22 02:56:41undefinedlinkissue1354 messages
2009-05-22 02:56:41undefinedcreate