Zac Burns a écrit :
I have a decorator in a class

Why ?

(snip)
The exception that I get when using it as a staticmethod and try to
use it in the baseclass is "TypeError: 'staticmethod' object is not
callable".
When it is not staticmethod the exception I get in the extension class
is is "TypeError: unbound method decorateTest() must be called with C
instance as first argument (got function instance instead)"

Just make it a plain function and you'll be fine.

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to