Issue222813
Created on 2000-11-18.19:11:24 by bckfnn, last changed 2000-11-26.12:50:53 by bckfnn.
| Messages | |||
|---|---|---|---|
| msg64 (view) | Author: Finn Bock (bckfnn) | Date: 2000-11-18.19:11:24 | |
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
"""^
>>>
|
|||
| msg65 (view) | Author: Finn Bock (bckfnn) | Date: 2000-11-26.12:50:53 | |
This works in jython2.0 when imported as a module but still does not work when entered at the command prompt. The bug at the prompt is also described in bug 122805, so I close this one. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2000-11-18 19:11:24 | bckfnn | create | |
Supported by Python Software Foundation,
Powered by Roundup