dependencies
dependencies copied to clipboard
Explain why classes are better that partial functions.
def action(a, b):
def do(c, d):
return ...
return doc
versus
class Action:
a = ...
b = ...
def do(self, c, d):
...
- inner function repr vs attrs repr
- ugly return in the bottom of the line
-
do = partial(action, a, b)mixes configuration and execution arguments in function signature