File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
Misc/NEWS.d/next/Core and Builtins Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ This is a pointer to a function with the following signature:
93
93
and they must be unique.
94
94
If there are no keyword arguments, then *kwnames * can instead be *NULL *.
95
95
96
- .. c : macro :: PY_VECTORCALL_ARGUMENTS_OFFSET
96
+ .. data :: PY_VECTORCALL_ARGUMENTS_OFFSET
97
97
98
98
If this flag is set in a vectorcall *nargsf * argument, the callee is allowed
99
99
to temporarily change ``args[-1] ``. In other words, *args * points to
Original file line number Diff line number Diff line change @@ -677,6 +677,18 @@ New Features
677
677
``__dict__ `` and weakrefs with less bookkeeping,
678
678
using less memory and with faster access.
679
679
680
+ * API for performing calls using
681
+ :ref: `the vectorcall protocol <vectorcall >` was added to the
682
+ :ref: `Limited API <stable >`:
683
+
684
+ * :c:func: `PyObject_Vectorcall `
685
+ * :c:func: `PyObject_VectorcallMethod `
686
+ * :const: `PY_VECTORCALL_ARGUMENTS_OFFSET `
687
+
688
+ This means that both the incoming and outgoing ends of the vector call
689
+ protocol are now available in the :ref: `Limited API <stable >`. (Contributed
690
+ by Wenzel Jakob in :gh: `98586 `.)
691
+
680
692
* Added two new public functions,
681
693
:c:func: `PyEval_SetProfileAllThreads ` and
682
694
:c:func: `PyEval_SetTraceAllThreads `, that allow to set tracing and profiling
Original file line number Diff line number Diff line change 1
1
Added the methods :c:func: `PyObject_Vectorcall ` and
2
2
:c:func: `PyObject_VectorcallMethod ` to the :ref: `Limited API <stable >` along
3
- with the auxiliary macro constant :c:macro : `PY_VECTORCALL_ARGUMENTS_OFFSET `.
3
+ with the auxiliary macro constant :const : `PY_VECTORCALL_ARGUMENTS_OFFSET `.
4
4
5
5
The availability of these functions enables more efficient :PEP: `590 ` vector
6
6
calls from binary extension modules that avoid argument boxing/unboxing
You can’t perform that action at this time.
0 commit comments