Skip to content
Merged
Changes from 1 commit
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
Next Next commit
gh-108494: AC: Document How to use the Limited C API
  • Loading branch information
vstinner committed Aug 29, 2023
commit a8ba2b867d062aea73bdb845f697144af3eed958
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
Comment thread
vstinner marked this conversation as resolved.
----------------------------

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
Comment thread
vstinner marked this conversation as resolved.
Outdated
less efficient depending on the parameters (types, number, etc.).

.. versionadded:: 3.13


.. _clinic-howto-override-signature:

How to override the generated signature
Expand Down