How Decorators REALLY work in Python?

Veröffentlicht am: 15 April 2024
auf dem Kanal: JimShapedCoding
1,824
82

#python #decorators #python @ sign

Decorators (@ sign) could be everywhere in a Python project, but sometimes we might not understand if is it even possible to create a decorator of our own?
In this video, I am going to show step-by-step how it's possible, and it will also clarify how Decorators really work in Python.


00:00 - 03:31 - What problems Decorators solve?
03:32 - 05:20 - Preparing a new Decorator
05:21 - 10:32 - Moving the code inside a Decorator and solving a Decorator bug
10:33 - 15:11 - Why always Nested functions?

📸 Follow me on Instagram for reels or stories on various topics -   / jimshapedcoding  

🎞️ Weekly tips and short lessons on my TikTok -   / jimshapedcoding  

🔴 Args kwargs video that I recommended watching:
   • Python Args Kwargs | How to use it an...  

◼️Link to GitHub of the code snippets:
https://github.com/jimdevops19/codesn...

◼️Specifically to the code of this video:
https://github.com/jimdevops19/codesn...


Auf dieser Seite können Sie das Online-Video How Decorators REALLY work in Python? mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer JimShapedCoding 15 April 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,824 Mal angesehen und es wurde von 82 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!