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 mean the other way around?
On Tuesday, April 12, 2022 at 10:46:31 AM UTC-4 David Roe wrote: > 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 <l.s....@tue.nl> 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 support divmod()? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sage-devel" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to sage-devel+...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/sage-devel/20220412214635.2dd69295%40l. >> > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/d13cb046-14d2-49ba-bc02-644862f41779n%40googlegroups.com.