]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42452: Improve colorsys.rgb_to_hls code (GH-23306)
authorJulien Jerphanion <git@jjerphan.xyz>
Sat, 28 Nov 2020 07:11:19 +0000 (07:11 +0000)
committerGitHub <noreply@github.com>
Sat, 28 Nov 2020 07:11:19 +0000 (02:11 -0500)
commitf9195318a863e237f41ed7665c767028cde1c9a3
treef4576ae54276a274cb1cdd990fa007daa371b00e
parent44ca05afc89c9967f5dbc6c3ad89fc298c460e93
bpo-42452: Improve colorsys.rgb_to_hls code (GH-23306)

Cache repeated sum and difference to make code slightly faster and easier to read.
Lib/colorsys.py