pow() with complex number returns a different result
a = pow(1, -1.j)
print(a)
C:\> python test.py
(1-0j)
C:\> pypy test.py
(1+0j)
At first, I thought it was simply an output notation error but when I returned the sign value as below, the result value was clearly different
import math
a = math.copysign(1., pow(1, -1.j).imag) > 0
print(a)
C:\> python test.py
False
C:\> pypy test.py
True