Created
March 17, 2016 20:41
-
-
Save wolendranh/b7111532ac05d35a605b to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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