]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45439: _PyObject_Call() only checks tp_vectorcall_offset once (GH-28890)
authorVictor Stinner <vstinner@python.org>
Mon, 11 Oct 2021 22:18:26 +0000 (00:18 +0200)
committerGitHub <noreply@github.com>
Mon, 11 Oct 2021 22:18:26 +0000 (00:18 +0200)
commitfb8f208a4ddb38eedee71f9ecd0f22058802dab1
tree5968ef94c8b27221c2e1fba4e1c27e5b3c8e6053
parent61190e092b8258ede92ac543bb39bad0f7168104
bpo-45439: _PyObject_Call() only checks tp_vectorcall_offset once (GH-28890)

Add _PyVectorcall_Call() helper function.

Add "assert(PyCallable_Check(callable));" to PyVectorcall_Call(),
similar check than PyVectorcall_Function().
Include/cpython/abstract.h
Objects/call.c