-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-132876: workaround broken ldexp() on Windows 10 #133135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Tim Peters <tim.peters@gmail.com>
Some benchmarking in: #132876 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is a potentially breaking change on Windows, it really needs a NEWS entry, yes? Like
math.ldexp() on Windows failed to round subnormal results before Window 11, and Microsoft probably won't fix it for Windows 10. So Python works around the error on Windows now. This may change results (which were formerly erroneous) in rare cases.
And maybe link to the issue report?
It has a NEWS entry, though it could include a bit more detail (such as the ranges of values that may be incorrect). And that entry will already be linked to the bug. So this change LGTM |
ldexp()
on Windows doesn't round subnormal results before Windows 11, but should. Python's :func:math.ldexp
wrapper now does round them.