"Aaron Brady" <[EMAIL PROTECTED]> wrote:

>I think we can conclude that Python passes by reference, since a
>function can modify objects that were passed in to it.

Sort of - if the modification is by "side effect" - so you
can append to a list, for instance.

However, if you use the passed param name on the left
of an assignment statement, you get a new local object.
I think it is this that lies at the root of the confusion.

- Hendrik



--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to