7.2.3 List Objects

PyListObject
This subtype of PyObject represents a Python list object.

PyTypeObject PyList_Type
This instance of PyTypeObject represents the Python list type.

int PyList_Check(PyObject *p)
Returns true if its argument is a PyListObject.

PyObject* PyList_New(int size)

int PyList_Size(PyObject *list)

PyObject* PyList_GetItem(PyObject *list, int index)

int PyList_SetItem(PyObject *list, int index, PyObject *item)

int PyList_Insert(PyObject *list, int index, PyObject *index)

int PyList_Append(PyObject *list, PyObject *item)

PyObject* PyList_GetSlice(PyObject *list, int low, int high)

int PyList_SetSlice(PyObject *list, int low, int high, PyObject *itemlist)

int PyList_Sort(PyObject *list)

int PyList_Reverse(PyObject *list)

PyObject* PyList_AsTuple(PyObject *list)

PyObject* PyList_GET_ITEM(PyObject *list, int i)

int PyList_GET_SIZE(PyObject *list)


guido@python.org