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 -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/P7RURGS4ZG4RVKEVFFP36BP6BUU6CBX5/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to