Katie Silverio - Decorators, unwrapped: How do they work?

Katie Silverio - Decorators, unwrapped: How do they work?

Decorators are a syntactically-pleasing way of modifying the behavior of functions in Python. However, they can be highly opaque to Python beginners. It took me a while to learn how to write one, and even after I was confident writing my own decorators, felt like they were magical. The goal of this talk is to demystify decorators by methodically stepping through how and why they work. Along the way we'll touch on closures, scopes, and how Python is compiled.



PyCon 2017

May 21, 2017