It looks like the name of the function is automatically passed as argument b:
>>> def test2(a, *, b='test'): ... print(a) ... print(b) ... >>> test2('hello')result:
Output:hello
test
>>>