Question about Pass-by-object-reference?
fl
rxjwg98 at gmail.com
Tue Jul 22 21:49:38 EDT 2014
On Tuesday, July 22, 2014 8:27:15 PM UTC-4, 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'.
> --
> Terry Jan Reedy
Thanks, but I don't understand your point yet. Could you give me another example
in which something is passed?
BTW, to a previous reply post. I have learned ':' in regular expression. But I am
still new to Python, I did not realize that it is the same ':' in the string
search/match.
More information about the Python-list
mailing list