-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[3.8] bpo-39310: Update sys.float_info documentation #17982
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
Conversation
Specify that sys.float_info.min is only the minimum normalized float.
@mdickinson: I extracted the sys.float_info update from commit 0b2ab21. Would you mind to double check it? I removed references to math.ulp() since this PR is for Python 3.8. |
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.
LGTM; it's definitely an improvement on the existing documentation.
The wording for DBL_MAX_10_EXP
is a bit vague and questionable (what does "in the range of representable finite floats" actually mean?), but that's not a problem introduced in this PR, and it's something that could be fixed separately.
I have no idea how to explain it differently. So I let you propose another PR once this one is merged :-D |
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
I'm having trouble backporting to |
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
Specify that sys.float_info.min is only the minimum normalized float. (cherry picked from commit 9362f85) Co-authored-by: Victor Stinner <vstinner@python.org>
GH-17994 is a backport of this pull request to the 3.7 branch. |
Specify that sys.float_info.min is only the minimum normalized float.
https://bugs.python.org/issue39310