Alternative decorator syntax - POLL RESULTS SO FAR - ARE WE DONE?

Anthony Baxter anthonybaxter at gmail.com
Tue Aug 24 22:29:04 EDT 2004


On 24 Aug 2004 13:53:58 -0700, Jess Austin <jess.austin at gmail.com> wrote:
> The natural short version of "decorate" would be "dec" and there is
> sort of a natural parallelism with "def" there.  I hesitate to
> nominate it because it _feels_ like a word that at least ten people on
> c.l.py will detest.

'dec' is also going to clash with a lot of code that uses that. That's going
to be a problem with pretty much any short keyword.

> Maybe "decor"?  It isn't any longer than "class", and I think we can
> predict it will be typed less than 1/10 as often.  But this reasoning
> could also excuse "decorate", so I'll stick with that.  I'm also open
> to any transitive verb that can be designated to mean _exactly_ what
> "decorate" means now.

decor is better - I can't find any uses of it in the Python code I just grepped
over...



More information about the Python-list mailing list