November 2021
Intermediate
18m
English
Learn how to create a Python decorator that can handle exceptions by taking arguments and handling them automatically, saving you time and preventing repetition!
In this video I'll walk you through some of the inner workings of decorators, but most importantly, I'll show you how to build a decorator that takes arguments and handles exceptions automatically, avoiding repetition and making your code more readable!
Topics include:
* Learn how decorators work behind the scenes
* Find the differences between a lazy and eager decorator
* Work with decorators that take arguments and delay execution
Useful links:
* Github repository with sample code
* Get started with Python
Watch now
Unlock full access