[issue23880] Tkinter: getint and getdouble should support Tcl_Obj

2015-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed in the default branch only. If other issues with Tcl/Tk 8.5 or 8.6 will be reported, we could apply general solution instead of particular workarounds in maintained branches too. -- assignee: -> serhiy.storchaka resolution: -> fixed stage

[issue23880] Tkinter: getint and getdouble should support Tcl_Obj

2015-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset cb80dd82d3da by Serhiy Storchaka in branch 'default': Issue #23880: Tkinter's getint() and getdouble() now support Tcl_Obj. https://hg.python.org/cpython/rev/cb80dd82d3da -- nosy: +python-dev ___ Python t

[issue23880] Tkinter: getint and getdouble should support Tcl_Obj

2015-04-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file39192/tkinter_getxxx_tclobj-3.4.patch ___ Python tracker ___ ___ Python-b

[issue23880] Tkinter: getint and getdouble should support Tcl_Obj

2015-04-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file39193/tkinter_getxxx_tclobj-2.7.patch ___ Python tracker ___ ___ Python-b

[issue23880] Tkinter: getint and getdouble should support Tcl_Obj

2015-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >> 2. Does the change break existing code? > > Usually not. I meant that the only difference (except that now Tkinter can work in cases where it failed before) is that that some exceptions can change its type from ValueError to TclError. But first, these ex

[issue23880] Tkinter: getint and getdouble should support Tcl_Obj

2015-04-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > 0. It seems that this pushes conversions from python code (app.py, > tkinter.py) to C (_tkinter.py). Correct? What is being gained from a user > viewpoint? The benefit is that widget.tk.getint(widget.tk.call(...)) (and widget.getint(widget.call(...)))

[issue23880] Tkinter: getint and getdouble should support Tcl_Obj

2015-04-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't quite understand this, but I think I should. Here are preliminary questions. 0. It seems that this pushes conversions from python code (app.py, tkinter.py) to C (_tkinter.py). Correct? What is being gained from a user viewpoint? 1. "getint, getdou

[issue23880] Tkinter: getint and getdouble should support Tcl_Obj

2015-04-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: 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 metho

[issue23880] Tkinter: getint and getdouble should support Tcl_Obj

2015-04-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai