Calling Python functions from HPy
21 Nov
2020
21 Nov
'20
2:06 p.m.
Hello,
I've opened a GitHub issue to discuss the design of HPy's support for calling Python functions -- https://github.com/hpyproject/hpy/issues/122.
Feedback & comments would be most welcome.
TL;DR:
The current proposal is to implement:
HPy HPy_Call(HPyContext ctx, HPy callable, HPy args, HPy kwargs) // inspired by PyObject_Call
and
HPy HPy_CallArray(HPyContext ctx, HPy *args, HPy_ssize_t nargs, const char **kwnames, HPy *kwargs) // inspired by our experience with HPyArg_ParseKeywords and PyObject_VectorcallDict.
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).
Yours sincerely, Simon Cross
1423
Age (days ago)
1423
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Cross