Skip to content

Instantly share code, notes, and snippets.

@igorgue
Created August 4, 2009 15:59
Show Gist options
  • Save igorgue/161321 to your computer and use it in GitHub Desktop.
Save igorgue/161321 to your computer and use it in GitHub Desktop.
>>> class Foo(object):
... s = "string"
...
>>> f = Foo()
>>> f.s
'string'
>>> f.s = "another string"
>>> f.s
'another string'
>>> f = Foo()
>>> f.s
'string'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment