Created
November 5, 2010 03:36
-
-
Save sebleier/663612 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> 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