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.
As I already wrote it would look "fs = [partial(add, i) for i in range(10)]" and it works as expected.
No comments yet.