#17890: Remove _(rich)cmp_c_impl
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.7
Component: cython | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/ticket/17890 | 04570b3dfd194fea8c2437c8717c3dfb8704b4af
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
Replying to [comment:62 vdelecroix]:
> that would allow element implementing `__eq__` to benefit of `__ne__`
for free. What do you think? Perhaps not for this ticket though (thinking
about #18305). It is a bit dangerous since `__eq__` would not go through
coercions but `__ne__` would.
I don't like it so much. I think a Python class can easily do
{{{
def __ne__(self, other):
return not (self == other)
}}}
And then you're indeed bringing coercion in the story and you're assuming
that rich comparisons return `True` or `False` and not something symbolic.
--
Ticket URL: <http://trac.sagemath.org/ticket/17890#comment:64>
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.