python
class foo:
def __init__(self, x=[]):
self.y = x
a = foo()
a.y.append("123456")
a.y
b = foo()
b.y
a.y.append("98765")
a.y
b.y
Try it !!!! It wasn't quite what I've expected.
Go figure.....
python
class foo:
def __init__(self, x=[]):
self.y = x
a = foo()
a.y.append("123456")
a.y
b = foo()
b.y
a.y.append("98765")
a.y
b.y