Question about Pass-by-object-reference?
wuwei23 at gmail.com
Fri Jul 25 07:20:28 CEST 2014
On 23/07/2014 10:27 AM, Terry Reedy wrote:
> When you call a function, Python binds function parameter names to
> argument objects in the function's local namespace, the same as in name
> assignments. Given
> def f(a, b): pass
> a call f(1, 'x') starts by executing
> a, b = 1, 'x'
> in the local namespace. Nothing is being 'passed'.
The Dude: Look, nothing is passed, here, man.
The Big Lebowski: Nothing is passed? The god damn argument has crashed
into the parameter!
...sorry, it's been a long week.
More information about the Python-list