#17033: Conversion of strings into function fields
-------------------------------------+-------------------------------------
Reporter: SimonKing | Owner:
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.4
Component: algebra | Resolution:
Keywords: | Merged in:
Authors: Simon King | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/SimonKing/function_field_conversion|
a16bc05b502d6a35b113edcb4eb4221d630f9561
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by SimonKing):
Here is what the element constructor does:
{{{
if x.parent() is self._ring:
return FunctionFieldElement_polymod(self, x)
if isinstance(x, FunctionFieldElement):
return FunctionFieldElement_polymod(self,
self._ring(x.element()))
return FunctionFieldElement_polymod(self, self._ring(x))
}}}
That's rather silly, since the last line does exactly what the first two
lines do, if `x.parent() is self._ring` (then, `self._ring(x)` is supposed
to return `x` unaltered). I'll try if removing the first two lines does
the job.
--
Ticket URL: <http://trac.sagemath.org/ticket/17033#comment:10>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.