class Foo bar obj Foo obj bar append obj2 Foo print obj2 bar

1
2
3
4
5
6
7
>>> class Foo: bar = []
...
>>> obj = Foo()
>>> obj.bar.append(1)
>>> obj2 = Foo()
>>> print obj2.bar
[1]