Created
July 12, 2020 09:43
-
-
Save rec/d4d6c9939389145935fbbd7c6b3081c7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# WRONG | |
def print_before(func, label): | |
@functools.wraps(func) | |
def wrapped(*args, **kwds): | |
print(label, func.__name__, args, kwds) | |
return func(*args, **kwds) | |
return wrapped | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment