Message4788

Author undefined
Recipients undefined
Date 2009-06-03.17:51:07
SpamBayes Score 9.76194e-08
Marked as misclassified No
Message-id <1244051467.82.0.294484467458.issue1366@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-06-03 17:51:07undefinedsetrecipients: + undefined
2009-06-03 17:51:07undefinedsetmessageid: <1244051467.82.0.294484467458.issue1366@psf.upfronthosting.co.za>
2009-06-03 17:51:07undefinedlinkissue1366 messages
2009-06-03 17:51:07undefinedcreate