Index: Objects/structseq.c =================================================================== --- Objects/structseq.c (revision 82641) +++ Objects/structseq.c (working copy) @@ -154,8 +154,11 @@ char *cname, *crepr; cname = typ->tp_members[i].name; - if (cname == NULL) + if (cname == NULL) { + /* XXX: I am not sure what exception is appropriate here */ + PyErr_Format(PyExc_ValueError, "In structseq_repr() member %d name is NULL", i); return NULL; + } val = PyStructSequence_GET_ITEM(obj, i); repr = PyObject_Repr(val); if (repr == NULL)