Python Intermediate Tutorials - Decorators

preview_player
Показать описание
In this video we study a Python design pattern called decorators.
Decorators make use of first-class-functions Python.
Decorators allow you to "decorate" or modify a function.
It's a pretty interesting concept that could be useful in many situations.
Examples of how they can be used are included in the second half of the video.

Python decorators with examples.

I enjoy comments!

Follow me on social media below:

Facebook




Here is my reddit account for sharing links:

Here is my twitter account for programming:


Here is my github account:

Рекомендации по теме
Комментарии
Автор

amazing teaching skill I will watch all the videos and become a successful programmer

digitworks
Автор

I have seen many videos on decorators. But I can say that this is the first time I grasp the idea. Thank again for your hard work!! It is pretty valuable for us who want to learn!!

akiratoriyama
Автор

Thank you very much for this video! :) It was helpful and educational for me!

tymothylim
Автор

Why is the print statement of decorator function printed out after the print statement of the decorated function (my_longer_function)? This happens in timestamp 5:38.

nononnomonohjghdgdshrsrhsjgd