[issue18570] OverflowError during division: wrong message

2013-07-27 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes, mark.dickinson versions: -Python 3.1, Python 3.2 ___ Python tracker ___ ___

[issue18570] OverflowError during division: wrong message

2013-07-27 Thread Marco Buttu
New submission from Marco Buttu: When the integer division result is too large to converto to float, and the operands are inside the limits, the result is `inf` or `-inf`:: >>> 2**1023 / 2**-3 inf >>> 2**1022 / 2**-4 inf >>> 2**1023 / 2**-1074 inf When both the result a