J2 decorator grammar

John Marshall John.Marshall at ec.gc.ca
Sun Aug 22 02:17:28 CEST 2004

On Sun, 2004-08-22 at 00:20, Michael Sparks wrote:
> On Fri, 20 Aug 2004, Robert Brewer wrote:
> ...
> > Did you ever fix the scope issue?
> I've fixed the scoping issue.
> I'll clean up the changes I made to get a minimal patch against 2.4a2, and
> then put it somewhere handy. Now that I've got a much clearer idea of how
> the python source tree hangs together adding in the short form should be
> relatively simple.
> The current patch uses "decorate" as the keyword. Changing that of course
> is utterly trivial - it's also something I think *should* be changed.
> The reason for suggesting this change is for one simple reason - python
> makes often use of the idiom "decorate-dosomething-undecorate" - eg in
> sorting. Using decorate would probably clash heavily with people's code.
> The closest word that strikes me that has a similar meaning to
> decorate, using and applying would be "decorating". If anyone has
> a closer suggestion to a short single word meaning "decorate using",
> it'd be great.

One might consider "deco" in place of "decorate" giving
a deco-def block pair if "decorate" is not desirable but
the something like "decorate" is still appropriate. This
would not be entirely out of place given that def (short
for define) already exists. 


More information about the Python-list mailing list