Created
June 5, 2017 18:11
-
-
Save dido18/21d38cd6c32cd9ba8b4746119c082b43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def log_args(func): | |
def inner(*args, **kwargs): | |
print("Called {} with arguments {} {}".format(func.__name__, args, kwargs)) | |
return func(*args, **kwargs) | |
return inner | |
@log_args | |
def muFunc(x,y,z): | |
retunr x+y+z |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment