Created on 2004-03-31 18:24 by gvanrossum, last changed 2004-10-17 19:37 by nnorwitz.
This patch (deco.diff) patches compile.c to recognize
the following form of decorators:
[list_of_expressions]
def func(args):
...
The list of expressions should contain at least one
element and should not be a list comprehension,
otherwise no special treatment is taken. (An empty list
has no effect either way.)
There's a simple test suite, Lib/test/test_decorators.py.
Logged In: YES
user_id=33168
Since the @decorator syntax was chosen, I guess this should
be rejected. There's another patch to handle class
decorators. I'm not sure what to do with that one. Should
it be left open or closed?