daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Dec 10th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import sys
  2.  
  3.  
  4. def some_func():
  5.     ...
  6.  
  7.  
  8. def _child_process(target):
  9.     try:
  10.         target()
  11.         sys.exit(0)
  12.     except:
  13.         print("Exception")
  14.         sys.exit(1)
  15.     finally:
  16.         print("Out")
  17.  
  18.  
  19. try:
  20.     _child_process(some_func)
  21. finally:
  22.     print("Out2")
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