Skip to content

Instantly share code, notes, and snippets.

@esenthil2018
Created January 16, 2022 03:15
Show Gist options
  • Select an option

  • Save esenthil2018/9ab7b74de537d97c522951d2a8df4c5a to your computer and use it in GitHub Desktop.

Select an option

Save esenthil2018/9ab7b74de537d97c522951d2a8df4c5a to your computer and use it in GitHub Desktop.
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