This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Implementation for PEP 318 (Guido's version)
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum, nnorwitz
Priority: normal Keywords: patch

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:03adminsetgithub: 40110
2004-03-31 18:24:00gvanrossumcreate