references ???

Richard Brodie R.Brodie at rl.ac.uk
Fri Nov 2 04:43:38 EST 2001


"Thomas Weidner" <wolf359_ at gmx.net> wrote in message
news:pan.2001.11.01.17.30.27.280.2271 at gmx.net...


> I think anybody here knows what references,like in java,c++ or perl, are.
> How can i use references in python ?

Implicitly. Consider the following:

>>> a = [1,2,3]
>>> b = a
>>> b[1] = 20
>>> print a
[1, 20, 3]







More information about the Python-list mailing list