Issue 926860: Implementation for PEP 318 (Guido's version) (original) (raw)

Issue926860

Created on 2004-03-31 18:24 by gvanrossum, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
deco.diff gvanrossum,2004-03-31 18:24 Guido's patch (version 1)
Messages (2)
msg45697 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) 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) * (Python committer) 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?
History
Date User Action Args
2022-04-11 14:56:03 admin set github: 40110
2004-03-31 18:24:00 gvanrossum create