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 mark.dickinson
Recipients BTaskaya, lemburg, mark.dickinson, pablogsal, rhettinger, stutzbach, tim.peters, vstinner, xdegaye
Date 2019-12-08.20:28:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
So if I'm understanding correctly, the cause of the issue is that the value `1.7**(i+1)` computed in the last iteration (i=999) of the list comprehension doesn't exactly match the `-1.7**1000` value, because the former is computed at runtime using the libm's pow, while the latter is constant-folded and likely uses something more accurate than `pow`.

I think it should be easy to rewrite the test so that it precomputes the powers of `1.7`, and then makes sure to use those computed values (i.e., so that we're only computing `1.7**1000` once rather than twice, eliminating the possibility of getting different results).
Date User Action Args
2019-12-08 20:28:01mark.dickinsonsetrecipients: + mark.dickinson, lemburg, tim.peters, rhettinger, vstinner, stutzbach, xdegaye, pablogsal, BTaskaya
2019-12-08 20:28:01mark.dickinsonsetmessageid: <>
2019-12-08 20:28:01mark.dickinsonlinkissue38992 messages
2019-12-08 20:28:00mark.dickinsoncreate