Tim Roberts <ti**@probo.com> writes:
Jacek Generowicz <ja**************@cern.ch> wrote:
I have some code, which makes copious use of the @decorator syntax
I'm very curious to know what kind of application you are writing in which
"copious use of the @decorator syntax" actually solved a problem
productively.
An application in which, before python2.4, I used to have lots of code
that looked like
def somefun(...):
...
somefun = somedecorator(somefun)
:-)
It's not interesting to discuss what "somedecorator" actually
represents. But being able to see that the function is decorated right
next to the "def", as opposed to having to look beyond the end of the
definition certianly makes a significant difference to me.