pow() behaves differently than CPython
class A(int):
def __rpow__(self, other, modulo = None):
pass
a = pow(1, A(), A())
print(a)
C:\> python test.py
Traceback (most recent call last):
File "C:\test.py", line 11, in <module>
a = pow(1, A(), A())
ValueError: pow() 3rd argument cannot be 0
C:\> pypy test.py
None