Python Decorators: The Complete Guide

Опубликовано: 15 October 2024
на канале: ArjanCodes
156,183
6.8k

👷 Review code better and faster with my 3-Factor Framework: https://arjan.codes/diagnosis.

Python decorators are a great way to add functionality to your Python functions. In this video, I'll show you what they are, how they work, and some of the most useful decorators you can use in your code.

Git repository: https://github.com/ArjanCodes/2023-de...

🎓 Sign up to Brilliant now and get 20% off the annual subscription: https://brilliant.sjv.io/arjancodes.

🎓 ArjanCodes Courses: https://www.arjancodes.com/courses/

🔖 Chapters:
0:00 Intro
2:20 Object-Oriented decorator
9:40 Functional decorator
17:17 Functools wraps
21:20 Decorators with arguments
24:03 Should you use decorators?
26:21 Outro

#arjancodes #softwaredesign #python