Skip to content

Instantly share code, notes, and snippets.

@sebleier
Created November 5, 2010 03:36
Show Gist options
  • Save sebleier/663612 to your computer and use it in GitHub Desktop.
Save sebleier/663612 to your computer and use it in GitHub Desktop.
>>> class Foo(object):
... a = {}
... b = 'bar'
...
... f = Foo()
... f.a['animal'] = "monkey"
... f.bar = 'not bar'
... g = Foo()
... print g.a, g.b
{'animal': 'monkey'} bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment