Author yselivanov
Recipients benjamin.peterson, gvanrossum, vstinner, yselivanov
Date 2015-11-20.16:29:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448036986.79.0.682793402944.issue25683@psf.upfronthosting.co.za>
In-reply-to
Content
In the below snippet, SubError will propagate with __context__ set to None, instead of MainError.  Maybe this isn't a bug?

    class MainError(Exception): pass
    class SubError(Exception): pass

    def main():
        try:
            raise MainError()
        except MainError:
            yield

    coro = main()
    coro.send(None)
    coro.throw(SubError())
History
Date User Action Args
2015-11-20 16:29:46yselivanovsetrecipients: + yselivanov, gvanrossum, vstinner, benjamin.peterson
2015-11-20 16:29:46yselivanovsetmessageid: <1448036986.79.0.682793402944.issue25683@psf.upfronthosting.co.za>
2015-11-20 16:29:46yselivanovlinkissue25683 messages
2015-11-20 16:29:46yselivanovcreate