class Foo:
def __init__(self, values = []):
self.values = values
a = Foo()
b = Foo()
a.values.append(1)
print(b.values) # [1]
print("a", id(a.values))
print("b", id(b.values))
Y2xhc3MgRm9vOgogICAgZGVmIF9faW5pdF9fKHNlbGYsIHZhbHVlcyA9IFtdKToKICAgICAgICBzZWxmLnZhbHVlcyA9IHZhbHVlcwoKYSA9IEZvbygpCmIgPSBGb28oKQoKYS52YWx1ZXMuYXBwZW5kKDEpCgpwcmludChiLnZhbHVlcykgIyBbMV0KCnByaW50KCJhIiwgaWQoYS52YWx1ZXMpKQpwcmludCgiYiIsIGlkKGIudmFsdWVzKSk=