Sep 18, 2022
It's rare, but peculiarly, I did it in production code last week. I wanted to make sure I didn't decorate functions twice, so I set a variable on the decorated function, and then check it before I decorate.
The standard library also makes a lot of use of it in functools.