#18329: Inherit __richcmp__ and __cmp__ in subclasses of Element
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.7
Component: coercion | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: Fixed upstream, | Work issues:
but not in a stable release. | Commit:
Branch: | ac96e64f64566f688037eee427ee5175ec7134c9
u/jdemeyer/ticket/18329 | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Changes (by jdemeyer):
* upstream: N/A => Fixed upstream, but not in a stable release.
Old description:
> Use the `__typeinit__` mechanism introduced by #18330 to inherit
> `__cmp__` and `__richcmp__` even if those would not be inherited by
> default.
New description:
Use the `__typeinit__` mechanism introduced by #18330 to inherit `__cmp__`
and `__richcmp__` even if those would not be inherited by default.
'''Upstream patch added''': [https://github.com/cython/cython/pull/383]
--
Comment:
Replying to [comment:33 jpflori]:
> Did you submit the Cython patch upstream?
Yes.
> Finally it seems to me that at the moment, this change only affects
`complex_mpc.pyx` and `real_double.pyx`.
> Is that correct?
Sure. I changed those as "proof of concept" to show that my patch works.
--
Ticket URL: <http://trac.sagemath.org/ticket/18329#comment:34>
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.