2 ms·
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 lik
by joshmaker 9y 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