Will Pittman added the comment:
oh, thank you very much and sorry for my negligence!
--
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
Changes by Will Pittman :
--
title: colorsys.rgb_to_hsv always returns saturation as 0 (python2.7.13 only)
-> colorsys.rgb_to_hsv always returns saturation as 0 (python2.7 only)
___
Python tracker
<http://bugs.python.org/issu
Will Pittman added the comment:
The bug appears to be caused by the difference in division
symbols between python3 vs python2.
The issue appears to be resolved if you add the following line to the
`/usr/lib/python2.7.13/colorsys.py` module (or if all arguments are converted
to floats).
from
New submission from Will Pittman:
colorsys.rgb_to_hsv appears to be broken on python2.7.13 (on archlinux).
Saturation is always reported as 0.
ex:
import colorsys
rgb_to_hsv( 127, 116, 18 )
>>> (0.1, 0, 127)
--
messages: 288380
nosy: Will Pittman
priorit