Browse Source
Issue #23571: _Py_CheckFunctionResult() now gives the name of the function
Issue #23571: _Py_CheckFunctionResult() now gives the name of the function
which returned an invalid result (result+error or no result without error) in the exception message. Add also unit test to check that the exception contains the name of the function. Special case: the final _PyEval_EvalFrameEx() check doesn't mention the function since it didn't execute a single function but a whole frame.pull/9921/head
6 changed files with 93 additions and 12 deletions
-
5Include/abstract.h
-
44Lib/test/test_capi.py
-
22Modules/_testcapimodule.c
-
26Objects/abstract.c
-
2Objects/methodobject.c
-
6Python/ceval.c
Write
Preview
Loading…
Cancel
Save
Reference in new issue