changeset: 85763:65dd0de6b4a5 parent: 85760:0e794f6396fb parent: 85762:08c45e18e7b2 user: Serhiy Storchaka date: Fri Sep 20 23:24:20 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 0e794f6396fb -r 65dd0de6b4a5 Misc/NEWS --- a/Misc/NEWS Fri Sep 20 21:26:56 2013 +0300 +++ b/Misc/NEWS Fri Sep 20 23:24:20 2013 +0300 @@ -12,6 +12,9 @@ Library ------- +- Issue #3015: Fixed tkinter with wantobject=False. Any Tcl command call + returned empty string. + - Issue #19037: The mailbox module now makes all changes to maildir files before moving them into place, to avoid race conditions with other programs that may be accessing the maildir directory. diff -r 0e794f6396fb -r 65dd0de6b4a5 Modules/_tkinter.c --- a/Modules/_tkinter.c Fri Sep 20 21:26:56 2013 +0300 +++ b/Modules/_tkinter.c Fri Sep 20 23:24:20 2013 +0300 @@ -1107,10 +1107,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; }