I have run into what seems to be a major bug, but given my short
exposure to Python is probably just a feature:
running
Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
with file foo.py containing:
== clip here ===
(j)
l=map(fie1,[1,2,3])
map(lambda f:f(), l)
This prints
1
2
3
because each lambda has its own binding of k.
On Nov 30, 2009, at 7:35 AM, Louis Steinberg wrote:
I have run into what seems to be a major bug, but given my short
exposure to Python is probably just a feature:
running
Python