Another option is to use my own decorator module (http:// pypi.python.org/pypi/decorator):
from decorator import decorator
@decorator
def d(func, *args):
print 3
return func(*args)
@d
def f(a, b):
print a + b
f(5, 7)
--
http://mail.python.org/mailman/listinfo/python-list
