Re: [sage-devel] divmod() vs .quo_rem()

2022-04-13 Thread kcrisman
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 mea

Re: [sage-devel] divmod() vs .quo_rem()

2022-04-12 Thread David Roe
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