News for hackers. Stuff that matters.
Re:Understanding Python Decorators by omaranto on Sunday August 07, 2011 @06:50PM (#2858031)
It only feels wrong because you think of them as decorators without arguments and decorators with arguments: they really are decorators stored in variables and decorators computed by function calls. :)
Re:Understanding Python Decorators by rbonvall on Monday August 08, 2011 @12:13AM (#2858737)
That's exactly how I see it. One could have also, for example, lists of decorators,

    @a[1]
    def f(x):
        ...