hi, i need to trap all method calls in a class in order to update a counter which is increased whenever a method is called and decreased whenever method returns. in order to that i am trying to write a decorator for all the methods.
see the code here with error. ------- http://codepad.org/2w7JVvDB ---- any suggestions? any other better way of doing it?
-- http://mail.python.org/mailman/listinfo/python-list