passing by refference

Fredrik Lundh fredrik at pythonware.com
Thu May 15 18:15:42 EDT 2003


Joshua Marshall wrote:

> In section 4.6:
>
>   The actual parameters (arguments) to a function call are introduced in
>   the local symbol table of the called function when it is called; thus,
>   arguments are passed using _call by value_ (where the _value_ is always
>   an object reference, not the value of the object).

it's a trick ;-)

if you read that sentence carefully, with the original emphasis left intact,
you'll notice that he says that python uses "_call by value_ where _value_
is not the value of the [argument]".

which clearly isn't the _call-by-value_ that FOLDOC talks about when they
say that "Only the values of the arguments are passed"...

</F>








More information about the Python-list mailing list