|
|
|
|
|
by okmjuhb
5715 days ago
|
|
I'm surprised no one has mentioned yet what I regard as the key reason decorators are useful: they maintain the property that you can always find the definition of a function named "foo" by textually searching for "def foo". Lots of alternate syntaxes break that. |
|