Decorators are not only for functions. The same idea works on a class: a function takes a class, and returns it, changed or not. This lesson shows that, and then collects the decorators that turn up most often in real programs, with the habits that keep them easy to live with. By the end you can read most decorators you meet, and write the common ones with confidence.
More lessons in Complete Python Programming