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