I have a lot of properties, and
class ClassA:
@property
def func1(self):
self.__string1 = "a"
return self.__string1
@property
def func2(self):
self.__string2 = "b"
return self.__string2
def func3(self):
self.__list = [self.func1, self.func2]
seems redundant, especially when there are a lot of properties of a class. Is there a more compact way of doing this without having to list every single property?