
Oct. 7, 2020
7:40 a.m.
07.10.20 06:04, Guido van Rossum пише:
Ironically, complex numbers have a `__float__` method that always fails, and floats don't have a `__complex__` method but complex(x) succeeds if x is a float...
I wonder why not remove complex.__float__ (and complex.__int__, complex.__floordiv__, etc)?