[Python-Dev] PEP 318: Decorators last before colon

Jack Diederich jack at performancedrivers.com
Thu Apr 1 00:27:55 EST 2004


On Wed, Mar 31, 2004 at 10:41:00PM -0500, Barry Warsaw wrote:
> On Tue, 2004-03-30 at 16:21, Guido van Rossum wrote:
> > > Another possibility that has been suggested is
> > > 
> > > [decorator] 
> > > def func(arg, arg):
> > 
> > And one that I currently favor.  I'm out of bandwidth to participate
> > on a msg-by-msg basis, but perhaps folks can see if they can come to
> > terms with this solution?
> 
> I don't like it.  It already has a meaning (albeit fairly useless) and
> it doesn't seem obvious from just looking at it that the decorator is
> connected to the following method.  It doesn't taste Pythonic to me.
> 
Me too, but no one contrasted my actual use cases with any in any other
format, so I must be missing something fundamental.
I support an all Guido ticket now and forever, but I don't get the
pulling-the-rabbit-out-of-a-hat decorator syntax anymore than the at-sign
assignment.  Something in the water at PyCon?

-jackdied



More information about the Python-Dev mailing list