summaryrefslogtreecommitdiff
path: root/Doc/c-api/structures.rst
diff options
context:
space:
mode:
authorJeroen Demeyer <jeroen.k.demeyer@gmail.com>2019-11-12 14:08:00 +0100
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-11-12 05:08:00 -0800
commit9a13a388f202268dd7b771638adbec132449b98b (patch)
tree71496af5abeb5a5737a5f490d8b53dbb91e6ed02 /Doc/c-api/structures.rst
parenta12255d8def0c82560545e66c1be981a447751c3 (diff)
downloadcpython-git-9a13a388f202268dd7b771638adbec132449b98b.tar.gz
bpo-36974: expand call protocol documentation (GH-13844)
CC @encukou I'm also adding Petr Viktorin as contributor for vectorcall in the "what's new" section. https://bugs.python.org/issue36974 Automerge-Triggered-By: @encukou Automerge-Triggered-By: @encukou
Diffstat (limited to 'Doc/c-api/structures.rst')
-rw-r--r--Doc/c-api/structures.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/c-api/structures.rst b/Doc/c-api/structures.rst
index 10352778f3..1bd769f275 100644
--- a/Doc/c-api/structures.rst
+++ b/Doc/c-api/structures.rst
@@ -208,7 +208,8 @@ also keyword arguments. So there are a total of 6 calling conventions:
Extension of :const:`METH_FASTCALL` supporting also keyword arguments,
with methods of type :c:type:`_PyCFunctionFastWithKeywords`.
- Keyword arguments are passed the same way as in the vectorcall protocol:
+ Keyword arguments are passed the same way as in the
+ :ref:`vectorcall protocol <vectorcall>`:
there is an additional fourth :c:type:`PyObject\*` parameter
which is a tuple representing the names of the keyword arguments
(which are guaranteed to be strings)