Message96527
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. |
|
Date |
User |
Action |
Args |
2009-12-17 19:27:47 | mdonolo | set | recipients:
+ mdonolo, tim.peters |
2009-12-17 19:27:47 | mdonolo | set | messageid: <1261078067.84.0.65935543936.issue7536@psf.upfronthosting.co.za> |
2009-12-17 19:27:46 | mdonolo | link | issue7536 messages |
2009-12-17 19:27:46 | mdonolo | create | |
|