gh-105107: Remove PyCFunction_Call() function by vstinner · Pull Request #105181 · python/cpython
static PyObject* test_pycfunction_call(PyObject *module, PyObject *args) { // Function removed in the Python 3.13 API but was kept in the stable ABI. extern PyObject* PyCFunction_Call(PyObject *callable, PyObject *args, PyObject *kwargs);
PyObject *func, *pos_args, *kwargs = NULL; if (!PyArg_ParseTuple(args, "OO!|O!", &func, &PyTuple_Type, &pos_args, &PyDict_Type, &kwargs)) { return NULL; } return PyCFunction_Call(func, pos_args, kwargs); }
static PyObject* pynumber_tobase(PyObject *module, PyObject *args) {