[New-bugs-announce] [issue7536] float('inf')**2 != inf
Marcos Donolo
report at bugs.python.org
Thu Dec 17 20:27:47 CET 2009
New submission from Marcos Donolo <mdonolo at vt.edu>:
The ** operator produces an error when it gets inf as an argument.
if I try.
>>>a=float('inf')
>>>a*a
inf
-but if I try
>>>a**2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: (34, 'Result too large')
I should get inf too.
----------
components: Interpreter Core
messages: 96527
nosy: mdonolo, tim_one
severity: normal
status: open
title: float('inf')**2 != inf
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7536>
_______________________________________
More information about the New-bugs-announce
mailing list