Python Decorators 3: Turning a function into a class instance

preview_player
Показать описание

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

Sebastian my brother. You're an incredible instructor. Respect from Boston.

Автор

Your way of teaching Python is one of the best I've seen on YouTube! Keep up the great work! 👍😉

bejerky
Автор

Thanks Sebastiaan for a grate way of explaining difficult subject. U R grate

hamidhamidi
Автор

I finally feel that I understand how decorators are constructed. Thanks for your work!

damiendivittorio
Автор

Thank you very much! I'm glad that I've found your channel!

benyaminyakobi
Автор

A very interesting application of decorators, and very elegantly explained.

Thanks!

thebuggser
Автор

You are amazing, Sebastiaan. You make complex concepts so easy to digest. Am curios to know your research and learning methodology.

Explain that one day, please.

eshaankirpal
Автор

very usefull and very interresting to learn

xenatronics
Автор

Thank you ! I've watched a lot of your Python videos, they are very clear and I understand very clearly !
Thanks for your work, hope you do some again :D

raccoonteachesyou
Автор

How would you 'wrap' a class decorator using the functools.wraps decorator demonstrated earlier?
Thanks for the interesting and useful series.

jacobscrackers
Автор

cool feature taught in super cool manner. appreciate it.!

swadhikarc
Автор

wow this is really cool, thanks for your awesome videos super helpful.

peasant
Автор

Good information, thanks.
What about passing the decorated function's arguments to the decorator?

fuanka
Автор

Sir it would be really helpful if you make a video on metaclasses in python..

comprycv
Автор

Great video. I have one question, though. Why do you define instance variables with underscores? For example, self._memory instead of self.memory?

martynasvenckus
Автор

Fantastic man you are the best. Thank you so much.

prashantchouksey
Автор

I want to use Elephant on mulitple functions, how can I make it memorize as well?

parok
Автор

I'm guessing a global statement is preferable when having only one local variable parameter of a module method be unreachable. I'm guessing global statements only become a clutter when there's a lot of local variables that become unreachable in a function. That then could lead to global variables become more of a distraction in reading the code. Or if there's a lot of nesting it could cause more of the same local variables to become unreachable again. Anyways, thanks for the video, I'm just trying to figure in which use case scenario this would be useful in. Because atm, I don't think I need it for a function I'm working on. I think since it is only one local variable that is nested in a try statement using a global variable won't cause any issues really.

brendananderson
Автор

How to do the same with a parametrisable decorator ?

chloed