[issue33289] tkinter askcolor returning floats for r, g, b values instead of ints

Bryan Oakley report at bugs.python.org
Thu Jul 12 11:22:48 EDT 2018


Bryan Oakley <bryan.oakley at gmail.com> added the comment:

yes, this is a well known backwards incompatibility. In python 2, the
division operator returns an integer if both operands are integers. In
python 3 it returns a float.

https://www.python.org/dev/peps/pep-0238/

On Thu, Jul 12, 2018 at 8:48 AM STINNER Victor <report at bugs.python.org>
wrote:

>
> STINNER Victor <vstinner at redhat.com> added the comment:
>
> Is this issue a regression of Python 3? red/256 gave an integer on Python
> 2?
>
> ----------
> nosy: +vstinner
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue33289>
> _______________________________________
>

----------
title: tkinter askcolor returning floats for r,g,b values instead of ints -> tkinter askcolor returning floats for r, g, b values instead of ints

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33289>
_______________________________________


More information about the Python-bugs-list mailing list