Skip to content

Instantly share code, notes, and snippets.

@samhann
Last active February 1, 2018 10:28
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 samhann/b1dbee623d025fca06fc33852dd4777b to your computer and use it in GitHub Desktop.
Save samhann/b1dbee623d025fca06fc33852dd4777b to your computer and use it in GitHub Desktop.
rough idea.py
def bottom_wrap(function,arguments):
is_in_call = false
new_func = def wrapper_func(arguments):
if is_in_call:
return arguments
else:
is_in_call = true
return function(arguments)
is_in_call=false
return new_func
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment