Colton Myers: Decorators —A Powerful Weapon in your Python Arsenal

Python’s decorators allow you to intercept the definition or execution of a function (or class), and to inject or replace the code with your own. This talk, by Colton Myers, introduces this powerful technique, stepping through its syntax and use in different ways. He also demonstrates use of the wrapt library, which makes it easier and cleaner to create decorators.