8d98b4248e
Python classes that were not `complex` but implemented the `__complex__` magic would have that method called via `PyComplex_AsCComplex` when running against the full API, but the limited-API version `PyComplex_RealAsDouble` does not attempt this conversion. If the input object is not already complex, we can call the magic before proceeding.
93 B
93 B
Fix conversion of classes implementing __complex__
to Complex
when using abi3
or PyPy.