]> granicus.if.org Git - python/commit
Issue #23353: Fix the exception handling of generators in PyEval_EvalFrameEx().
authorVictor Stinner <victor.stinner@gmail.com>
Sat, 31 Jan 2015 09:29:47 +0000 (10:29 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Sat, 31 Jan 2015 09:29:47 +0000 (10:29 +0100)
commit26f7b8acdc010801a8fe877376488e0b69a89dad
treebe0c85b2c6deaeecedc9313c6983f917a6943ce5
parentfdc995336f3884117f2ede573694b9f0f7b9c11c
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.
Lib/test/test_generators.py
Misc/NEWS
Python/ceval.c