[issue1153622] eval does not bind variables in lambda bodies correctly

2009-03-31 Thread Jeremy Hylton
Jeremy Hylton added the comment: The current docs cover this case: http://docs.python.org/reference/executionmodel.html#interaction-with-dynamic-features It basically says that code compiled via exec / eval can't access free variables. -- resolution: -> wont fix status: open -> closed

[issue1153622] eval does not bind variables in lambda bodies correctly

2009-02-16 Thread Mattias EngdegÄrd
Mattias EngdegÄrd added the comment: This is not a vague wish at all. The implementation is at odds with the documentation, and in fact nobody has been able to explain just how Python works or should work. Read msg24424 again - it all boils down to explaining why the variable x in def f(x):

[issue1153622] eval does not bind variables in lambda bodies correctly

2009-02-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think this should be closed as rejected. It is a vague wish that Python change its scoping rules in a way that is extremely unlikely and which would require a PEP in any case. I might sometime recheck my suggested doc changes versus the current versions, but

[issue1153622] eval does not bind variables in lambda bodies correctly

2009-02-15 Thread Daniel Diniz
Changes by Daniel Diniz : -- type: -> feature request versions: +Python 2.7 -Python 2.4 ___ Python tracker ___ ___ Python-bugs-list