Created
January 17, 2022 07:49
-
-
Save esenthil2018/7ee7447faef531c4da2552869392e815 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