-
-
Couldn't load subscription status.
- Fork 33.2k
Description
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__()?