I'm trying to create a new dictionary based on an existing dictionary within the same class. Is it possible to reference one from field member in the declaration of another field member ? Does it require any special decorator for the first dict ?
class Foo:
dict1 = {"a": 1, "b": 2, "c": 3}
dict2 = {i: Foo.dict1[i] * 10 for i in Foo.dict1}
print(Foo.dict2)