summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-10-11 23:20:09 (GMT)
committerThomas Wouters <thomas@python.org>2000-10-11 23:20:09 (GMT)
commit8fb62a2e9a9c61c41560d5edb318ac1070dadb16 (patch)
tree2b009c8211c41fc078091d14dae0e4190504f91c
parentf27f5ab31f19ec22df8b86206b91c942c0b61245 (diff)
downloadcpython-8fb62a2e9a9c61c41560d5edb318ac1070dadb16.zip
cpython-8fb62a2e9a9c61c41560d5edb318ac1070dadb16.tar.gz
cpython-8fb62a2e9a9c61c41560d5edb318ac1070dadb16.tar.bz2
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.
-rw-r--r--Python/ceval.c6
1 files changed, 1 insertions, 5 deletions
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 @@ eval_code2(PyCodeObject *co, PyObject *globals, PyObject *locals,
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;