Just for reference, Sage already has divmod() (e.g.
https://sagecell.sagemath.org/?q=owmsez) and returns a tuple of Sage
integers, so maybe we already do? I don't know about the magic method
though. quo_rem() was the one new to me, and doesn't actually appear to be
defined - did you maybe
I see no reason why Sage couldn't support divmod() in addition to quo_rem().
David
On Tue, Apr 12, 2022 at 9:46 AM Lorenz Panny wrote:
>
> Python defines divmod() and the associated .__divmod__() magic method
> for what Sage calls .quo_rem().
>
> Is there any reason why Sage shouldn't or cannot
Python defines divmod() and the associated .__divmod__() magic method
for what Sage calls .quo_rem().
Is there any reason why Sage shouldn't or cannot support divmod()?
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this