FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.11] gh-106498: Revert incorrect colorsys.rgb_to_hls change (GH-106627) by miss-islington · Pull Request #106633 · python/cpython · GitHub

Repository navigation

[3.11] gh-106498: Revert incorrect colorsys.rgb_to_hls change (GH-106627) - #106633

Merged
terryjreedy merged 1 commit into
python:3.11from
miss-islington:backport-a2d54d4-3.11
Jul 11, 2023
Merged

terryjreedy merged 1 commit into
python:3.11from
miss-islington:backport-a2d54d4-3.11

Conversation

miss-islington commented Jul 11, 2023 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

gh-86618 assumed a-b-c = a-(b+c) = a-d where d = b+d.
For floats 2.0, 1.0, and 0.9999999999999999, this assumption
is false. The net change of 1.1102230246251565e-16 to 0.0
results in division by 0. Revert the replacement. Add test.
(cherry picked from commit a2d54d4)

Co-authored-by: Terry Jan Reedy tjreedy@udel.edu

…H-106627)

pythongh-86618 assumed a-b-c = a-(b+c) = a-d where d = b+d.
For floats 2.0, 1.0, and 0.9999999999999999, this assumption
is false.  The net change of 1.1102230246251565e-16 to 0.0
results in division by 0.  Revert the replacement.  Add test.
(cherry picked from commit a2d54d4)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL