Last active
July 12, 2020 14:15
-
-
Save rec/7a51d19c11a8ec98731744bac08fb7ed to your computer and use it in GitHub Desktop.
dek 1
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
def print_before(func): | |
def wrapped(*args, **kwds): | |
print('Before:', 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