[New-bugs-announce] [issue16028] break in finally discards exception
Erik Allik
report at bugs.python.org
Mon Sep 24 20:27:59 CEST 2012
New submission from Erik Allik:
This is either a bug, or a very weird but undocumented feature/caveat.
def fn1():
while True:
try:
raise Exception()
finally:
pass
def fn2():
while True:
try:
raise Exception()
finally:
break # <-----
fn1() # exception, as expected
fn2() # silence!
----------
messages: 171168
nosy: eallik
priority: normal
severity: normal
status: open
title: break in finally discards exception
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16028>
_______________________________________
More information about the New-bugs-announce
mailing list