[Python-Dev] Re: Re: Call for defense of @decorators (original) (raw)

Barry Warsaw barry at python.org
Tue Aug 10 05:29:38 CEST 2004


On Mon, 2004-08-09 at 22:44, Greg Ewing wrote:

=?ISO-8859-1?Q?WalterD=F6rwald?= <walter at livinglogic.de>:

> I can't understand why we can't have a new keyword for decorators. > If I remember correctly the introduction of yield didn't result > in such a public outcry. The problem isn't so much the mechanics of adding a keyword, but choosing which keyword to use. The expected uses of decorators are so diverse that no single word would sound right for all of them.

Actually, that's an interesting case study. Myself and others advocated for a keyword other than 'def' for introducing generators. That wasn't how things turned out and in hindsight I think Guido made the right decision. I'm confident the same thing will happen with decorators.

-Barry

-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 307 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/python-dev/attachments/20040809/ca58ff72/attachment-0001.pgp



More information about the Python-Dev mailing list