Issue926860
Created on 2004-03-31 18:24 by gvanrossum, last changed 2004-10-17 19:37 by nnorwitz.
| File name |
Uploaded |
Description |
Edit |
Remove |
|
deco.diff
|
gvanrossum,
2004-03-31 18:24
|
Guido's patch (version 1) |
|
|
|
msg45697 - (view) |
Author: Guido van Rossum (gvanrossum) |
Date: 2004-03-31 18:24 |
|
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.
|
|
msg45698 - (view) |
Author: Neal Norwitz (nnorwitz) |
Date: 2004-10-17 19:37 |
|
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?
|
|
| Date |
User |
Action |
Args |
| 2004-03-31 18:24:00 | gvanrossum | create | |
|