#18251: CombinatorialFreeModule should use coercion for comparisons
----------------------------+------------------------
       Reporter:  tscrim    |        Owner:  tscrim
           Type:  defect    |       Status:  new
       Priority:  critical  |    Milestone:  sage-6.7
      Component:  coercion  |   Resolution:
       Keywords:  zero      |    Merged in:
        Authors:            |    Reviewers:
Report Upstream:  N/A       |  Work issues:
         Branch:            |       Commit:
   Dependencies:            |     Stopgaps:
----------------------------+------------------------
Changes (by jdemeyer):

 * cc: chapoton (added)


Old description:

> Currently we have the following in Sage:
> {{{
> sage: C = CombinatorialFreeModule(QQ, ['a','b'])
> sage: C.zero() == ZZ(0)
> True
> sage: C.zero() == QQ(0)
> False
> }}}

New description:

 Currently we have the following in Sage:
 {{{
 sage: C = CombinatorialFreeModule(QQ, ['a','b'])
 sage: C.zero() == ZZ(0)
 True
 sage: C.zero() == QQ(0)
 False
 }}}
 This should be fixed by using coercing comparison (`_cmp_` or
 `_richcmp_`).

--

--
Ticket URL: <https://trac.sagemath.org/ticket/18251#comment:2>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to