[Python-Dev] constant folding of -0
Eugene Toder
eltoder at gmail.com
Thu Mar 10 22:23:36 CET 2011
I've posted a patch.
Eugene
On Thu, Mar 10, 2011 at 3:30 PM, Mark Dickinson <dickinsm at gmail.com> wrote:
> On Thu, Mar 10, 2011 at 2:17 AM, Eugene Toder <eltoder at gmail.com> wrote:
>>> Indeed, see http://bugs.python.org/issue11244
>>
>> Yes, I've noticed that too. However, if I'm not missing something, your patches
>> do not address folding of -0.
>
> Hmm, it seems that way. Could you post a comment on the tracker issue
> about that, please?
>
> I'm not sure why the original changeset went in, but I agree it looks
> as though it's no longer necessary. Certainly there should be enough
> -0.0 versus 0.0 tests around to detect any issues, so if all the tests
> pass with the extra PyObject_IsTrue check disabled then there probably
> isn't a problem.
>
> Mark
>
More information about the Python-Dev
mailing list