Add _PyObject_VaCallFunctionObjArgs() private function

Issue #28915: Similar to _PyObject_CallFunctionObjArgs() but use va_list to
pass arguments.
This commit is contained in:
Victor Stinner 2016-12-09 00:40:33 +01:00
parent dbe28d26b4
commit 7f39c0ccfc
2 changed files with 11 additions and 5 deletions

View file

@ -437,6 +437,12 @@ PyAPI_FUNC(PyObject *) _PyObject_CallMethodId_SizeT(PyObject *obj,
PyAPI_FUNC(PyObject *) PyObject_CallFunctionObjArgs(PyObject *callable,
...);
#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject *) _PyObject_VaCallFunctionObjArgs(
PyObject *callable,
va_list vargs);
#endif
/*
Call the method named 'name' of object 'obj' with a variable number of
C arguments. The C arguments are provided as PyObject *