Message4787

Author undefined
Recipients undefined
Date 2009-06-03.17:43:40
SpamBayes Score 1.7167434e-10
Marked as misclassified No
Message-id <1244051023.7.0.762740683803.issue1365@psf.upfronthosting.co.za>
In-reply-to
Content
this was reported as an addendum to issue 1354 where the original issue
was resolved, but this specific issue wasn't.

Jython 2.5rc3+ (trunk:6440, Jun 3 2009, 16:56:43) 
[OpenJDK Client VM (Sun Microsystems Inc.)] on java1.6.0_0

$ jython/dist/bin/jython continuation.py
This is a rather long string containing
several lines of text just as you would do in C.
    Note that whitespace at the beginning of the line is significant.

$ jython/dist/bin/jython <continuation.py
  File "<stdin>", line 2
SyntaxError: mismatched character '<EOF>' expecting '"'
  File "<stdin>", line 1
    several lines of text just as you would do in C.\n\
                                                    ^
SyntaxError: mismatched character 'n' expecting '\n'
  File "<stdin>", line 0
SyntaxError: unexpected character after line continuation character
  File "<stdin>", line 1
    significant."
                ^
SyntaxError: no viable alternative at character '\n'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'hello' is not defined

NOTE: same thing happens when typing the text into the interactive
interpreter, but it's easier to demonstrated reading the text on stdin
from a file.

i presume this is a parser problem like issue 1354 since the problem is
only seen when parsing input from the interactive interpreter.
History
Date User Action Args
2009-06-03 17:43:44undefinedsetrecipients: + undefined
2009-06-03 17:43:43undefinedsetmessageid: <1244051023.7.0.762740683803.issue1365@psf.upfronthosting.co.za>
2009-06-03 17:43:43undefinedlinkissue1365 messages
2009-06-03 17:43:42undefinedcreate