我有一个如下的装饰器。
def myDecorator(test_func):
    return callSomeWrapper(test_func)
def callSomeWrapper(test_func):
    return test_func
@myDecorator
def someFunc():
    print 'hello'
我想增强此装饰器以接受如下另一个参数
def myDecorator(test_func,logIt):
    if logIt:
        print "Calling Function: " + test_func.__name__
    return callSomeWrapper(test_func)
@myDecorator(False)
def someFunc():
    print 'Hello'
但是这段代码给出了错误,
TypeError:myDecorator()恰好接受2个参数(给定1个)
为什么不能自动传递函数?如何将函数显式传递给装饰器函数?