Skip to content

Instantly share code, notes, and snippets.

@Jay-flow
Last active September 10, 2020 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jay-flow/bed1be59fd4a8a723bf9de0cbc4c2765 to your computer and use it in GitHub Desktop.
Save Jay-flow/bed1be59fd4a8a723bf9de0cbc4c2765 to your computer and use it in GitHub Desktop.
decorator_example
def decorator_func(input_func):
def wrapper_func():
return input_func()
return wrapper_func
def example():
print("I'm example function")
decorated_example = decorator_func(example)
decorated_example()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment