passing by refference

Christopher A. Craig list-python at ccraig.org
Wed May 14 09:45:28 EDT 2003


aahz at pythoncraft.com (Aahz) writes:

> In article <mailman.1052859920.24799.python-list at python.org>,
> Christopher A. Craig <list-python at ccraig.org> wrote:
> >
> >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.
> 
> But reading
> http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?call-by-reference
> illustrates why there is confusion and why call-by-value is a poor
> phrase; "value of the argument expression" has no meaning in Python.

I apologize.  That's what I meant to say.  I think the next paragraph
makes a lot more sense if you use the right link. <.9 wink>

-- 
Christopher A. Craig <list-python at ccraig.org>
Sitting in a church doesn't make you a Christian any more than sitting in a
garage makes you a car -- Billy Sunday





More information about the Python-list mailing list