[issue25604] [Minor] bug in integer true division algorithm

2016-08-21 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed for 2.7 and 3.6. I don't think it's worth backporting the fix to 3.5 without evidence of actual incorrect results arising from this bug. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ P

[issue25604] [Minor] bug in integer true division algorithm

2016-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 370bbeba21b3 by Mark Dickinson in branch '2.7': Issue #25604: Fix bug in integer true division that could have resulted in off-by-one-ulp results in unusual cases. https://hg.python.org/cpython/rev/370bbeba21b3 -- _

[issue25604] [Minor] bug in integer true division algorithm

2016-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset b9e12ca6fdb6 by Mark Dickinson in branch 'default': Issue #25604: Fix minor bug in integer true division, which could https://hg.python.org/cpython/rev/b9e12ca6fdb6 -- nosy: +python-dev ___ Python tracker

[issue25604] [Minor] bug in integer true division algorithm

2015-11-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Correct. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue25604] [Minor] bug in integer true division algorithm

2015-11-12 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue25604] [Minor] bug in integer true division algorithm

2015-11-12 Thread Mark Dickinson
New submission from Mark Dickinson: There's a harmless but annoying (for code readers) bug in the code for true division of (long) integers. In `long_true_divide` in `Objects/longobject.c`, we have the following code for manipulating the bits of a 55- or 56-bit long to get something that will