Message431

Author nobody
Recipients
Date 2001-10-26.22:14:11
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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
>>>
History
Date User Action Args
2008-02-20 17:16:55adminlinkissue475445 messages
2008-02-20 17:16:55admincreate