def func(x, *args, foo=None, bar='spam'): pass func(1, 2, 3, bar='spam')