3 ms·
but what about @foo('baz') def bar: a bit more complicated to understand imho
by camus 14y ago
but what about
@foo('baz')
def bar:
a bit more complicated to understand imho
- falcolas 14y agoOnly a little: bar = foo('baz')(bar) [EDIT]: Basically, whatever function is returned from the decorator line (the function itself, if there is no call, or the results from a function call otherwise) is applied to the decorated function.