How can I do this (without init):
class Test(Objekt, UserMixin):
@staticmethod
def Foo():
return 1
my_dict = {
"foo_val": Test.Foo(),
}
I tried:
my_dict = {
"foo_val": lambda: Test.Foo(),
}
But of course the lamda function is stored, not its result!
(this example is simplified)