[Python-Dev] Re: PEP318 and @decorators

Terry Reedy tjreedy at udel.edu
Tue Nov 23 08:32:54 CET 2004


"Trevor Blackwell" <tlb at tlb.org> wrote in message 
news:1101161483.55773.352.camel at lab...
>
> I just read the plan for decorators in Python 2.4, and I'm surprised to
> see no discussion

You are a bit late.  Alternatives to @ were discussed last August/September 
in hundreds of posts on pydev and c.l.p/mailing list and summarized on the 
Wiki.  The community selected one which was ably presented to Guido who 
seriously considered it but ultimately rejected it.  End of discussion. 
2.4 is nearly done and ready for release.

> of what seems to me the cleanest answer, to optionally
> write function definitions as assignments:

The issue of multiline anonymous function definitions is mostly 
independent of decorators.  Requests and informal proposals in this regard 
have appeared on c.l.p for years and, I believe, been ignored or informally 
rejected by Guido.  But I don't know that there has been a formal PEP to be 
formally rejected.

I suspect that most developers would prefer that further discussion of this 
issue continue on c.l.p and the corresponding python-list.

Terry J. Reedy





More information about the Python-Dev mailing list