
April 26, 2011
7:42 p.m.
On Tue, Apr 26, 2011 at 10:10 AM, Christophe Schlick <cschlick@gmail.com>wrote:
@decorator def new_style_repeat_fix(self, *args, **keys): """docstring for decorating function""" print "apply %r on %r" % (self.deco.__name__, self.func.__name__) for n in range(3): self.func(*args, **keys)
I'm sure it's not exactly as you envisioned, but the decorator package provides roughly what you're describing: http://micheles.googlecode.com/hg/decorator/documentation.html#decorator-is-... -- Daniel Stutzbach