G
Gabriel Zachmann
It seems to me that the following behavior of python (2.4.1) is inconsistent:
Why was it implemented like this??
Best regards,
Gabriel.
--
/-----------------------------------------------------------------------\
| Any intelligent fool can make things bigger, more complex, |
| or more violent. It takes a touch of genius - and a lot of courage - |
| to move in the opposite direction. (Einstein) |
\-----------------------------------------------------------------------/
[1, 2, 3]>>> a=1
>>> b=a
>>> a+=1
>>> b 1
>>> a 2
>>> a=[1,2]
>>> b=a
>>> b+=[3]
>>> a [1, 2, 3]
>>> b
Why was it implemented like this??
Best regards,
Gabriel.
--
/-----------------------------------------------------------------------\
| Any intelligent fool can make things bigger, more complex, |
| or more violent. It takes a touch of genius - and a lot of courage - |
| to move in the opposite direction. (Einstein) |
\-----------------------------------------------------------------------/