#19521: wrong inverse action when using ConstructionFunctor.coercion_reversed
----------------------------+-------------------------
       Reporter:  dkrenn    |        Owner:
           Type:  defect    |       Status:  new
       Priority:  major     |    Milestone:  sage-6.10
      Component:  coercion  |   Resolution:
       Keywords:            |    Merged in:
        Authors:            |    Reviewers:
Report Upstream:  N/A       |  Work issues:
         Branch:            |       Commit:
   Dependencies:            |     Stopgaps:
----------------------------+-------------------------

Comment (by dkrenn):

 BTW: For some reason it works (partially) for polynomial rings:
 {{{
      sage: R.<x> = SR.subring(no_variables=True)[]
      sage: (x / 1).parent()
      Univariate Polynomial Ring in x over Symbolic Constants Subring
 }}}
 but
 {{{
      sage: cm = sage.structure.element.get_coercion_model()
      sage: cm.explain(x, 1, operator.div)
      Action discovered.
         Right inverse action by Symbolic Ring on Univariate Polynomial
 Ring in x over Symbolic Constants Subring
         with precomposition on right by Conversion map:
           From: Integer Ring
           To:   Symbolic Ring
     Result lives in Univariate Polynomial Ring in x over Symbolic Ring
     Univariate Polynomial Ring in x over Symbolic Ring
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/19521#comment:1>
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.

Reply via email to