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 serhiy.storchaka
Recipients serhiy.storchaka
Date 2015-04-07.08:41:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
getint, getdouble and getboolean were thin wrappers around Tcl functions that converted string result of Tcl call to specified Python type. Since 2.3 _tkinter can return not only string, but int, float, etc and Tcl_Obj (if wantobject is True). getXXX methods was updated to work with respective automatically converted types (getint with int, etc), but they don't work with general Tcl_Obj, so can't be applied to the result of _tkinter call in general case. As a workaround you should use int(str(value)) or like.

Support of Tcl_Obj in getbool was added in issue15133. Proposed patch adds support of Tcl_Obj in getint and getdouble and int in getdouble. It also restores the use of getint and getdouble in Tkinter.
Date User Action Args
2015-04-07 08:41:04serhiy.storchakasetrecipients: + serhiy.storchaka
2015-04-07 08:41:04serhiy.storchakasetmessageid: <>
2015-04-07 08:41:03serhiy.storchakalinkissue23880 messages
2015-04-07 08:41:03serhiy.storchakacreate