• Boxiang Sun's avatar
    fix the bug in complex constructor · a8eb5671
    Boxiang Sun authored
    Complex constructor should call __complex__ before call __float__.
    And should not call PyNumber_Float in that special method.
    Also add error checking after calling PyNumber_Float.
    a8eb5671
complex.cpp 39.8 KB