pythong referencing/aliasing

Kevin Howe khowe at
Fri Apr 25 17:13:21 CEST 2003

How does Python handles variable references/aliases?


a = 1
b = (REF)a
b = 2
print a

In this case, since "b" is just a reference to "a", changes to "b"
automatically change "a".

Does python have this ability?

More information about the Python-list mailing list