from functools import partial def foo(a, b, new_name): return new_name * (b + a) bar = partial(foo, c=500)