Hi,
Is it ok to add a static inline function to the limited API? Can it
cause ABI issue? Or is it safer to add a regular function? For
example, is it safe to add the following function to the limited API?
static inline PyObject *
_PyObject_CallOneArg(PyObject *func, PyObject *arg)
{
...
return _PyObject_VectorcallTstate(tstate, func, args, nargsf, NULL);
}
Or should it be an opaque definition like the following function?
PyAPI_FUNC(PyObject *) PyObject_CallNoArgs(PyObject *func);
I came to this question while reviewing "Make Vectorcall public" C API:
https://bugs.python.org/issue39245
https://github.com/python/cpython/pull/17893
Victor
--
Night gathers, and now my watch begins. It shall not end until my death.
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/P7RURGS4ZG4RVKEVFFP36BP6BUU6CBX5/
Code of Conduct: http://python.org/psf/codeofconduct/