Tim Roberts <[EMAIL PROTECTED]> writes:

> Jacek Generowicz <[EMAIL PROTECTED]> 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.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to