Message256173
Today I spent 30 minutes because of weird behavior of `finally` when it has a `break` statement inside of it. (The behavior is that the exception gets suppressed, which I found unexpected.) I think this behavior should be documented.
Example:
c:\Users\Administrator\Desktop>cat s.py
for x in [1, 2, 3]:
try:
1/0
finally:
break
print(x)
c:\Users\Administrator\Desktop>c:\Python34\python.exe s.py
1 |
|
Date |
User |
Action |
Args |
2015-12-10 14:08:20 | cool-RR | set | recipients:
+ cool-RR, docs@python |
2015-12-10 14:08:20 | cool-RR | set | messageid: <1449756500.07.0.727119628461.issue25832@psf.upfronthosting.co.za> |
2015-12-10 14:08:19 | cool-RR | link | issue25832 messages |
2015-12-10 14:08:19 | cool-RR | create | |
|