class Foo:
var = []
a = Foo()
b = Foo()
a.var.append(1)
print(b.var) # => [1]
>>> class M:
data = []
def __init__(self, value):
self.value = value
>>> x = M(1)
>>> y = M(2)
>>> x.value
1
>>> y.value
2
>>> x.data
[]
>>> y.data
[]
>>> x.data.append(10)
>>> x.data
[10]
>>> y.data
[10]
>>> x.value += 10
>>> x.value
11
>>> y.value
2