This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients Phil Frost, facundobatista, mark.dickinson, rhettinger, skrah
Date 2019-06-05.23:02:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559775760.83.0.498403283445.issue37168@roundup.psfhosted.org>
In-reply-to
Content
Thank you for the detailed report. So, in an attempt to summarize,
this is the crucial passage:

>>> ideal_exp = -1
>>> exp = -29
>>> coeff = 150000000000000000000000000000
>>> division_counter = 0
>>> while exp < ideal_exp and coeff % 10 == 0:
...     coeff //= 10
...     exp += 1
...     division_counter += 1
... 
>>> coeff
15L
>>> exp
-1
>>> division_counter
28



But you sometimes get coeff==150 and division_counter==27 instead.
Is that correct?


The first thing to consider is whether Alpine Linux uses a patched
Python version or if you can reproduce this on Python 2.7.15 compiled
from source.
History
Date User Action Args
2019-06-05 23:02:40skrahsetrecipients: + skrah, rhettinger, facundobatista, mark.dickinson, Phil Frost
2019-06-05 23:02:40skrahsetmessageid: <1559775760.83.0.498403283445.issue37168@roundup.psfhosted.org>
2019-06-05 23:02:40skrahlinkissue37168 messages
2019-06-05 23:02:40skrahcreate