Author gvanrossum
Recipients
Date 2004-03-31.18:24:00
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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.
History
Date User Action Args
2007-08-23 15:36:59adminlinkissue926860 messages
2007-08-23 15:36:59admincreate