#8992: Coercion of univariate quotient polynomial rings
-------------------------------------------------+--------------------------
Reporter: SimonKing | Owner: robertwb
Type: defect | Status: needs_work
Priority: major | Milestone: sage-5.1
Component: coercion | Resolution:
Keywords: coercion quotient ring sd40.5 | Work issues: Test that
the result of conversion lives in the correct ring.
Report Upstream: N/A | Reviewers: Mike Hansen
Authors: Simon King | Merged in:
Dependencies: | Stopgaps:
-------------------------------------------------+--------------------------
Changes (by SimonKing):
* work_issues: Convert string into cover ring as a fail safe => Test
that the result of conversion lives in
the correct ring.
Comment:
Funny. The code was an attempt to convert into the cover ring. But it says
{{{
try:
return sage_eval(x,
GenDictWithBasering(self,self.gens_dict()))
except TypeError, NameError:
pass
try:
return PolynomialQuotientRingElement(self, self.__ring(x),
check=False)
except TypeError:
raise TypeError, "unable to convert %s into an element of
%s"%(x,repr(self))
}}}
In the third line, the `NameError` raised by sage_eval is not catched,
because I forgot brackets. Arrgh.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8992#comment:19>
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.