[Tutor] Static Variable in Functions

Yaşar Arabacı yasar11732 at gmail.com
Mon Mar 14 06:55:43 CET 2011

Wow. That was a great explanation indeed. Thanks a lot. After reading 
this, I discovered something like this, and found it pretty insteresting 

 >>> 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 :)

More information about the Tutor mailing list