Message287995
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... |
|
Date |
User |
Action |
Args |
2017-02-17 12:01:49 | njs | set | recipients:
+ njs, gvanrossum, brett.cannon, ncoghlan, pitrou, vstinner, larry, benjamin.peterson, asvetlov, martin.panter, serhiy.storchaka, yselivanov, emptysquare |
2017-02-17 12:01:49 | njs | set | messageid: <1487332909.48.0.70223680664.issue25612@psf.upfronthosting.co.za> |
2017-02-17 12:01:49 | njs | link | issue25612 messages |
2017-02-17 12:01:49 | njs | create | |
|