You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# a decorator to log all function calls
|
|
def log_call(func):
|
|
def wrapper(*args, **kwargs):
|
|
print("{}.{}() - called".format(func.__module__,func.__name__))
|
|
return func(*args, **kwargs)
|
|
return wrapper
|