def _getFuncResult(func,args):
'''?????????????????????????
'''
if not isinstance(func,types.MethodType) and not isinstance(func,types.LambdaType):
raise TypeError("func type %s is not a MethodType or LambdaType" % type(func))
if dict == type(args):
actret = func(**args)
elif tuple == type(args):
actret = func(*args)
else:
actret = func(args)
return actret
评论列表
文章目录