Author njs
Recipients asvetlov, benjamin.peterson, brett.cannon, emptysquare, gvanrossum, haypo, larry, martin.panter, ncoghlan, njs, pitrou, serhiy.storchaka, yselivanov
Date 2017-02-17.12:01:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1487332909.48.0.70223680664.issue25612@psf.upfronthosting.co.za>
In-reply-to
Content
I read the patch but I don't understand the logic behind it :-). Why should the value of tstate->exc_type affect whether we save/restore exc_info? Won't this mean that things are still broken for code like:

-----
def f():
    try:
        raise KeyError
    except Exception:
        try:
            yield
        except Exception:
            pass
        raise

try:
    raise NameError
except Exception:
    gen = f()
    gen.send(None)
    gen.throw(ValueError)
-----

?

Conceptually I would have thought the fix would be to remove the '!throwflag' check, but I haven't actually tried it...
History
Date User Action Args
2017-02-17 12:01:49njssetrecipients: + njs, gvanrossum, brett.cannon, ncoghlan, pitrou, haypo, larry, benjamin.peterson, asvetlov, martin.panter, serhiy.storchaka, yselivanov, emptysquare
2017-02-17 12:01:49njssetmessageid: <1487332909.48.0.70223680664.issue25612@psf.upfronthosting.co.za>
2017-02-17 12:01:49njslinkissue25612 messages
2017-02-17 12:01:49njscreate