[Numpy-discussion] Zero Division not handled correctly?
David Goldsmith
d.l.goldsmith@gmail....
Sun Dec 6 16:39:55 CST 2009
On Sun, Dec 6, 2009 at 1:16 PM, Skipper Seabold <jsseabold@gmail.com> wrote:
> In [9]: np.array([0])**-1/-1
> Floating point exception
>
> This last command crashes the interpreter.
>
>
It crashes mine also, and IMO, anything that crashes the interpreter should
be considered a bug - can you file a bug report, please? Thanks!
DG
> There have been some threads about similar issues over the years, but
> I'm wondering if this is still intended/known or if this should raise
> an exception or return inf or -inf. I expected a -inf, though maybe
> this is incorrect on my part.
>
> Skipper
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20091206/d42cd7e5/attachment.html
More information about the NumPy-Discussion
mailing list