Marcos Donolo added the comment:
I had to handle nans and infs in different places.
--
___
Python tracker
<http://bugs.python.org/issue7534>
___
___
Python-bug
Changes by Marcos Donolo :
Added file: http://bugs.python.org/file15597/floatobject.c
___
Python tracker
<http://bugs.python.org/issue7534>
___
___
Python-bugs-list mailin
Marcos Donolo added the comment:
Ok, I have patch ready. how do we go about putting it in?
thanks.
marcos
On Thu, Dec 17, 2009 at 11:52 AM, Ezio Melotti wrote:
>
> Changes by Ezio Melotti :
>
>
> --
> nosy: +ezio.melotti
>
Marcos Donolo added the comment:
I will give it a shot.
On Thu, Dec 17, 2009 at 11:22 AM, Mark Dickinson wrote:
>
> Mark Dickinson added the comment:
>
> Yep. There's not much consistency in inf/nan handling across platforms,
> though the situation is slowly getting bet
New submission from Marcos Donolo :
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 "", line 1, in
OverflowError
New submission from Marcos Donolo :
I am not getting the expected result for the ** operator on windows,
python 2.6
I do...
a=float('nan')
b=a*a
then b is nan which is right but if I do
b = a**2 I get.
Traceback (most recent call last):
File "", line 1, in
ValueError