here is code

def make():
    def jit(sig):
        def wrap(function):
            sig=sig[0] # unbound local error, if change to sig='' would be just 
            return function 
        return wrap
    return jit
def f():

It is strange that the interpreter complain about unbound local error. 
please give me some suggestion, thanks!
Ps: I am using python 2.7
                                  Liu Zhenhai


发自我的 iPhone

Reply via email to