Decorators in Python

preview_player
Показать описание
Decorators dynamically alter the functionality of a function, method, or class without having to directly use subclasses or change the source code of the function being decorated. Using decorators in Python also ensures that your code is DRY(Don't Repeat Yourself). Decorators have several use cases such as:

Authorization in Python frameworks such as Flask and Django

Logging

Measuring execution time

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

Implemented decorator so easily using this video

srinivashiremath
Автор

amazing video and information .. presentation is different

rajeshgopinathan
Автор

Python decorators r easy if u understand and vice versa if u don't

gowrammahm
visit shbcf.ru