Message4788
this was reported as an addendum to issue 1354 where the original issue
was resolved (commit r6397), but this specific issue wasn't.
Jython 2.5rc3+ (trunk:6440, Jun 3 2009, 16:56:43)
[OpenJDK Client VM (Sun Microsystems Inc.)] on java1.6.0_0
$ jython/dist/bin/jython lambda.py
42
43
$ jython/dist/bin/jython <lambda.py
File "<stdin>", line 2
return lambda x: x + n
^
SyntaxError: required (...)+ loop did not match anything at input '<EOF>'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'make_incrementor' is not defined
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'f' is not defined
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'f' is not defined
NOTE: same thing happens when typing the text into the interactive
interpreter, but it's easier to demonstrated reading the text on stdin
from a file.
i presume this is a parser problem like issue 1354 since the problem is
only seen when parsing input from the interactive interpreter. |
|
Date |
User |
Action |
Args |
2009-06-03 17:51:07 | undefined | set | recipients:
+ undefined |
2009-06-03 17:51:07 | undefined | set | messageid: <1244051467.82.0.294484467458.issue1366@psf.upfronthosting.co.za> |
2009-06-03 17:51:07 | undefined | link | issue1366 messages |
2009-06-03 17:51:07 | undefined | create | |
|