[Python-Dev] return type of __complex__

Chris Angelico rosuav at gmail.com
Sun Oct 21 04:40:02 CEST 2012


On Sun, Oct 21, 2012 at 1:38 PM, Chris Angelico <rosuav at gmail.com> wrote:
> Python 2 (future directives aside) also required you to explicitly ask
> for floating point. That was also changed in Python 3.

Er, should have said that I was referring to division here...
incomplete information. Anyway. Py3 says that int/int --> float is
acceptable, so float**float --> complex is equally plausible.

ChrisA


More information about the Python-Dev mailing list