File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ The following functions or macros are added to the C API:
136
136
This uses either the vectorcall protocol or ``tp_call `` internally;
137
137
if neither is supported, an exception is raised.
138
138
139
- - ``PyObject *PyCall_MakeVectorCall (PyObject *obj, PyObject *tuple, PyObject *dict) ``:
139
+ - ``PyObject *PyVectorcall_Call (PyObject *obj, PyObject *tuple, PyObject *dict) ``:
140
140
Call the object (which must support vectorcall) with the old
141
141
``*args `` and ``**kwargs `` calling convention.
142
142
This is mostly meant to put in the ``tp_call `` slot.
@@ -216,7 +216,7 @@ To enable call performance on a par with Python functions and built-in functions
216
216
third-party callables should include a ``vectorcallfunc `` function pointer,
217
217
set ``tp_vectorcall_offset `` to the correct value and add the ``Py_TPFLAGS_HAVE_VECTORCALL `` flag.
218
218
Any class that does this must implement the ``tp_call `` function and make sure its behaviour is consistent with the ``vectorcallfunc `` function.
219
- Setting ``tp_call `` to ``PyCall_MakeVectorCall `` is sufficient.
219
+ Setting ``tp_call `` to ``PyVectorcall_Call `` is sufficient.
220
220
221
221
222
222
Performance implications of these changes
You can’t perform that action at this time.
0 commit comments