
Python Decorators and Writing for Real Python
The Real Python Podcast
00:00
Python - Is There a Decorator in Python?
The idea that a function is actually just another object and then can be passed in as an argument or as a parameter into another function is really initially kind of mind blowing for a lot of programmers. So the idea that you could have this prebuilt function, I guess there's some of them that like we talked about property as a decorator that comes, you know, in the Python language itself. There are other ones that are pretty common too that. Guess when you're talking object-oriented, your property and class method and static method. All right. And then you have the new data classes from three seven are implemented as a decorators. Those are decorators.
Transcript
Play full episode