Monty @ The Python Coding Place @thepythoncodingplace.com · Mar 10

Decorators Series: Day 3 Let's start from the code from the end of Day 2. You define the decorator `store_arguments()` Then you decorate `my_special_function` with the line `my_special_function = store_arguments(my_special_function) ...

1 likes 1 replies

?

Replies

Monty @ The Python Coding Place · Mar 10

But if you've seen decorators in the wild, they almost certainly didn't look like that. There's a short cut for the line that performs the decoration: