File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ PyAPI_FUNC(PyObject *) PyList_New(Py_ssize_t size);
2929PyAPI_FUNC (Py_ssize_t ) PyList_Size (PyObject * );
3030
3131PyAPI_FUNC (PyObject * ) PyList_GetItem (PyObject * , Py_ssize_t );
32+ #if !defined(Py_LIMITED_API ) || Py_LIMITED_API + 0 >= 0x030d0000
3233PyAPI_FUNC (PyObject * ) PyList_GetItemRef (PyObject * , Py_ssize_t );
34+ #endif
3335PyAPI_FUNC (int ) PyList_SetItem (PyObject * , Py_ssize_t , PyObject * );
3436PyAPI_FUNC (int ) PyList_Insert (PyObject * , Py_ssize_t , PyObject * );
3537PyAPI_FUNC (int ) PyList_Append (PyObject * , PyObject * );
Original file line number Diff line number Diff line change 1+ // Need limited C API version 3.13 for PyList_GetItemRef()
2+ #if !defined(Py_GIL_DISABLED ) && !defined(Py_LIMITED_API )
3+ # define Py_LIMITED_API 0x030d0000
4+ #endif
5+
16#include "parts.h"
27#include "util.h"
38
You can’t perform that action at this time.
0 commit comments