Skip to content
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

[3.8] bpo-39310: Update sys.float_info documentation #17982

Merged
merged 1 commit into from Jan 13, 2020

Conversation

@vstinner
Copy link
Member

vstinner commented Jan 13, 2020

Specify that sys.float_info.min is only the minimum normalized float.

https://bugs.python.org/issue39310

Specify that sys.float_info.min is only the minimum normalized float.
@vstinner

This comment has been minimized.

Copy link
Member Author

vstinner commented Jan 13, 2020

@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.

Copy link
Member

mdickinson left a comment

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.

@vstinner

This comment has been minimized.

Copy link
Member Author

vstinner commented Jan 13, 2020

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

@vstinner vstinner merged commit 9362f85 into python:3.8 Jan 13, 2020
6 checks passed
6 checks passed
Docs
Details
Azure Pipelines PR #20200113.17 succeeded
Details
bedevere/issue-number Issue number 39310 found
Details
bedevere/maintenance-branch-pr Valid maintenance branch PR title.
bedevere/news "skip news" label found
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@vstinner vstinner deleted the vstinner:float_info branch Jan 13, 2020
@miss-islington

This comment has been minimized.

Copy link

miss-islington commented Jan 13, 2020

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒🤖

@miss-islington

This comment has been minimized.

Copy link

miss-islington commented Jan 13, 2020

I'm having trouble backporting to 3.7. Reason: 'Error 110 while writing to socket. Connection timed out.'. Please retry by removing and re-adding the needs backport to 3.7 label.

@miss-islington

This comment has been minimized.

Copy link

miss-islington commented Jan 13, 2020

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒🤖

miss-islington added a commit to miss-islington/cpython that referenced this pull request Jan 13, 2020
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>
@bedevere-bot

This comment has been minimized.

Copy link

bedevere-bot commented Jan 13, 2020

GH-17994 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request Jan 13, 2020
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.