SgtMook/sympy — comment on commit 130b92a95d8f799cc7474f8ae52d103e0c1bb84f
File: sympy/core/numbers.py line 1621
By asmeurer:

all the `elif other > 0:` blocks need to go under an `if other.is_real` condition.