Skip to content

Instantly share code, notes, and snippets.

@iFreilicht
Created October 24, 2017 14:55
Show Gist options
  • Save iFreilicht/40adede4675f435facfe39ef77cfb614 to your computer and use it in GitHub Desktop.
Save iFreilicht/40adede4675f435facfe39ef77cfb614 to your computer and use it in GitHub Desktop.
Run this file in a python debugger and then stop execution. The final print statement should be reached.
#!/usr/bin/env python3
import time
try:
while True:
print('Sleeping...')
time.sleep(1)
finally:
print('Reached finally clause!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment