-
-
Save esenthil2018/9ab7b74de537d97c522951d2a8df4c5a 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
| import functools | |
| def decor_func(fn): | |
| @functools.wraps(fn) | |
| def wrapper(): | |
| # Write some code before the funtion or after the function | |
| return fn() | |
| return wrapper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment