Python Args By Reference

Grant Edwards grante at visi.com
Tue May 10 21:51:15 EDT 2005


On 2005-05-10, Joseph Garvin <k04jg02 at kzoo.edu> wrote:
> ncf wrote:
>
>>Hello all, I was wondering if there was any way to pass arguments
>>(integer and such) by reference (address of), rather than by value.
>
> All mutable types in python are passed by reference automatically.

So are immutable ones.  It just doesn't matter in that case.


-- 
Grant Edwards                   grante             Yow!  "DARK SHADOWS"
                                  at               is on!! Hey, I think
                               visi.com            the VAMPIRE forgot his
                                                   UMBRELLA!!



More information about the Python-list mailing list