DEV Community

Discussion on: Do your own Python's @property

Collapse
 
byrro profile image
Renato Byrro

Nice explanation! This is indeed an important feature to understand. I believe "replaced" might not be the best description here, though. Perhaps "wrapped with" would be a better descriptor of what's going on?

Collapse
 
mzsrtgzr2 profile image
MoRoth

thanks mate!
regarding the "replaced"... it looks like "wrapping" indeed but it's important to understand that the value of this class attribute that used to be what you wrote as 'temperature' is replaced with the value of what's returned from the decorator. this is why i used "replaced". i think the word "wrapping" is not strict enough.