3 ms·
I think they're saying: def calling_context: bar(foo) is cleaner. The problem with decorators is that they don't know the calling context, or provide a mec
by tsmarsh 11y ago
I think they're saying:
def calling_context:
bar(foo)
is cleaner.
The problem with decorators is that they don't know the calling context, or provide a mechanism to adapt to that context short of monkey patching.
That said, they are really, really convenient.