[Python-Dev] Re: Call for defense of @decorators

Phillip J. Eby pje at telecommunity.com
Fri Aug 6 20:23:39 CEST 2004


At 08:57 AM 8/6/04 -0700, Guido van Rossum wrote:
> > So I spent a little time futzing with python-mode and some of my
> > decorator code, to try some alternative leading characters.  Of the ones
> > that cannot be used in valid Python code today (i.e. no backward
> > compatibility issues), I tried ':', '/', '=', '*', and '|'.
>
>If the community can rally behind one of these, I think that would be
>acceptable.  They all seem arbitrary, but so is the choice of '@'. :-)

How about '%'? This:

     %classmethod

looks more like some kind of pragma or compiler directive to me than '@', 
which looks more like some kind of documentation.



More information about the Python-Dev mailing list