|
|
|
|
|
by joshmaker
3225 days ago
|
|
Yeah, I guess I normally don't deal with enough properties like that for it to be a big deal in my workflow. When it's come up I've generally done something like: class Foo:
bar = 42
def __init__(self, **kwargs):
self.__dict__.update(**kwargs)
But I agree that's not a super robust solution |
|