Mercurial > cpython-lru_cache-weakref
comparison Python/_warnings.c @ 84704:48a869a39e2d
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.
| author | Victor Stinner <victor.stinner@gmail.com> |
|---|---|
| date | Thu, 18 Jul 2013 01:41:08 +0200 |
| parents | 9213313b1a6f |
| children | df2fdd42b375 |
comparison
equal
deleted
inserted
replaced
| 84703:a2214ab0812e | 84704:48a869a39e2d |
|---|
