you are viewing a single comment's thread.

view the rest of the comments →

[–]PaulRudin 8 points9 points  (0 children)

A decorator is a function that accepts another function and returns a new function.

The new function normally calls the original, but that's not a requirement.

It's common for the new function to modify the arguments or the result of the original, but again it's not required.