Skip to content

Instantly share code, notes, and snippets.

@t-abe
Created May 28, 2014 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t-abe/ad329a8aff55be054339 to your computer and use it in GitHub Desktop.
Save t-abe/ad329a8aff55be054339 to your computer and use it in GitHub Desktop.
class A(object):
def __init__(self, ar = []):
self.ar = ar
a = A()
b = A()
a.ar.append(1)
b.ar.append(2)
print a.ar # => [1, 2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment