Re:Python’s lambda is broken
by jrockway on Thursday April 09, 2009 @02:29PM
(#554880)
While true, that is not really the issue. The issue is which lexical scope the loop iterator is defined in. In python, it is apparently like this:
It could have been:
In the second case, each loop body would have its own "i". In the first case, they all share the same "i".
[ Parent
| on HN ]
There are no comments on this comment yet.