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

Improve colorsys.rgb_to_hls code · Issue #86618 · python/cpython · GitHub

Repository navigation

Improve colorsys.rgb_to_hls code #86618

Closed

Description

mannequin
BPO 42452
Nosy @terryjreedy, @jjerphan
PRs
  • gh-86618: Improve colorsys.rgb_to_hls code #23306
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2020-11-28.07:12:39.305>
    created_at = <Date 2020-11-24.14:09:55.925>
    labels = ['type-feature', 'library', '3.10']
    title = 'Improve colorsys.rgb_to_hls code'
    updated_at = <Date 2020-11-28.07:12:39.304>
    user = 'https://github.com/jjerphan'

    bugs.python.org fields:

    activity = <Date 2020-11-28.07:12:39.304>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-11-28.07:12:39.305>
    closer = 'terry.reedy'
    components = ['Library (Lib)']
    creation = <Date 2020-11-24.14:09:55.925>
    creator = 'jjerphan'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42452
    keywords = []
    message_count = 3.0
    messages = ['381748', '381981', '381982']
    nosy_count = 2.0
    nosy_names = ['terry.reedy', 'jjerphan']
    pr_nums = ['23306']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue42452'
    versions = ['Python 3.10']

    Activity

    1. jjerphan commented on Nov 24, 2020

      jjerphanmannequin
      MannequinAuthor

      This issue has been created after the PR.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      type-featureA feature request or enhancement
      on Nov 24, 2020
    3. terryjreedy commented on Nov 28, 2020

      Member

      New changeset f919531 by Julien Jerphanion in branch 'master':
      bpo-42452: Improve colorsys.rgb_to_hls code (GH-23306)
      f919531

    4. terryjreedy commented on Nov 28, 2020

      Member

      The change was a suggested TODO in the code itself.

    5. changed the title [-]FIX Optimize 'rgb_to_hls'[/-] [+]Improve colorsys.rgb_to_hls code[/+] on Nov 28, 2020
    6. changed the title [-]FIX Optimize 'rgb_to_hls'[/-] [+]Improve colorsys.rgb_to_hls code[/+] on Nov 28, 2020
    7. transferred this issue fromon Apr 10, 2022
    8. terryjreedy commented on Jul 11, 2023

      Member

      As noted in issue #106498, the TODO comment and this patch were incorrect in that 2.0 - maxc - minc does not equal 2.0 - (maxc + minc) for maxc, minc = 1.0, 0.9999999999999999 because the float sum is 2.0, leaving 0.0 and causing ZeroDivisionError, whereas the correct subtraction leaves 1.1102230246251565e-16.

    9. added 2 commits that reference this issue on Jul 11, 2023
    10. added 2 commits that reference this issue on Jul 11, 2023
    11. added 2 commits that reference this issue on Jul 11, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions


        Back | FazBrowse Home | New Git URL