Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- def some_func():
- ...
- def _child_process(target):
- try:
- target()
- sys.exit(0)
- except:
- print("Exception")
- sys.exit(1)
- finally:
- print("Out")
- try:
- _child_process(some_func)
- finally:
- print("Out2")
Add Comment
Please, Sign In to add comment