Message64

Author bckfnn
Recipients
Date 2000-11-18.19:11:24
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I found jpython can't parse the following simple statement:

print """
\"""^
"""

cpython can parse the same statement and produce the correct result. I used both
jpython 1.0.3 and 1.1beta3 to test the same statement. Both versions report the
following error:

Traceback (innermost last):
  (no code object) at line 0
  File "z.py", line 2
    \"""^
          ^
SyntaxError: invalid syntax

Is there any fix out there? I found the error when I noticed that
jpython1.1beta3 can't compile the file pyclbr.py inside pylib152c.jar. I looked
into the file and find the above problem.

Kiyo

***************************************************
(from Jim)

Here is a reproduced session:

JPython 1.1beta3 on java1.2.2 (JIT: null)
Copyright (C) 1997-1999 Corporation for National Research Initiatives
>>> from aspectdv.explorepnp import bugtest
Traceback (innermost last):
  File "<console>", line 1, in ?
  File "c:\pnp\src\com\aspectdv\explorepnp\bugtest.py", line 4
        \"""^
              ^
SyntaxError: invalid syntax
>>>

And the successful Python 1.5.2 session:

Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import bugtest

"""^

>>>

History
Date User Action Args
2008-02-20 17:16:39adminlinkissue222813 messages
2008-02-20 17:16:39admincreate