[PEAK] add_assignment_advisor and legacy decorator syntax

Simon Belak simon.belak at hruska.si
Fri Apr 7 20:12:03 EDT 2006


Can "simple" (single level of nesting) decorators, to be used with 
Python <2.4 compatible syntax, be done using add_assignment_advisor?

   def deco(func):
     def call(*args, **kw):
       ...
     return call

   [deco]
   def foo(x,y):
   ...

or there needs to be a call made inside [] for it to work?

Thanks!

Cheers,
Simon




More information about the PEAK mailing list