]> granicus.if.org Git - python/commit
Issue #23571: _Py_CheckFunctionResult() now gives the name of the function
authorVictor Stinner <victor.stinner@gmail.com>
Sat, 21 Mar 2015 14:04:43 +0000 (15:04 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Sat, 21 Mar 2015 14:04:43 +0000 (15:04 +0100)
commitefde146b0c42f2643f96d00896c99a90d501fb69
treeccb5f7484b0c55bf005ec9b5eb80558d8adb7e46
parent6921c13bbbb2c9695edd87331d98f7aa1e48f7f2
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.
Include/abstract.h
Lib/test/test_capi.py
Modules/_testcapimodule.c
Objects/abstract.c
Objects/methodobject.c
Python/ceval.c