Skip to content

Commit e108c0b

Browse files
committed
Support old limited C API
Add a PyIter_NextItem() implementation for limited C API 3.3 and older. Add a INIT_FUNC() implementation for limited C API 3.4 and older.
1 parent 183f44b commit e108c0b

6 files changed

Lines changed: 250 additions & 94 deletions

File tree

‎docs/api.rst‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,9 @@ PyThreadState
809809

810810
See `PyThreadState_GetID() documentation <https://docs.python.org/dev/c-api/init.html#c.PyThreadState_GetID>`__.
811811

812-
Availability: Python 3.7. Not available on PyPy.
812+
Availability: Python 3.7.
813+
814+
Not available on PyPy nor on limited C API 3.8 and older.
813815

814816
PyInterpreterState
815817
^^^^^^^^^^^^^^^^^^
@@ -933,7 +935,9 @@ part of the Python C API.
933935

934936
.. c:function:: PyFrameObject* _PyThreadState_GetFrameBorrow(PyThreadState *tstate)
935937

936-
:c:func:`PyThreadState_GetFrame` variant. Not available on PyPy.
938+
:c:func:`PyThreadState_GetFrame` variant.
939+
940+
Not available on PyPy nor with the limited C API 3.8 and older.
937941

938942
Not available on limited C API 3.8 and older.
939943

‎docs/changelog.rst‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Changelog
22
=========
33

4-
* 2026-10-06: Add functions:
4+
* 2026-10-08: Add support for the limited C API 3.2.
5+
* 2026-10-08: Add functions:
56

67
* ``PyImport_ImportModuleAttr()``
78
* ``PyImport_ImportModuleAttrString()``

0 commit comments

Comments
 (0)