Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitffa5d10

Browse files
committed
PEP 590: Fix formatting error.
1 parentb47cd72 commitffa5d10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎pep-0590.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ These functions are ``PyObject *``PyCall_MakeVectorCall(PyObject *obj, PyObject
124124
Both functions raise an exception if `obj` does not support the relevant protocol.
125125

126126
METH_FASTCALL and METH_VECTORCALL flags
127-
-------------------------
127+
---------------------------------------
128128

129129
A new ``METH_VECTORCALL`` flag is added for specifying ``MethodDef`` structs. It is equivalent to the currently undocumented ``METH_FASTCALL | METH_KEYWORD`` flag.
130130
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
196196
or proxies.
197197

198198
Other rejected approaches
199-
-------------------
199+
-------------------------
200200

201201
A longer, 6 argument, form combining both the vector and optional tuple and dictionary arguments was considered.
202202
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
207207
then it would be too slow.
208208

209209
Acknowledgements
210-
========================
210+
================
211211

212212
Victor Stinner for developing the original "vector call" calling convention internally to CPython (where is it is called "fast call")
213213
this PEP codifies and extends his work.
214214

215215
Jeroen Demeyer for authoring PEP 575 and PEP 580 which helped motivate this PEP.
216216

217217
References
218-
========================
218+
==========
219219

220220
.. [1]Calling conventions
221221
https://en.wikipedia.org/wiki/Calling_convention

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp