deimos.python.tupleobject

Mirror tupleobject.h

Another generally useful object type is a tuple of object pointers. For Python, this is an immutable type. C code can change the tuple items (but not their number), and even use tuples are general-purpose arrays of object references, but in general only brand new tuples should be mutated, not ones that might already have been exposed to Python code.

Members

Functions

PyTuple_Check
int PyTuple_Check(PyObject* op)

_

PyTuple_CheckExact
int PyTuple_CheckExact(PyObject* op)

_

PyTuple_ClearFreeList
int PyTuple_ClearFreeList()

Availability: >= 2.6

PyTuple_GET_ITEM
PyObject_BorrowedRef* PyTuple_GET_ITEM(PyObject* op, Py_ssize_t i)

_

PyTuple_GET_SIZE
size_t PyTuple_GET_SIZE(PyObject* op)

_

PyTuple_GetItem
PyObject_BorrowedRef* PyTuple_GetItem(PyObject* , Py_ssize_t )

_

PyTuple_GetSlice
PyObject* PyTuple_GetSlice(PyObject* , Py_ssize_t , Py_ssize_t )

_

PyTuple_New
PyObject* PyTuple_New(Py_ssize_t size)

_

PyTuple_Pack
PyObject* PyTuple_Pack(Py_ssize_t , ...)

_

PyTuple_SET_ITEM
PyObject* PyTuple_SET_ITEM(PyObject* op, Py_ssize_t i, PyObject* v)

_

PyTuple_SetItem
int PyTuple_SetItem(PyObject* , Py_ssize_t , PyObject* )

_

PyTuple_Size
Py_ssize_t PyTuple_Size(PyObject* )

_

_PyTuple_DebugMallocStats
void _PyTuple_DebugMallocStats(FILE* out_)

Availability: >= 3.2

_PyTuple_Resize
int _PyTuple_Resize(PyObject** , Py_ssize_t )

_

Structs

PyTupleObject
struct PyTupleObject

ob_item contains space for 'ob_size' elements. Items must normally not be NULL, except during construction when the tuple is not yet visible outside the function that builds it.

Meta