[Numpy-discussion] SIGFPE handling in ufunc
David Cournapeau
david@ar.media.kyoto-u.ac...
Mon Dec 7 03:02:47 CST 2009
Hi,
While investigating why np.array([0]) ** -1/-1 crashes, I wondered about
how signal handling is supposed to work in ufuncs when a SIGFPE is
raised. In particular, the following is puzzling:
import numpy as np
x = np.array([1, 2, 3, 4]) / 0
# x is now array([0, 0, 0, 0])
Note that no warning is raised - this seems to be a regression, since I
came across e.g. this ticket: http://projects.scipy.org/numpy/ticket/541.
cheers,
David
More information about the NumPy-Discussion
mailing list