daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Apr 17th, 2018 54 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. from cProfile import runctx
  2. def profile_decorator(fun):
  3.     def wrap(*args, **kw):
  4.         globals()['funct'] = fun
  5.         result = []
  6.         runctx('result.append(funct(*args, **kw))', globals(), locals())
  7.         #return funct(*args, **kw)
  8.         return result[0]
  9.     return wrap
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