Wow. That was a great explanation indeed. Thanks a lot. After reading
this, I discovered something like this, and found it pretty insteresting
indeed:
>>> a=["a"]
>>> b=[a]
>>> a.append("c")
>>> b
[['a', 'c']]
>>> a.append("d")
>>> b
[['a', 'c', 'd']]
Apperantly, I can change something (which is mutable) inside a list
without even touching the list itself :)
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor