Given a function definition
def foo(model, evaluator):
pass
model = ...
evaluator = ...
and a call site like this
foo(model=model, evaluator=evaluator)
I would like to do only
foo(model, evaluator)
as to avoid repetition but then construct keyword arguments within foo for later passing onto **kwargs parameters.
The only way I can think of is
def foo(*args):
**{str(arg): arg for arg in args}
is this ok?