Skip to content

Instantly share code, notes, and snippets.

@manuelinfosec
Created September 6, 2022 02:14
Show Gist options
  • Save manuelinfosec/8b63e0a71a61d72ec1fa7974066a7b0f to your computer and use it in GitHub Desktop.
Save manuelinfosec/8b63e0a71a61d72ec1fa7974066a7b0f to your computer and use it in GitHub Desktop.
a_stand_alone_function = my_shiny_new_decorator(a_stand_alone_function)
a_stand_alone_function()
# 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