#7794: PolynomialRing_integral_domain ignores Ctrl-C and segfaults
--------------------------+-------------------------------------------------
Reporter: SimonKing | Owner: AlexGhitza
Type: defect | Status: positive_review
Priority: critical | Milestone: sage-4.7.1
Component: algebra | Keywords: Polynomial Ring KeyboardInterrupt
Work_issues: | Upstream: N/A
Reviewer: Simon King | Author: Jeroen Demeyer
Merged: | Dependencies:
--------------------------+-------------------------------------------------
Comment(by jdemeyer):
you are probably right about {{{except AttributeError}}}. How about
{{{
cdef inline cparent get_cparent(parent) except? 0:
try:
return <unsigned long>(parent.modulus())
except AttributeError:
return 0
}}}
This will also catch the case `parent == None`.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7794#comment:17>
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.