Skip to content

Instantly share code, notes, and snippets.

@TimothyFitz
Created March 27, 2013 00:21
Show Gist options
  • Save TimothyFitz/5250539 to your computer and use it in GitHub Desktop.
Save TimothyFitz/5250539 to your computer and use it in GitHub Desktop.
>>> class Foo(object):
... mylist = []
...
>>> Foo.mylist.append("foo")
>>> f = Foo()
>>> f.mylist.append("bar")
>>> f.mylist
['foo', 'bar']
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment