changeset: 85762:08c45e18e7b2 branch: 3.3 parent: 85758:68a7d77a90c3 user: Serhiy Storchaka date: Fri Sep 20 23:21:44 2013 +0300 files: Misc/NEWS Modules/_tkinter.c description: Issue #3015: Fixed tkinter with wantobject=False. Any Tcl command call returned empty string. diff -r 68a7d77a90c3 -r 08c45e18e7b2 Misc/NEWS --- a/Misc/NEWS Fri Sep 20 21:24:39 2013 +0300 +++ b/Misc/NEWS Fri Sep 20 23:21:44 2013 +0300 @@ -68,6 +68,9 @@ Library ------- +- Issue #3015: Fixed tkinter with wantobject=False. Any Tcl command call + returned empty string. + - Issue #18050: Fixed an incompatibility of the re module with Python 3.3.0 binaries. diff -r 68a7d77a90c3 -r 08c45e18e7b2 Modules/_tkinter.c --- a/Modules/_tkinter.c Fri Sep 20 21:24:39 2013 +0300 +++ b/Modules/_tkinter.c Fri Sep 20 23:21:44 2013 +0300 @@ -1227,10 +1227,7 @@ res = FromObj((PyObject*)self, value); Tcl_DecrRefCount(value); } else { - const char *s = Tcl_GetStringResult(self->interp); - const char *p = s; - - res = PyUnicode_FromStringAndSize(s, (int)(p-s)); + res = PyUnicode_FromString(Tcl_GetStringResult(self->interp)); } return res; }