Skip to content

Instantly share code, notes, and snippets.

@linnchord
Last active December 19, 2015 05:49
Show Gist options
  • Save linnchord/5906746 to your computer and use it in GitHub Desktop.
Save linnchord/5906746 to your computer and use it in GitHub Desktop.
class DictProxyObject(dict):
"""Container object for datasets: dictionary-like object that
exposes its keys as attributes."""
def __init__(self, **kwargs):
dict.__init__(self, kwargs)
self.__dict__ = self
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment