#9429: Undesirable behaviour when deriving from QuotientRingElement
-----------------------+----------------------------------------------------
Reporter: vbraun | Owner: AlexGhitza
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.5
Component: algebra | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------+----------------------------------------------------
Changes (by novoselt):
* status: needs_review => needs_work
Comment:
I have added a couple of printing lines into the quotient ring and got the
following:
{{{
sage: FF = FiniteField(7)
sage: P.<x> = PolynomialRing(FF)
_coerce_map_from_(Finite Field of size 7, <type 'int'>)
_coerce_map_from_(Finite Field of size 7, Integer Ring)
_element_constructor_(Finite Field of size 7, 0)
sage: x + 1
_element_constructor_(Finite Field of size 7, 1)
...
TypeError: unsupported operand parent(s) for '+':
'Univariate Polynomial Ring in x over Finite Field of size 7'
and 'Integer Ring'
sage: isinstance(FF, sage.rings.quotient_ring.QuotientRing_generic)
True
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9429#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.