Skip to content

Commit

Permalink
Issue #3015: Fixed tkinter with wantobject=False. Any Tcl command call
Browse files Browse the repository at this point in the history
returned empty string.
  • Loading branch information
serhiy-storchaka committed Sep 20, 2013
1 parent de7b064 commit d21db3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Misc/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ Core and Builtins
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.

Expand Down
5 changes: 1 addition & 4 deletions Modules/_tkinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1227,10 +1227,7 @@ Tkapp_CallResult(TkappObject *self)
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;
}
Expand Down

0 comments on commit d21db3c

Please sign in to comment.