J2 decorator grammar

Peter Maas crgre.znnf at hgvybt.qr
Sun Aug 22 06:58:50 EDT 2004


Robert Brewer schrieb:
> Michael Sparks wrote:
> For that reason (and others), I plan not to promote any form of the word
> "decorate". We can start having that conversation now if you want. ;)

What about

with:
     return ...
     accept ...
     classmethod
def func():
     <function body>

"using" instead of "with" would be equally satisfactory for me. I don't
like "decorate" because it sounds like "attaching some bells and whistles"
or "making it look pretty" which isn't adequate for the meaning of this
syntax.

-- 
Peter Maas, Aachen, Germany, Tel +49-241-38200 e-mail crgre.znnf at hgvybt.qr



More information about the Python-list mailing list