3 ms·
It does, and I've always thought it was a bad way to address the problem for that reason. Using `functools.partial` is far clearer and more explicit as a way to
by zahlman 2y ago
It does, and I've always thought it was a bad way to address the problem for that reason. Using `functools.partial` is far clearer and more explicit as a way to bind parameters to a call: https://stackoverflow.com/questions/277922 https://stackoverflow.com/questions/277922
- Terr_ 2y agoYeah: fns = [functools.partial(print, i) for i in range(3)] for f in fns: f()