Thanks for the patch. I have a single comment below: http://bugs.python.org/review/13583/diff/11737/Modules/_sqlite/row.c File Modules/_sqlite/row.c (right): http://bugs.python.org/review/13583/diff/11737/Modules/_sqlite/row.c#newcode149 Modules/_sqlite/row.c:149: it = src[cur]; Why not simply use PyTuple_SET_ITEM and PyTuple_GET_ITEM? That would avoid breaking encapsulation and relying on the PyTupleObject struct.