#17890: Remove _(rich)cmp_c_impl
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: needs_info
Priority: major | Milestone: sage-6.6
Component: cython | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/ticket/17890 | a7cbb88852ceefff65e421e75c0479bcd554ce26
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
Replying to [comment:20 vdelecroix]:
> 2. What about putting
> {{{
> # Obvious case
> if left is right:
> return _rich_to_bool(op, 0)
> }}}
> directly in `__richcmp__`?
Because `__richcmp__` should absolutely be as simple as possible. Don't
forget that ''every subclass'' needs a `__richcmp__` method (because of
Python's strange inheritance rules regarding comparison).
--
Ticket URL: <http://trac.sagemath.org/ticket/17890#comment:22>
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.