[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

Serhiy Storchaka report at bugs.python.org
Mon Jul 7 23:14:40 CEST 2014


Serhiy Storchaka added the comment:

I have no strong opinion. Definitely getboolean() (and other getXXX) is not consistent. The question is what should getboolean (and BooleanVar.get) always return, bool or int? Note that since 8.6 Tcl doesn't use special boolean type internally and use integers 0 and 1 to represent boolean values. So any boolean values returned from Tk will be converted by Tkinter to 0/1.

----------
versions: +Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15133>
_______________________________________


More information about the Python-bugs-list mailing list