EuroPython 2015

Decorators demystified

Do you know what happens every time you use the @ symbol in Python?

In this talk we will see the magic behind the syntactic sugar of the decorators. To understand how they internally work we will see in detail Python’s scopes, namespaces and closures, and finally we will manually apply our own handcrafted decorator.

This talk is an improved version (in English) of the talk I delivered at PyConES 2013 (the feedback was pretty positive): https://www.youtube.com/watch?v=d9-yTnJgcg4

Level: Intermediate. Attendees must have previous knowledge of Python and should be somehow familiar with the ’@’ notation to decorate a function.

The slides of the talk can be downloaded from here: https://speakerdeck.com/pablito56/europython-2015-decorators-demystified

in on Thursday 23 July at 11:45 See schedule

Video


Do you have some questions on this talk?

New comment