Passing by value instead of reference
Jeff Massung
jmassung at magpiesystems.com
Wed May 10 12:29:08 EDT 2000
>>> z=5
>>> id(z)
6532920
>>> def test(x):
print id(x)
>>> test(z)
6532920
Is there a way to pass the value of z and not the address? Thanks.
Jeff
More information about the Python-list
mailing list