passing by refference
Aahz
aahz at pythoncraft.com
Wed May 14 00:07:40 EDT 2003
In article <87of2671rm.fsf at charter.net>,
Doug Quale <quale1 at charter.net> wrote:
>
>Python is call-by-value. The values are objects, but the argument
>passing mechanism doesn't say anything about what values are in the
>language.
No, the values are not objects. To the extent that it's call-by-value,
the values are references. That's why so many of us object to using the
phrase call-by-value, because people keep getting the process wrong.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"In many ways, it's a dull language, borrowing solid old concepts from
many other languages & styles: boring syntax, unsurprising semantics,
few automatic coercions, etc etc. But that's one of the things I like
about it." --Tim Peters on Python, 16 Sep 93
More information about the Python-list
mailing list