Hacker News new | past | comments | ask | show | jobs | submit login

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: