#19937: Implement generic __div__ and _div_ in the Magmas.Unital category
-------------------------------------+-------------------------------------
Reporter: nthiery | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-7.1
Component: categories | Resolution:
Keywords: coercion | Merged in:
Authors: Nicolas M. ThiƩry | Reviewers:
Report Upstream: N/A | Work issues: __truediv__
Branch: | Commit:
u/nthiery/implement_generic___div___and__div__in_the_categories|
de58229ea4e66818a8f73d2c7c0fb35d344313b7
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by jdemeyer):
* status: needs_review => needs_work
* work_issues: => __truediv__
Comment:
Replying to [comment:7 nthiery]:
> Due to the lack of multiple inheritance in Cython
For the record, this has not much to do with Cython, but with Python. Too
many things are being blamed on Cython which are really Python issues.
Replying to [comment:8 vdelecroix]:
> Depending of how the reheat of the thread goes on we could:
> - actually move the `__div__` and friends to `Element` (that should not
be hard)
Indeed, not hard, but somebody has to do it. In any case, I would prefer
to wait for #269 to avoid conflicts.
> - adopt the (possibly temporary) solution as suggested in your branch.
If it solves an actual problem you're having, I don't mind.
Replying to [comment:11 tscrim]:
> Shouldn't this be `__truediv__` and have `__div__` as an alias as per
#18578 for Python3 compatibility?
Absolutely.
--
Ticket URL: <http://trac.sagemath.org/ticket/19937#comment:12>
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.