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?
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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?
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.