SHARE
TWEET

Untitled

a guest Oct 18th, 2019 113 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def decor(func):
  2.   print('Decorated')
  3.  
  4.   def decorated(*args, **kwargs):
  5.     print('Called')
  6.     return func(*args, **kwargs)
  7.  
  8.   return decorated
  9.  
  10.  
  11. @decor
  12. def a():
  13.   pass
  14.  
  15. @decor
  16. def b():
  17.   pass
  18.  
  19. a()
  20. a()
  21. a()
  22. a()
  23. a()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top