What does a @decorator do?

Hello,

i randomly discovered this topic , what the hell does a decorator do ?

i almost got it… :wink: does anyone have some practical example ?

2 Likes

Hi,

some time ago I wrote an article on this subject

use the translate widget

6 Likes

I read this article recently that I thought did a nice job of explaining the concept of decorators in python, with an initial investigation of what you would need to do if they didn’t exist.

2 Likes