Skip to content

Commit

Permalink
pythongh-108494: AC: Document How to use the Limited C API
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Aug 29, 2023
1 parent cf7ba83 commit a8ba2b8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Doc/howto/clinic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,17 @@ blocks embedded in Python files look slightly different. They look like this:
#/*[python checksum:...]*/
How to use the Limited C API
----------------------------

If a C source code contains ``#define Py_LIMITED_API``, the generated C code
will use the :ref:`Limited API <limited-c-api>` to parse arguments. Private
functions are not used in this case and the code parsing arguments can be a
less efficient depending on the parameters (types, number, etc.).

.. versionadded:: 3.13


.. _clinic-howto-override-signature:

How to override the generated signature
Expand Down

0 comments on commit a8ba2b8

Please sign in to comment.