Write your Own Decorators

Decorators are really useful. Using them is simple. Writing your own is bit more involved. Learn in this hands-on workshop how to write decorators for many different purposes. The emphasis is on best practices and practical examples.

Tags: Algorithms, Programming, Python

Scheduled on friday 10:30 in room lounge


Mike Müller (@pyacademy)

Mike Müller has been using Python as his primary programming language since 1999. He is a Python trainer and the CEO at Python Academy (www.python-academy.com).

He teaches a wide variety of Python topics including "Introduction to Python", "Python for Scientists and Engineers", "Advanced Python" as well as "Optimization and Extensions of Python Programs".

He is Python Software Verband chairman, a PSF fellow, a PSF community service award holder, and User Group co-founder. He chaired EuroSciPy 2008/2009, PyCon.DE 2011/2012 and EuroPython 2014. He is an organizer of current PyCon.DE and EuroSciPy conferences.


Writing a function that takes a function and returns new, modified function requires solid knowledge how Python functions and closures work. This hands-on workshop takes you step-by-step through the process of writing decorators. Learn how to apply best practices from the start.

You will learn the important principles that you need to fully understand how and why a decorator works the way it does. But this training does not end there. It provides many practical examples that can be used as blueprints for your own decorators.

I have been teaching this material as part of my professional Python trainer career for many years. Therefore, I know the main stumbling blocks that many participants encounter and have refined the material and my training method accordingly.