Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Test(object):
- def __init__(self, array = []):
- self.array = array
- a = Test()
- b = Test()
- a.array.append("Ola senoritas")
- # they both point to same array
- print a.array
- print b.array
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement