Why is functools.partial
used so frequently?
#2326
-
In a fair number of example notebooks and tests, the utility If this is such a common use case (creating executors which accept a smaller number of arguments), why not advise users to use optional positional arguments with sensible defaults? Why the need to create a whole new executor function using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Upon further reflection, I suppose it is a convenient way to specify positional arguments that will stay the same across many executions of a function. |
Beta Was this translation helpful? Give feedback.
Upon further reflection, I suppose it is a convenient way to specify positional arguments that will stay the same across many executions of a function.