[Patches] [ python-Patches-926860 ] Implementation for PEP 318 (Guido's version)

SourceForge.net noreply at sourceforge.net
Wed Mar 31 13:24:00 EST 2004


Patches item #926860, was opened at 2004-03-31 13:24
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=926860&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Guido van Rossum (gvanrossum)
Assigned to: Nobody/Anonymous (nobody)
Summary: Implementation for PEP 318 (Guido's version)

Initial Comment:
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.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=926860&group_id=5470



More information about the Patches mailing list