4 lines
95 B
Python

class AttributeSetter:
def __init__(self, name, value):
setattr(self, name, value)