Created
December 9, 2014 18:08
-
-
Save ironpythonbot/2ee2ba4b9dbc68dc8c95 to your computer and use it in GitHub Desktop.
CodePlex Issue #34186 Plain Text Attachments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def f(j): | |
raise Exception("test") | |
for j in range(1000): | |
try: | |
f(j) | |
except: | |
continue | |
print "finished" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Continue(Exception): | |
pass | |
def f(j): | |
raise Exception("test") | |
for j in range(1000): | |
try: | |
try: | |
f(j) | |
except: | |
raise Continue() | |
except Continue: | |
pass | |
print "finished" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment