diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-31 09:29:47 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-31 09:29:47 (GMT) |
commit | 26f7b8acdc010801a8fe877376488e0b69a89dad (patch) | |
tree | be0c85b2c6deaeecedc9313c6983f917a6943ce5 /Misc/NEWS | |
parent | fdc995336f3884117f2ede573694b9f0f7b9c11c (diff) | |
download | cpython-26f7b8acdc010801a8fe877376488e0b69a89dad.zip cpython-26f7b8acdc010801a8fe877376488e0b69a89dad.tar.gz cpython-26f7b8acdc010801a8fe877376488e0b69a89dad.tar.bz2 |
Issue #23353: Fix the exception handling of generators in PyEval_EvalFrameEx().
At entry, save or swap the exception state even if PyEval_EvalFrameEx() is
called with throwflag=0. At exit, the exception state is now always restored or
swapped, not only if why is WHY_YIELD or WHY_RETURN. Patch co-written with
Antoine Pitrou.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -50,6 +50,12 @@ Core and Builtins Library ------- +- Issue #23353: Fix the exception handling of generators in + PyEval_EvalFrameEx(). At entry, save or swap the exception state even if + PyEval_EvalFrameEx() is called with throwflag=0. At exit, the exception state + is now always restored or swapped, not only if why is WHY_YIELD or + WHY_RETURN. Patch co-written with Antoine Pitrou. + - Issue #18518: timeit now rejects statements which can't be compiled outside a function or a loop (e.g. "return" or "break"). |