def force_debug(fn):
    def wrapped(*args,**kwargs):
        print 'Calling into %s' % fn.__name__
        print 'Arguments: args:%s - kwargs:%s' % (repr(args),repr(kwargs))
        rval = fn(*args,**kwargs)
        print 'Returning from %s' % fn.__name__
        print 'Returning value: %s' % repr(rval)
        return rval
    return wrapped
debugging decorator
dataset/ETHPy150Open Neohapsis/bbqsql/bbqsql/utilities.py/force_debug