[Python-Dev] Re: @decorators, the PEP and the "options" out there?

Nicolas Fleury nidoizo at yahoo.com
Thu Aug 5 21:39:56 CEST 2004


IxokaI wrote:
> I added "with", although I havn't seen it. "using" would work too. I
> personally do not like punctuation syntax-- I'd really like to see
> something english, even with the hated addition of a keyword. I
> understand Guido's disapproval for "as" so wanted to think of an
> alternate.

Is there ambiguities with the following? (I don't want to propose them, 
but I would like to at least add them to Wiki, even to specify why they 
don't work or why we hate them):

def decorator1(decoratorN(foo))(arg1, argN): pass
def decorator1(decoratorN(foo(arg1, argN))): pass
def(decorator1, decoratorN) foo(arg1, argN): pass

And is the [decorator] list syntax before or after the "def"?

Regards,
Nicolas



More information about the Python-Dev mailing list