Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class controlled_execution:
- def __enter__(self):
- set things up
- return thing
- def __exit__(self, type, value, traceback):
- tear things down
- with controlled_execution() as thing:
- some code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement