Re: Division and multiplication have a different behavior in the overflow case

2013-07-27 Thread Terry Reedy
On 7/27/2013 1:48 PM, Marco wrote: In Python 3, when we hava a division and both the result and at least one operand are too large to convert to float, we get an exception: >>> 2**1028 / 2**-2 int/float gets converted to float/float and the int to float conversion is not possible. The re

Division and multiplication have a different behavior in the overflow case

2013-07-27 Thread Marco
In Python 3, when we hava a division and both the result and at least one operand are too large to convert to float, we get an exception: >>> 2**1028 / 2**-2 Traceback (most recent call last): File "", line 1, in OverflowError: long int too large to convert to float When the