4 ms·
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
by ii 18y ago
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.