The plain decorator of the last lesson has no settings. Real ones usually do: retry three times, cache at most a hundred results, require this permission. A decorator that takes arguments needs one more layer. This lesson shows that layer, what happens when you stack decorators one above another, and how a class can serve as a decorator when it needs to remember things.
More lessons in Complete Python Programming