Understanding decorators [Python tutorial]

preview_player
Показать описание
A video on understanding python decorators, including the property decorator in classes.

(You also get lots of perks)

Social stuff:

Timestamps:
00:00 - Intro & Decorator theory
03:34 - Function basics
08:28 - Basic decorator
21:03 - Decorators with function arguments
26:44 - Decorators with parameters
31:48 - Decorators & classes with @property

Project files:

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

The way you've explained this topic is truly impressive.

ghazalehabadian
Автор

You are literally theeee best, now and only I can understand decorators, I absolutely love your approach of explaining things slowly with pure logic .keep it up!!!!

EyadKotb-zftf
Автор

The way you describe concepts it's soo easy too understand, really appreciate your works...

durandas
Автор

This is really a master piece . I never visualized the actual flow of decorator anywhere. Thank you very much.

sachinnerkar
Автор

Very logically presented from a senior hobbyist.

Chaplainelmo
Автор

I've been programming python for 3.5 years and for the time being I got away with never using decorator. Every time I saw someone use decorators it confused me so much. Thanks for explaining a concept that seemed so daunting and making it actually easy :) It's really helpful

Yassinius
Автор

For the first time in my life I got to understand decorators cuz of you sir. Thanks a lot

HowlingDeath
Автор

Dude, you are describing it so well and brilliant ...that it's really hard and difficult not to understand it 👍

michaelmueller
Автор

this is a really good tutorial. Its well explained and well thought out. Well done!! :)

MrSemi-Colon
Автор

woow i always wondered how decorators can accept parameters, now i got it. i think even procedurally generated decorators are possible

fizipcfx
Автор

Pythontutor is a good help to follow this video

horaciormartinez
Автор

wow! that is a lot of tutorials in a month!

juicedelemon
Автор

excellent lesson, very simple and easy to understand. Thank you so much

ygcjayalal
Автор

Once again, It's a great video on this channel.🎉❤

sonu-jangir
Автор

Great...keep doing this...your explanation is really have cleared my OOPs concepts very clearly ❤️

MrMukulpandey
Автор

I didn't finish the last video yet, I can't keep up the pace 😫 😪
But thank you so much for this content ❤️

YassFreeks
Автор

I went with Star Trek theme for decorators

def replicator(function):

def food(food_params):
print(" replicator() -> food() ")
function(food_params)
print(" food replicated ")
return food

@replicator
def mealtime(func_params):
print(func_params)

mealtime("sandwich")

terraflops
Автор

A decorator is a higher order function that utilizes the property of closures, and helps dynamically add functionality to a function without altering any of it's own functionality. Learnt this from the great youtuber Corey Schafer.

pranavnyavanandi
Автор

18:31 why didn’t it print “Function” twice??? func() was called once in decorator and duration_decorator wrapper function.

Can somebody explain this.

shinobi
Автор

Can you make a video about async programming with asyncio/await syntax?

kyngk