Decorator syntax (was Re: PEP 318 - PyFIT comments)

Michele Simionato michele.simionato at gmail.com
Thu Aug 5 10:32:15 EDT 2004


"Delaney, Timothy C (Timothy)" <tdelaney at avaya.com> wrote in message news:<mailman.1162.1091660561.5135.python-list at python.org>...
> Personally, I don't overly like the new syntax - I much preferred def
> func (args) [decorators] - and I would have preferred not to "waste" @
> for them, but I can definitely live with the decision. Some usable
> decorator syntax is IMO more important than none.

This also my opinion, more or less. It is just the "@" which is ugly.
Why not to overload (once more) the colon and write:
 
:classmethod
def func (cls, *args, **kw):
     pass

? Only half serious ...


      Michele Simionato



More information about the Python-list mailing list