I am currently reading the Python 2.7 source code and got stuck with the following piece of code, in tupleobject.h
:
PyObject *ob_item[1];
and in tupleobject.c
(PyTuple_SetItem
):
p = ((PyTupleObject *)op)->ob_item + i;
How can we shift pointer by i
if ob_item
is an array of one PyObject
?