I need a function that can correct the arguments of other functions for constant values. for instance
def a(x, y):
return x + y
b = fix(a, x=1, y=2)
Now b should be a function that does not receive any parameters when returning 3 with every call. I am sure python has something similar, but I could not find it.
Thank.
source
share