Suppose I have a python object x and a string s, how do I set the attribute s on x? So:
x
s
>>> x =
Also works fine within a class:
def update_property(self, property, value): setattr(self, property, value)