Title: Simple pogram fails to parse in Jython 2.5rc3, but parses OK with CPython
Type: behaviour Severity: normal
Components: Core Versions: 25rc4
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fwierzbicki Nosy List: fwierzbicki, olwi
Priority: high Keywords:

Created on 2009-05-27.03:33:27 by olwi, last changed 2009-05-27.16:18:03 by fwierzbicki.

File name Uploaded Description Edit Remove olwi, 2009-05-27.03:33:26 Example program that fails to parse properly
msg4733 (view) Author: (olwi) Date: 2009-05-27.03:33:26
Simple pogram fails to parse in Jython 2.5rc3, but parses and executes
OK with CPython (tested with CPython versions 2.4.1, 2.5.4, 2.6.1)
The program is:
b = False \
##    or True

n = 1
print "b = %r, n = %r" % (b,n)

when run with Jython 2.5rc3 like this (on WinXP Pro SP2):

the resulting output is:
  File "", line 4
    n = 1
SyntaxError: mismatched input 'n' expecting NEWLINE
msg4734 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2009-05-27.13:07:34
reproduced, trailing \ and comments are failing to parse.  Minimal
failing example:

1 \
msg4735 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2009-05-27.14:38:21
Fixed in r6396
msg4736 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2009-05-27.14:55:05
closing, thanks for the report olwi!
Date User Action Args
2009-05-27 16:18:03fwierzbickisetresolution: accepted -> fixed
2009-05-27 14:55:05fwierzbickisetstatus: open -> closed
messages: + msg4736
2009-05-27 14:38:21fwierzbickisetmessages: + msg4735
2009-05-27 13:07:35fwierzbickisetpriority: high
assignee: fwierzbicki
resolution: accepted
messages: + msg4734
nosy: + fwierzbicki
2009-05-27 03:33:27olwicreate