Given a function like this:

def func(alpha, beta, gamma, delta=4, *args, **kw):
    ...


which is called in some fashion:

# say
func(1, 2, gamma=3, epsilon=5)

which may or may not be valid:

func(1, 2, alpha=0)

how does Python match up the formal parameters in the `def` statement with
the arguments given in the call to `func`?

I'm looking for official docs, if possible. So far I've had no luck finding
anything.



-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to