Skip to content

Instantly share code, notes, and snippets.

@igorgue
Created August 4, 2009 15:06
Show Gist options
  • Save igorgue/161297 to your computer and use it in GitHub Desktop.
Save igorgue/161297 to your computer and use it in GitHub Desktop.
>>> class Foo(object):
... schema = {}
...
>>> f = Foo()
>>> f.schema['roder'] = 'hello'
>>> f.schema['roder']
'hello'
>>> f = Foo()
>>> f.schema.has_key('roder')
True
>>> f.schema['roder']
'hello'
>>> print 'ok, wtf?'
ok, wtf?
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment