I've opened a GitHub issue to discuss the design of HPy's support for
calling Python functions --
Feedback & comments would be most welcome.
The current proposal is to implement:
HPy HPy_Call(HPyContext ctx, HPy callable, HPy args, HPy kwargs)
// inspired by PyObject_Call
HPy HPy_CallArray(HPyContext ctx, HPy *args, HPy_ssize_t nargs, const
char **kwnames, HPy *kwargs)
// inspired by our experience with HPyArg_ParseKeywords and
Along with HPyCallable_Check and later HPy_CallMethod and HPy_CallMethodArray.
Feedback now will prevent me from having to recode or fix things later
(but feedback later is okay too).