#18578: Python 3 preparation: Special function __div__() is used no more in Py3
-------------------------+-------------------------------------------------
Reporter: | Owner: wluebbe
wluebbe | Status: new
Type: | Milestone: sage-6.8
enhancement | Resolution:
Priority: major | Merged in:
Component: misc | Reviewers:
Keywords: | Work issues:
python3 | Commit:
Authors: | 9701674d59213529ef6476ecc973a8f2cf69bfb3
Report Upstream: N/A | Stopgaps:
Branch: |
u/wluebbe/18578 |
Dependencies: |
#18622 |
-------------------------+-------------------------------------------------
Comment (by jdemeyer):
In the cases where the objects involved are `Parent`s, I would rather just
put
{{{
def __div__(self, other):
return PyNumber_TrueDivide(self, other)
}}}
in `Parent` instead of manually adding `__div__ = __truediv__` everywhere.
--
Ticket URL: <http://trac.sagemath.org/ticket/18578#comment:15>
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.