Index: Modules/_struct.c =================================================================== --- Modules/_struct.c (révision 66621) +++ Modules/_struct.c (copie de travail) @@ -1755,6 +1755,8 @@ /* Extract the offset from the first argument */ offset = PyInt_AsSsize_t(PyTuple_GET_ITEM(args, 1)); + if (offset == -1 && PyErr_Occurred()) + return NULL; /* Support negative offsets. */ if (offset < 0)