def report_stack(method):
    def decorated(self, *args, **kwargs):
        print "-" * 78
        try:
            print "Method: " + method.im_class.__name__ + '.' + method.__name__
        except AttributeError:
            pass
        try:
            print "Function: " + method.func_name
        except __HOLE__:
            pass
        traceback.print_stack()
        print "-" * 78
        return method(self, *args, **kwargs)
    return decorated
        
###############################################################################
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/utils/tracemethod.py/report_stack