#12149: float('nan')>1 crashes Sage.
--------------------------------+-------------------------------------------
Reporter: was | Owner: AlexGhitza
Type: defect | Status: needs_review
Priority: critical | Milestone: sage-4.8
Component: basic arithmetic | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author: William Stein
Merged: | Dependencies:
--------------------------------+-------------------------------------------
Comment(by jdemeyer):
Replying to [comment:3 was]:
> To me, using signal handling instead of simply checking whether or not
the float is a nan (using isfinite) is a much worse solution to this
problem. Do you think otherwise, and if so, why?
I was not proposing it as a solution to this problem, just to add the
signal handling in addition as an extra safeguard.
Ideally there would have been `sig_on()`/`sig_off()` already, such that
this ticket would say:
{{{
sage: float('nan') > 1
Tracback (most recent call last):
...
RuntimeError: Floating Point Error
}}}
which doesn't crash Sage.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12149#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.