News for hackers. Stuff that matters.
Re:Python’s lambda is broken by ii on Thursday April 09, 2009 @06:02PM (#555252)
I would suggest that the most "Pythonic" way would be to use functools.partial and operator.add from the standard library.

As I already wrote it would look "fs = [partial(add, i) for i in range(10)]" and it works as expected.

There are no comments on this comment yet.