NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
Q: How can I make a chain of function decorators in Python?
If you are not into long explanations, see [Paolo Bergantino’s answer][2].