[Python-checkins] cpython: Issue #18408: errors.c: in debug mode, calling PyErr_BadInternalCall() now
victor.stinner
python-checkins at python.org
Fri Jul 12 00:59:08 CEST 2013
http://hg.python.org/cpython/rev/2f7c4df5cc46
changeset: 84574:2f7c4df5cc46
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Jul 12 00:37:30 2013 +0200
summary:
Issue #18408: errors.c: in debug mode, calling PyErr_BadInternalCall() now
fails with an assertion error
files:
Python/errors.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Python/errors.c b/Python/errors.c
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -675,6 +675,7 @@
void
PyErr_BadInternalCall(void)
{
+ assert(0 && "bad argument to internal function");
PyErr_Format(PyExc_SystemError,
"bad argument to internal function");
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list