Video description
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
Table of contents
Product information
- Title: Build a useful Python decorator
- Author(s):
- Release date: November 2021
- Publisher(s): Pragmatic AI Labs
- ISBN: 50123VIDEOPAIML
You might also like
video
Let's build a Python package!
Build and publish a Python package from scratch! About the Technology About the Video What's Inside …
book
Python One-Liners
Python One-Liners will teach you how to read and write “one-liners”: concise statements of useful functionality …
book
Object-Oriented Python
Object-Oriented Python (OOP) is a paradigm that combines data and code into cohesive units, allowing you …
video
Refactoring in Python LiveLessons: Improving Your Code Video Training
4+ Hours of Video Instruction With more than 4 hours of video instruction, learn how to …