Documentation
The documentation for __rpow__() clearly states:
Note that ternary pow() will not try calling rpow() (the coercion rules would become too complicated).
As far as I'm aware (I may be wrong!) ternary pow() is the only way that the modulo parameter can be passed to __pow__(). Since the documentation explicitly states that ternary pow() will not fall back on __rpow__(), it seems misleading that the summary for __rpow__() above contains the same optional modulo parameter as for __pow__().
Should the modulo parameter for __rpow__() be removed? Or are there some means other than ternary pow() by which this parameter can end up being passed to __rpow__()?
Linked PRs
Documentation
The documentation for
__rpow__()clearly states:As far as I'm aware (I may be wrong!) ternary
pow()is the only way that themoduloparameter can be passed to__pow__(). Since the documentation explicitly states that ternarypow()will not fall back on__rpow__(), it seems misleading that the summary for__rpow__()above contains the same optionalmoduloparameter as for__pow__().Should the
moduloparameter for__rpow__()be removed? Or are there some means other than ternarypow()by which this parameter can end up being passed to__rpow__()?Linked PRs