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

Michael Ressler ressler at cheetah.jpl.nasa.gov
Wed Aug 4 19:21:37 EDT 2004


On 2004-08-04, Delaney, Timothy C (Timothy) <tdelaney at avaya.com> wrote:
> Christopher T King wrote:
>
>> On 4 Aug 2004, Nick Vargish wrote:
>> 
>>> I just don't know where else to voice my opinion on this matter, but
>>> I absolutely hate the new decorator syntax.
>
> @classmethod
> def func (args):
>     @attr = 1
>     pass

I'm just a dumb user of Python - I don't even program for a living, so
there is no reason any of you should listen to me, but this @-syntax
thing makes Python look like Perl. The reason I learned Python was that
Perl looks like line noise to me, and I wanted a scripting language I
could read. Please don't wreck a beautiful, readable language with this
shortcut. Choose a word for it, not a symbol, please.

Mike



More information about the Python-list mailing list