You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.3 KiB
74 lines
1.3 KiB
4 years ago
|
# test deep unwind via break from nested try-except (22 of them)
|
||
|
while True:
|
||
|
print(1)
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
try:
|
||
|
print(2)
|
||
|
break
|
||
|
print(3)
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
except:
|
||
|
pass
|
||
|
print(4)
|