Message431
The following three-line python program works as
expected when stored in a file and run through python:
for t in range(10):
# a comment
print t
However the Jython interpreter, even in version 2.1a3,
chokes on the comment inside the block:
$ ./jython < bug.py
Jython 2.1a3 on java1.3.1_01 (JIT: null)
Type "copyright", "credits" or "license" for more
information.
>>> ... Traceback (innermost last):
(no code object) at line 0
File "<console>", line 2
# a comment
^
SyntaxError: invalid syntax
>>> Traceback (innermost last):
File "<console>", line 1, in ?
NameError: t
>>>
|
|
| Date |
User |
Action |
Args |
| 2008-02-20 17:16:55 | admin | link | issue475445 messages |
| 2008-02-20 17:16:55 | admin | create | |
|