[issue7534] float('nan')**2 != nan. float('nan')**2 error 33 on windows

2009-12-18 Thread Marcos Donolo
Marcos Donolo added the comment: I had to handle nans and infs in different places. -- ___ Python tracker <http://bugs.python.org/issue7534> ___ ___ Python-bug

[issue7534] float('nan')**2 != nan. float('nan')**2 error 33 on windows

2009-12-18 Thread Marcos Donolo
Changes by Marcos Donolo : Added file: http://bugs.python.org/file15597/floatobject.c ___ Python tracker <http://bugs.python.org/issue7534> ___ ___ Python-bugs-list mailin

[issue7534] float('nan')**2 != nan. float('nan')**2 error 33 on windows

2009-12-18 Thread Marcos Donolo
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 >

[issue7534] float('nan')**2 != nan. float('nan')**2 error 33 on windows

2009-12-17 Thread Marcos Donolo
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

[issue7536] float('inf')**2 != inf

2009-12-17 Thread Marcos Donolo
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

[issue7534] float('nan')**2 != nan. float('nan')**2 error 33 on windows

2009-12-17 Thread Marcos Donolo
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