Issue1366
Created on 2009-06-03.17:51:07 by undefined, last changed 2009-07-06.14:16:12 by fwierzbicki.
File name |
Uploaded |
Description |
Edit |
Remove |
lambda.py
|
undefined,
2009-06-03.17:51:07
|
example from python 2.5 official tutorial of lambda forms |
|
|
msg4788 (view) |
Author: (undefined) |
Date: 2009-06-03.17:51:07 |
|
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.
|
msg4791 (view) |
Author: Frank Wierzbicki (fwierzbicki) |
Date: 2009-06-04.00:04:36 |
|
Bug confirmed. Like issue 1365, this only happens for interactive mode
I think it does not have to block 2.5.0, but should get addressed for 2.5.1.
|
msg4885 (view) |
Author: Frank Wierzbicki (fwierzbicki) |
Date: 2009-07-06.14:16:12 |
|
Fixed in r6512
|
|
Date |
User |
Action |
Args |
2009-07-06 14:16:12 | fwierzbicki | set | status: open -> closed resolution: accepted -> fixed messages:
+ msg4885 |
2009-06-04 00:04:37 | fwierzbicki | set | priority: normal assignee: fwierzbicki resolution: accepted messages:
+ msg4791 nosy:
+ fwierzbicki |
2009-06-03 17:51:07 | undefined | create | |
|