Adjust debugging code in the implementation of the DUP_TOPX bytecode, use
Py_FatalError() instead, and clarify the message somewhat. As discussed on
python-dev.
diff --git a/Python/ceval.c b/Python/ceval.c
index ca38c68..ce4b67a 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -775,11 +775,7 @@
PUSH(x);
continue;
default:
- fprintf(stderr, "Invalid argument to DUP_TOPX: %d!\n", oparg);
- PyErr_SetString(PyExc_SystemError,
- "invalid argument to DUP_TOPX");
- x = NULL;
- break;
+ Py_FatalError("invalid argument to DUP_TOPX (bytecode corruption?)");
}
break;