def tabulate(*groups):
''' TODO
'''
if len(groups[1:]) == 0 and callable(groups[0]):
# decorator whithout arguments
return groups[0]
else:
row = groups[0]
column = groups[1]
def decorator(fun):
@wraps(fun)
def wrapper(*args, **kwargs):
kernel = fun(*args, **kwargs)
return kernel
return wrapper
return decorator
评论列表
文章目录