[issue26296] colorsys rgb_to_hls algorithm error

2017-01-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > The modulus fixes it for exact numbers. It doesn't produce exactly the same > result with floats, because of rounding. Is that a problem? I don't think that is a problem. The function uses a number of floating point operations producing inexact

[issue26296] colorsys rgb_to_hls algorithm error

2017-01-13 Thread Bryan B
Bryan B added the comment: Well, the other issue was resolved by updating Python on my computer to 3.6 ;) Setting up the entire Python build and test environment for an issue this small seems a little excessive, especially for a module that seems seldomly used. I'm gonna have to be that guy