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.


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.


Domains:

Algorithms

Domain Expertise:

some

Python Skill Level:

basic

Abstract as a tweet:

Learn how to write useful decorators in a hands-on tutorial.