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.
2 lines
93 B
Markdown
2 lines
93 B
Markdown
Fix conversion of classes implementing `__complex__` to `Complex` when using `abi3` or PyPy.
|