Skip to content

Instantly share code, notes, and snippets.

@sebleier
Created November 5, 2010 03:36
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 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