summaryrefslogtreecommitdiff
path: root/numpy/core/src/scalarmathmodule.c.src
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-10-19 00:13:48 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-10-19 00:13:48 +0000
commit448f3851e99f4667faaae813bd0cd6df2b666c29 (patch)
treefae63622aef344f337d2e7d5640ab3e30802314b /numpy/core/src/scalarmathmodule.c.src
parent42ec0613463dd5a1e583370d5f7fd8fddbedced8 (diff)
downloadnumpy-448f3851e99f4667faaae813bd0cd6df2b666c29.tar.gz
Add print and log facilities to error handling and change the default error mode to divide='print', over='print', invalid='print', and under='ignore'
Diffstat (limited to 'numpy/core/src/scalarmathmodule.c.src')
-rw-r--r--numpy/core/src/scalarmathmodule.c.src8
1 files changed, 6 insertions, 2 deletions
diff --git a/numpy/core/src/scalarmathmodule.c.src b/numpy/core/src/scalarmathmodule.c.src
index 1f2591d01..153a0f389 100644
--- a/numpy/core/src/scalarmathmodule.c.src
+++ b/numpy/core/src/scalarmathmodule.c.src
@@ -550,6 +550,7 @@ static PyObject *
#if @fperr@
int retstatus;
+ int first;
#endif
switch(_@name@_convert2_to_ctypes(a, &arg1, b, &arg2)) {
@@ -584,7 +585,8 @@ static PyObject *
if (PyUFunc_GetPyValues("@name@_scalars", &bufsize, &errmask,
&errobj) < 0)
return NULL;
- if (PyUFunc_handlefperr(errmask, errobj, retstatus))
+ first = 1;
+ if (PyUFunc_handlefperr(errmask, errobj, retstatus, &first))
return NULL;
}
#endif
@@ -625,6 +627,7 @@ static PyObject *
PyObject *ret;
@name@ arg1, arg2;
int retstatus;
+ int first;
#if @cmplx@
@name@ out = {0,0};
@@ -678,7 +681,8 @@ static PyObject *
if (PyUFunc_GetPyValues("@name@_scalars", &bufsize, &errmask,
&errobj) < 0)
return NULL;
- if (PyUFunc_handlefperr(errmask, errobj, retstatus))
+ first = 1;
+ if (PyUFunc_handlefperr(errmask, errobj, retstatus, &first))
return NULL;
}