Fredrik Lundh fredrik at
Tue Dec 13 23:29:23 CET 2005

Xavier Morel wrote:

> Now use a mutable type instead of an immutable int and you'll notice a
> pass-by-reference behavior.

python passes a reference to the value, not a reference to the variable.
call-by-reference usually refers to the latter.  see e.g.


More information about the Python-list mailing list