You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pep-0590.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,7 @@ These functions are ``PyObject *``PyCall_MakeVectorCall(PyObject *obj, PyObject
124
124
Both functions raise an exception if `obj` does not support the relevant protocol.
125
125
126
126
METH_FASTCALL and METH_VECTORCALL flags
127
-
-------------------------
127
+
---------------------------------------
128
128
129
129
A new ``METH_VECTORCALL`` flag is added for specifying ``MethodDef`` structs. It is equivalent to the currently undocumented ``METH_FASTCALL | METH_KEYWORD`` flag.
130
130
The new flag specifies that the function has the type ``PyObject *(*call) (PyObject * self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwname)``
@@ -196,7 +196,7 @@ PEP 580 is specifically targetted at function-like objects, and doesn't support
196
196
or proxies.
197
197
198
198
Other rejected approaches
199
-
-------------------
199
+
-------------------------
200
200
201
201
A longer, 6 argument, form combining both the vector and optional tuple and dictionary arguments was considered.
202
202
However, it was found that the code to convert between it and the old `tp_call` form was overly cumbersome and inefficient.
@@ -207,15 +207,15 @@ However, unless a much more efficient way was found to create and destroy tuples
207
207
then it would be too slow.
208
208
209
209
Acknowledgements
210
-
========================
210
+
================
211
211
212
212
Victor Stinner for developing the original "vector call" calling convention internally to CPython (where is it is called "fast call")
213
213
this PEP codifies and extends his work.
214
214
215
215
Jeroen Demeyer for authoring PEP 575 and PEP 580 which helped motivate this PEP.