Created
November 25, 2013 22:30
-
-
Save max107/7650073 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
# coding=utf-8 | |
def wrap(func): | |
def wrapped_func(*args, **kwargs): | |
print('hello world') | |
return func(*args, **kwargs) | |
return wrapped_func | |
@wrap | |
def test(*args, **kwargs): | |
pass | |
test() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment