Skip to content

Commit a8ba2b8

Browse files
committed
gh-108494: AC: Document How to use the Limited C API
1 parent cf7ba83 commit a8ba2b8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Doc/howto/clinic.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,6 +1905,17 @@ blocks embedded in Python files look slightly different. They look like this:
19051905
#/*[python checksum:...]*/
19061906
19071907
1908+
How to use the Limited C API
1909+
----------------------------
1910+
1911+
If a C source code contains ``#define Py_LIMITED_API``, the generated C code
1912+
will use the :ref:`Limited API <limited-c-api>` to parse arguments. Private
1913+
functions are not used in this case and the code parsing arguments can be a
1914+
less efficient depending on the parameters (types, number, etc.).
1915+
1916+
.. versionadded:: 3.13
1917+
1918+
19081919
.. _clinic-howto-override-signature:
19091920

19101921
How to override the generated signature

0 commit comments

Comments
 (0)