]> granicus.if.org Git - python/commit
Issue #18408: PyEval_EvalFrameEx() and PyEval_CallObjectWithKeywords() now fail
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 17 Jul 2013 23:41:08 +0000 (01:41 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 17 Jul 2013 23:41:08 +0000 (01:41 +0200)
commitace47d7efd2e2ab708fdc25936e9a8f85e08b6d3
tree6493906040cfe23cb98638bdb712226479730ad7
parente9af4cfaced93ea9ec37bb448dd57b8c2014bdaf
Issue #18408: PyEval_EvalFrameEx() and PyEval_CallObjectWithKeywords() now fail
with an assertion error if they are called with an exception set
(PyErr_Occurred()).

If these functions are called with an exception set, the exception may be
cleared and so the caller looses its exception.

Add also assertions to PyEval_CallObjectWithKeywords() and call_function() to
check if the function succeed with no exception set, or the function failed
with an exception set.
Modules/_io/bufferedio.c
Python/ceval.c
Python/errors.c