4 ms·
One of the great tools to use here is `functools.partial` After that, it's a question of taste. Agreed, callable objects can be useful but if you don't modify
by makapuf 6y ago
One of the great tools to use here is `functools.partial`
After that, it's a question of taste. Agreed, callable objects can be useful but if you don't modify your "self" during function calls, partial funciton aplication might be clearer.