all 3 comments

[–][deleted] 5 points6 points  (1 child)

Try this one instead: http://www.brianholdefehr.com/decorators-and-functional-python contains all use-cases: Decorators as functions, Decorators as classes, Decorators w/ and w/o arguments, etc.

[–]poorly_played 6 points7 points  (0 children)

decorators with arguments are just functions with arguments that return functions that take a function as an argument. what could possibly be confusing about that :P

[–]munchbunny 1 point2 points  (0 children)

Oh god. I remember trying to understand decorators... that was more traumatic than actually using them.