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 ncoghlan
Recipients benjamin.peterson, brett.cannon, emptysquare, gvanrossum, larry, martin.panter, ncoghlan, pitrou, serhiy.storchaka, vstinner, yselivanov
Date 2015-11-21.03:28:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448076524.42.0.313871175967.issue25612@psf.upfronthosting.co.za>
In-reply-to
Content
Interrogating the thread state like that makes me wonder how this patch behaves in the following scenario:

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

    def yield_coro():
        yield
    coro = yield_coro()
    coro.send(None)

    try:
        raise MainError
    except MainError:
        try:
            coro.throw(SubError)
        except SubError:
            pass
        raise

Also potentially worth exploring is this proposed architectural change from Mark Shannon to move all exception related state out of frame objects: http://bugs.python.org/issue13897

While we couldn't do the latter in a maintenance release, I'd be interested to know what effect it has on this edge case.
History
Date User Action Args
2015-11-21 03:28:44ncoghlansetrecipients: + ncoghlan, gvanrossum, brett.cannon, pitrou, vstinner, larry, benjamin.peterson, martin.panter, serhiy.storchaka, yselivanov, emptysquare
2015-11-21 03:28:44ncoghlansetmessageid: <1448076524.42.0.313871175967.issue25612@psf.upfronthosting.co.za>
2015-11-21 03:28:44ncoghlanlinkissue25612 messages
2015-11-21 03:28:43ncoghlancreate