mirror of
https://github.com/python/cpython.git
synced 2026-05-20 19:33:12 -04:00
2b869943fa
to complex using its __complex__() method before falling back to the __float__() method. Therefore, the functions in the cmath module now can operate on objects that define a __complex__() method. (backport)