This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Bryan.Oakley
Recipients Bryan.Oakley
Date 2018-04-16.21:49:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1523915381.82.0.682650639539.issue33289@psf.upfronthosting.co.za>
In-reply-to
Content
Even though the underlying tcl/tk interpreter is returning ints, askcolor is converting the values to floats. My guess is this is an oversight related to the change in functionality of the / operator in python3.

this:

    return (r/256, g/256, b/256), str(result)

should probably be this:

    return (r//256, g//256, b//256), str(result)
History
Date User Action Args
2018-04-16 21:49:41Bryan.Oakleysetrecipients: + Bryan.Oakley
2018-04-16 21:49:41Bryan.Oakleysetmessageid: <1523915381.82.0.682650639539.issue33289@psf.upfronthosting.co.za>
2018-04-16 21:49:41Bryan.Oakleylinkissue33289 messages
2018-04-16 21:49:41Bryan.Oakleycreate