[New-bugs-announce] [issue37337] Add _PyObject_VectorcallMethod() function
Jeroen Demeyer
report at bugs.python.org
Wed Jun 19 05:35:31 EDT 2019
New submission from Jeroen Demeyer <J.Demeyer at UGent.be>:
To augment the various PyObject_CallMethod...() functions, we add _PyObject_VectorcallMethod() which uses the vectorcall calling convention. To be consistent with the other vectorcall functions, this function is provisional for now.
For efficiency, the "self" argument is NOT passed as separate argument but as part of the usual args array. In other words, the call looks like an unbound method call.
I am also adding _PyObject_VectorcallMethodId() taking a _Py_Identifier* as argument and convenience functions PyObject_CallMethodNoArgs() and _PyObject_CallMethodIdNoArgs(), analogous to the recently added PyObject_CallNoArgs().
----------
messages: 346032
nosy: Mark.Shannon, inada.naoki, jdemeyer, petr.viktorin, vstinner
priority: normal
severity: normal
status: open
title: Add _PyObject_VectorcallMethod() function
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37337>
_______________________________________
More information about the New-bugs-announce
mailing list