Mark Dickinson dicki...@gmail.com added the comment:
I think the arguments to rgb_to_hls are supposed to be floats in the range
[0.0, 1.0].
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9149
David Hood thoughtfulbl...@gmail.com added the comment:
And Mark would seem to be entirely correct in this.
Colour me embarrassed for missing that one.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from David Hood thoughtfulbl...@gmail.com:
colorsys.py function rgb_to_hls will crash on the RGB color (0,2,1) on line 68
with a division by zero error.
68 else: s = (maxc-minc) / (2.0-maxc-minc)
--
messages: 109181
nosy: David.Hood
priority: normal
severity: normal
Changes by Brian Curtin cur...@acm.org:
--
components: +Library (Lib)
stage: - unit test needed
type: crash - behavior
versions: +Python 2.7 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9149