[Python-ideas] Unpack of sequences

Nick Coghlan ncoghlan at gmail.com
Fri Aug 31 09:48:24 CEST 2012

On Fri, Aug 31, 2012 at 1:14 AM, Steven D'Aprano <steve at pearwood.info> wrote:
> You're talking about the *argument list* binding operations, yes? The
> stuff that happens when the function is called, not the parameter spec.

A function call binds parameter names to argument values or,
equivalently, argument values to parameter names, so it doesn't really
matter whether you call it "parameter (name) binding" or "argument
(value) binding". It's the same operation, just emphasising either the
source of the names or the source of the values.

I normally talk about binding names to values, since a name can only
refer to one value at a time, but there may be multiple names bound to
any given value. Hence, I prefer to call this process "parameter
binding" - it's the step of assigning a value to each of the parameter
names before the body of the function starts executing.


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Python-ideas mailing list