]> granicus.if.org Git - python/commit
Issue #23571: PyObject_Call(), PyCFunction_Call() and call_function() now
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 6 Mar 2015 22:35:27 +0000 (23:35 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 6 Mar 2015 22:35:27 +0000 (23:35 +0100)
commit4a7cc8847276df27c8f52987cda619ca279687c2
tree9bc7cfee8bf0fc27dc7f14ba4853c935d9f21b4c
parentd81431f587e9eab67db683908548b0ad46847b38
Issue #23571: PyObject_Call(), PyCFunction_Call() and call_function() now
raise a SystemError if a function returns a result and raises an exception.
The SystemError is chained to the previous exception.

Refactor also PyObject_Call() and PyCFunction_Call() to make them more readable.

Remove some checks which became useless (duplicate checks).

Change reviewed by Serhiy Storchaka.
Include/abstract.h
Misc/NEWS
Modules/_io/bufferedio.c
Modules/_sqlite/cursor.c
Objects/abstract.c
Objects/methodobject.c
Python/ceval.c