I need to call the function notice
twice. And here notice
function calls a decorator.
def decorator(func):
def wrapper(*args, **kwargs):
# print 'first' or 'second' here.
return func(*args, **kwargs)
return wrapper
@decorator
def notice():
print("call")
notice()
notice()
Here what I would like to print is
first call
second call
Is it possible?