class Entry():
def __init__(self,l=[]):
self.list = l
a = Entry()
b = Entry()
a.list.extend([1,2])
assert a.list!=b.list #assert error
if using
a = Entry([])
b = Entry([])
a.list.extend([1,2])
assert a.list!=b.list #right
What's the difference between above two examples?