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 pitrou
Recipients amaury.forgeotdarc, ddvoinikov, georg.brandl, pitrou
Date 2008-05-24.14:13:44
SpamBayes Score 0.06816745
Marked as misclassified No
Message-id <1211638434.34.0.538891904198.issue2833@psf.upfronthosting.co.za>
In-reply-to
Content
Just found another funny example. This one fails also before r62847.

def except_yield():
    try:
        raise Exception("foo")
    except:
        yield 1
        raise
list(except_yield())

In Py3k (with or without r62487), we get "RuntimeError: No active
exception to reraise".
In Python 2.5, we get "TypeError: exceptions must be classes, instances,
or strings (deprecated), not NoneType".
History
Date User Action Args
2008-05-24 14:14:01pitrousetspambayes_score: 0.0681674 -> 0.06816745
recipients: + pitrou, georg.brandl, amaury.forgeotdarc, ddvoinikov
2008-05-24 14:13:56pitrousetspambayes_score: 0.0681674 -> 0.0681674
messageid: <1211638434.34.0.538891904198.issue2833@psf.upfronthosting.co.za>
2008-05-24 14:13:52pitroulinkissue2833 messages
2008-05-24 14:13:48pitroucreate