[issue20543] ** operator does not overflow to inf

Keith Randall report at bugs.python.org
Fri Feb 7 19:44:35 CET 2014


New submission from Keith Randall:

>>> 1e200*1e200
inf
>>> 1e200**2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: (34, 'Numerical result out of range')

Shouldn't floating-point operations overflow to inf, not generate exceptions?

----------
components: Interpreter Core
messages: 210517
nosy: Keith.Randall
priority: normal
severity: normal
status: open
title: ** operator does not overflow to inf
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20543>
_______________________________________


More information about the Python-bugs-list mailing list