Looking for documentation on how Python assigns to function parameters

Steve D'Aprano steve+python at pearwood.info
Wed Mar 1 06:22:20 EST 2017


On Wed, 1 Mar 2017 10:18 pm, Steve D'Aprano wrote:

[...]
> 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.

Never mind, I found it about 30 seconds after hitting send.

https://docs.python.org/3/reference/expressions.html#calls



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



More information about the Python-list mailing list