Re: Calling instance methods from a decorator

2008-05-30 Thread Kirk Strauser
At 2008-05-30T17:40:17Z, "Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > Of course you can get the self - just use the first paramter, because it > *is* self. Self is just a parameter - nothing special. If I blame it on being a long week, can I keep my geek card? -- Kirk Strauser The Day Compan

Re: Calling instance methods from a decorator

2008-05-30 Thread Diez B. Roggisch
Kirk Strauser schrieb: I'm trying to write a decorator that would do something like: def trace(before, after): def middle(func): def inner(*args, **kwargs): func.im_self.debugfunction(before) result = func(*args, **kwargs) func.im_self.debugfunctio