2 ms·
> you probably don't ever need to use them By their definition, you don't ever need to use them. They're just a convenient syntactic sugar. @foo def bar()
by anowlcalledjosh 9y ago
> you probably don't ever need to use them
By their definition, you don't ever need to use them. They're just a convenient syntactic sugar.
@foo
def bar():
...
is, as far as I know, exactly equivalent to
def bar():
...
bar = foo(bar)