Skip to content

Instantly share code, notes, and snippets.

@wolendranh
Created March 17, 2016 20:41
Show Gist options
  • Save wolendranh/b7111532ac05d35a605b to your computer and use it in GitHub Desktop.
Save wolendranh/b7111532ac05d35a605b to your computer and use it in GitHub Desktop.
class Observable():
def __init__(self, **kwargs):
self.__dict__ = kwargs
def __repr__(self):
return '{}({})'.format(self.__class__.__name__,
', '.join(':'.join(map(str, x))
for x in self.__dict__.items()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment