A decorator is a callable (usually a function though sometimes a class) that accepts either a function or a class and returns a new function or class that wraps around the original one.
Read an article version of this video at https://pym.dev/what-is-a-decorator/
Find more Python screencasts at https://pym.dev/screencasts/
00:00 Decorators accept a function and return a function
01:30 The decorator syntax: using the @ symbol to apply decorators
02:42 Decorator functions, decorator classes, function decorators, and class decorators
03:06 Decorators can be implemented using classes too
03:45 Class decorators decorate classes
04:23 Recap
On this page of the site you can watch the video online What is a decorator in Python? with a duration of hours minute second in good quality, which was uploaded by the user Python Morsels 13 June 2022, share the link with friends and acquaintances, this video has already been watched 572 times on youtube and it was liked by 33 viewers. Enjoy your viewing!