#19016: Better hash for Element
-------------------------------------+-------------------------------------
       Reporter:  ncohen             |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  blocker            |    Milestone:  sage-6.9
      Component:  misc               |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Nils Bruin,        |    Reviewers:
  Vincent Delecroix                  |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:  public/19016       |  a0f830bf8dc0cbdeb75e45ee7bfee7b4fad33768
   Dependencies:  #18246             |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by vdelecroix):

 The failing doctest in `parent.pyx` is very weird! The doctest expected a
 coercion
 {{{
 (matrix space over QQ, number field K) -> (matrix space over QQ)
 }}}
 but now it is
 {{{
 (matrix space over QQ, number field K) -> (matrix space over K)
 }}}

 The reason is that before we had (keeping the notation from the failing
 doctest)
 {{{
 sage: ma = a.matrix()
 sage: cm = get_coercion_model()
 sage: cm.get_action(ma.parent(), b.parent(), operator.mul, ma, b) is None
 True
 }}}
 but with the patch applied
 {{{
 sage: cm.get_action(ma.parent(), b.parent(), operator.mul)
 Right scalar multiplication by Number Field in b241562 with
   defining polynomial x^2 + 272118 on Full MatrixSpace of
   2 by 2 dense matrices over Rational Field
 }}}

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