Created
November 15, 2011 12:13
-
-
Save jacob414/1366934 to your computer and use it in GitHub Desktop.
Minimal Python expando class
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 Expando(object): | |
def __init__(self, *args, **kw): | |
self.__dict__.update(kw) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment