News for hackers. Stuff that matters.
Re:Python’s lambda is broken by vineetk on Thursday April 09, 2009 @04:45PM (#555127)

    fs = map(lambda i: lambda n: i + n, range(10))
I actually don't think this is all that difficult to explain to newcomers. It may not be the expected behavior the first time they run into it, but it's an instructive example about python scopes and name spaces.

There are no comments on this comment yet.