class people:
def __init__(self,a,b):
self.a=a
self.b=
I want self.b to be a struct type as in C/matlab so that self.b.field1=field1, self.b.field2=field2. How to do this? The real reason why I need to do this: later I’m going to have a function within this class returning variables that will be stored in self.b. I could have just returned multiple variables as in self.field1, self.field2 etc but I want to store these into 1 variable to appear neat. Then preferably I want:
self.b=
{
self.b.field1=field1
self.b.field2=field2
...
}