You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Results of the Built-in Function divmod(a,b) with negative a and/or b #160958
Activity
hugovk commentedon Oct 30, 2026
As documented:
https://docs.python.org/3/builtins/functions.html#divmod
Gabriel88-147 commentedon Oct 30, 2026
I expected that the results of a // b and a // (-b) are the same.