This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eallik
Recipients eallik
Date 2012-09-24.18:27:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348511279.94.0.440526778313.issue16028@psf.upfronthosting.co.za>
In-reply-to
Content
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!
History
Date User Action Args
2012-09-24 18:28:00ealliksetrecipients: + eallik
2012-09-24 18:27:59ealliksetmessageid: <1348511279.94.0.440526778313.issue16028@psf.upfronthosting.co.za>
2012-09-24 18:27:59ealliklinkissue16028 messages
2012-09-24 18:27:59eallikcreate