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

Marcos Donolo report at bugs.python.org
Thu Dec 17 20:35:20 CET 2009


Marcos Donolo <mdonolo at vt.edu> added the comment:

I will give it a shot.

On Thu, Dec 17, 2009 at 11:22 AM, Mark Dickinson <report at bugs.python.org>wrote:

>
> Mark Dickinson <dickinsm at gmail.com> added the comment:
>
> Yep.  There's not much consistency in inf/nan handling across platforms,
> though the situation is slowly getting better.  math.pow makes an effort
> to handle these special cases correctly (for some value of correctly), and
> it would probably make some sense to have the builtin pow behave the same
> way.
>
> Would you be interested in contributing a fix?
>
> ----------
> stage:  -> needs patch
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue7534>
> _______________________________________
>

----------
title: float('nan')**2 != nan.  float('inf')**2 != inf.  float('nan')**2 error 33 on windows -> float('nan')**2 != nan. float('nan')**2 error 33 on windows
Added file: http://bugs.python.org/file15584/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7534>
_______________________________________
-------------- next part --------------
I will give it a shot.<br><br><div class="gmail_quote">On Thu, Dec 17, 2009 at 11:22 AM, Mark Dickinson <span dir="ltr">&lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Mark Dickinson &lt;<a href="mailto:dickinsm at gmail.com">dickinsm at gmail.com</a>&gt; added the comment:<br>
<br>
Yep.  There&#39;s not much consistency in inf/nan handling across platforms,<br>
though the situation is slowly getting better.  math.pow makes an effort<br>
to handle these special cases correctly (for some value of correctly), and<br>
it would probably make some sense to have the builtin pow behave the same<br>
way.<br>
<br>
Would you be interested in contributing a fix?<br>
<br>
----------<br>
stage:  -&gt; needs patch<br>
<div><div></div><div class="h5"><br>
_______________________________________<br>
Python tracker &lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;<br>
&lt;<a href="http://bugs.python.org/issue7534" target="_blank">http://bugs.python.org/issue7534</a>&gt;<br>
_______________________________________<br>
</div></div></blockquote></div><br>


More information about the Python-bugs-list mailing list