Issue1358

classification
Title: Simple pogram fails to parse in Jython 2.5rc3, but parses OK with CPython
Type: behaviour Severity: normal
Components: Core Versions: 25rc4
Milestone:
process
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.

Files
File name Uploaded Description Edit Remove
test1.py olwi, 2009-05-27.03:33:26 Example program that fails to parse properly
Messages
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):
C:\jython2.5rc3\jython.bat test1.py

the resulting output is:
-------------------------------------------
  File "test1.py", 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 \
#
2
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!
History
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