Skip to content

Instantly share code, notes, and snippets.

@manuelinfosec
Created September 6, 2022 02:08
Show Gist options
  • Save manuelinfosec/2cce8c79a06b1e7f57afa47bb098ddd8 to your computer and use it in GitHub Desktop.
Save manuelinfosec/2cce8c79a06b1e7f57afa47bb098ddd8 to your computer and use it in GitHub Desktop.
a_stand_alone_function_decorated = my_shiny_new_decorator(a_stand_alone_function)
a_stand_alone_function_decorated()
# Outputs:
# Before the function runs
# I am a stand alone function, don't you dare modify me
# After the function runs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment