Created
March 6, 2013 19:23
-
-
Save j2labs/5102232 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 ModelOptions(object): | |
... def __init__(self, klass, namespace=None, roles={}): | |
... self.klass = klass | |
... self.namespace = namespace | |
... self.roles = roles | |
... | |
>>> mo1 = ModelOptions('foo') | |
>>> mo2 = ModelOptions('bar') | |
>>> mo1.roles['foo'] = 'foooooooo' | |
>>> mo2.roles | |
{'foo': 'foooooooo'} | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment