Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions development-tools/clinic/howto.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.. _clinic-howtos:

How-to guides
Expand Down Expand Up @@ -875,6 +875,19 @@
(If your function doesn't support keywords, the parsing function
generated will throw an exception if it receives any.)

* :ref:`vectorcall protocol <python:vectorcall>` support can be added using the
``@vectorcall`` directive. This will output an additional function that can be
used in the :c:member:`~PyTypeObject.tp_vectorcall` slot.
The generated function adds a fair amount of code, so benchmark first
and only use it where it gives a significant speedup.

Current restrictions:

* Optional groups are not supported.
* The type must be immutable (:c:macro:`Py_TPFLAGS_IMMUTABLETYPE`).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are more restrictions than this in the current implementation but I'm steadily working to remove them as I move types.


.. versionadded:: 3.16


How to change and redirect Clinic's output
------------------------------------------
Expand Down
Loading