Dot operator magic has me stymied...

2008-10-29 Thread Casey Rodarmor
Hi All, I'm trying to use a class as a decorator for another class method, but it's giving me a lot of grief. Basically, my problem is with the example below: class decorator: ... def __init__(self, function): ... self.function = function ... ... def __call__(self, *args,

Re: Dot operator magic has me stymied...

2008-10-29 Thread Arnaud Delobelle
On Oct 29, 7:46 pm, Casey Rodarmor [EMAIL PROTECTED] wrote: Hi All, I'm trying to use a class as a decorator for another class method, but it's giving me a lot of grief. Basically, my problem is with the example below: class decorator: ...     def __init__(self, function): ...