def force_debug(fn):
    '''debugging decorator'''
    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
dataset/ETHPy150Open Neohapsis/bbqsql/bbqsql/utilities.py/force_debug/original