passing by refference
Christopher A. Craig
list-python at ccraig.org
Tue May 13 17:04:40 EDT 2003
Joshua Marshall <joshway_without_spam at myway.com> writes:
> See
>
> http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?call-by-value
>
> What you describe is call-by-value. There is an implicit copy of the
> arguments passed to a function, though not a deep-copy. The values
> that are being copied are often references.
If you look at
http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?call-by-value
You will see that it also describes Python's calling strategy. Python
always passes the address of an argument variable rather than the
contents of said variable. That assignment will overwrite that
address is not related to the passing strategy.
--
Christopher A. Craig <list-python at ccraig.org>
"There is no subject, however complex, which--if studied with patience
and intelligence--will not become more complex." New Speaker's Handbook
More information about the Python-list
mailing list