Agree with property. And just to add to the answer...
# codingconventions
s
Agree with property. And just to add to the answer, even if you wanted it calculated every time, I'd still say that a property would be correct, just with a custom
get()
. As long as the result of
data["theme"]
never changes, that is.