This instance of PyTypeObject represents the Python tuple type; it is the same object as tuple and types.TupleType in the Python layer..
Return a new tuple object of size len, or NULL on failure.
Return a new tuple object of size n, or NULL on failure. The tuple values are initialized to the subsequent n C arguments pointing to Python objects. PyTuple_Pack(2, a, b) is equivalent to Py_BuildValue("(OO)", a, b).
Return the object at position pos in the tuple pointed to by p. If pos is out of bounds, return NULL and sets an IndexError exception.
Like PyTuple_GetItem, but does no checking of its arguments.
Take a slice of the tuple pointed to by p from low to high and return it as a new tuple.
Insert a reference to object o at position pos of the tuple pointed to by p. Return 0 on success.
Note
This function “steals” a reference to o.
Like PyTuple_SetItem, but does no error checking, and should only be used to fill in brand new tuples.
Note
This function “steals” a reference to o.