Last active
July 12, 2020 09:42
-
-
Save rec/24cc48111a77b8ef829d80c3f8523a62 to your computer and use it in GitHub Desktop.
dek 2
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
import functools | |
def print_before(func): | |
@functools.wraps(func) | |
def wrapped(*args, **kwds): | |
print(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