The 'at' syntax for decorators - Python Refresher

preview_player
Показать описание
In this episode of Python Refresher, we learn about the Python syntax for decorators called 'at' syntax or @ syntax.

In Python, this allows us to define a function and immediately decorate it. It's very succinct and effective, with the benefit of being very readable too.

We've got 4 videos that talk about Python decorators. This is the second video.

-- Links --

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

What im about to ask is probably very basic Python, but why do you return secure_function without brackets? Whats the difference between returning the function with/without brackets " ( ) " ?

JohnnyNiklasson
welcome to shbcf.ru