I want to create a class where the attributes of its instance are defined at instantiation.
At first I thought I should do something like this,
class TestData(object): # Example via http://stackoverflow.com/questions/2641484/class-dict-self-init-args
def __init__(self, *args, **kwargs):
super(TestData, self).__init__()
for arg in args:
self.arg = arg
but that would assign all arguments to the same attribute self.arg
and that wont work.