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)?
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/GWJDGU36T2PPHFW2UACAUNR47WPFT33F/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to