Commit 93fc06f9 authored by Mark Dickinson's avatar Mark Dickinson

Revert the temporary change in r62624

parent 00f5a256
...@@ -167,7 +167,6 @@ math_1_to_whatever(PyObject *arg, double (*func) (double), ...@@ -167,7 +167,6 @@ math_1_to_whatever(PyObject *arg, double (*func) (double),
int can_overflow) int can_overflow)
{ {
double x, r; double x, r;
char err_message[150];
x = PyFloat_AsDouble(arg); x = PyFloat_AsDouble(arg);
if (x == -1.0 && PyErr_Occurred()) if (x == -1.0 && PyErr_Occurred())
return NULL; return NULL;
...@@ -184,16 +183,9 @@ math_1_to_whatever(PyObject *arg, double (*func) (double), ...@@ -184,16 +183,9 @@ math_1_to_whatever(PyObject *arg, double (*func) (double),
if (can_overflow) if (can_overflow)
PyErr_SetString(PyExc_OverflowError, PyErr_SetString(PyExc_OverflowError,
"math range error (overflow)"); "math range error (overflow)");
else { else
/* temporary code to include the inputs PyErr_SetString(PyExc_ValueError,
and outputs to func in the error "math domain error (singularity)");
message */
sprintf(err_message,
"math domain error (singularity) "
"%.17g -> %.17g",
x, r);
PyErr_SetString(PyExc_ValueError, err_message);
}
return NULL; return NULL;
} }
if (Py_IS_FINITE(r) && errno && is_error(r)) if (Py_IS_FINITE(r) && errno && is_error(r))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment