Issue #3015: Fixed tkinter with wantobject=False. Any Tcl command call
returned empty string.
This commit is contained in:
parent
c8bf95cfc5
commit
31f477c7eb
@ -68,6 +68,9 @@ Core and Builtins
|
|||||||
Library
|
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
|
- Issue #18050: Fixed an incompatibility of the re module with Python 3.3.0
|
||||||
binaries.
|
binaries.
|
||||||
|
|
||||||
|
@ -1227,10 +1227,7 @@ Tkapp_CallResult(TkappObject *self)
|
|||||||
res = FromObj((PyObject*)self, value);
|
res = FromObj((PyObject*)self, value);
|
||||||
Tcl_DecrRefCount(value);
|
Tcl_DecrRefCount(value);
|
||||||
} else {
|
} else {
|
||||||
const char *s = Tcl_GetStringResult(self->interp);
|
res = PyUnicode_FromString(Tcl_GetStringResult(self->interp));
|
||||||
const char *p = s;
|
|
||||||
|
|
||||||
res = PyUnicode_FromStringAndSize(s, (int)(p-s));
|
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user