Skip to content

Instantly share code, notes, and snippets.

@shivankgtm
Created April 14, 2020 07:14
Show Gist options
  • Save shivankgtm/fcda67c39db585a863fa3f95c693b56c to your computer and use it in GitHub Desktop.
Save shivankgtm/fcda67c39db585a863fa3f95c693b56c to your computer and use it in GitHub Desktop.
@decorator2
@decorator1
def func(arg1, arg2, ...):
pass
#IS EQUIVALENT OF
def func(arg1, arg2, ...):
pass
func = decorator2(decorator1(func))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment