checked_rem
and checked_mod
don't follow the same promotion rules as regular rem and mod
#54485
Labels
checked_rem
and checked_mod
don't follow the same promotion rules as regular rem and mod
#54485
It looks like
rem
andmod
have custom promotion rules, to keep the signed-ness of one of their arguments, but the checked_* operations just directly callpromote(x,y)
on the arguments.Probably the checked* operations should be updated to have the same promotion rules as their normal, non-checked operators.
EDIT: Also, this unusual promotion behavior for
rem
andmod
is not documented in the docstrings. Can we please fix that as part of this issue?The text was updated successfully, but these errors were encountered: