How does Python (v2.1.1) handle parameter passing? By value or by reference?

Neil Schemenauer nas at python.ca
Thu Aug 23 12:08:48 EDT 2001


Rob van Wees wrote:
> As a newbie to Python, I'm having trouble finding out how the interpreter
> handles parameters that are passed to functions. Sometimes they seem to be
> handled as values and sometimes as references.
> 
> The Python documentation does not seem to answer my question. Could any of
> you help me?

Reset your brain:

    http://effbot.org/guides/python-objects.htm

Cheers,

  Neil




More information about the Python-list mailing list