Kaydet (Commit) 8fd86cc4 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Only return objects if wantobjects is set in GetVar.

üst 77892373
......@@ -1647,7 +1647,12 @@ GetVar(PyObject *self, PyObject *args, int flags)
ENTER_TCL
tres = Tcl_GetVar2Ex(Tkapp_Interp(self), name1, name2, flags);
ENTER_OVERLAP
res = FromObj(self, tres);
if (((TkappObject*)self)->wantobjects) {
res = FromObj(self, tres);
}
else {
res = PyString_FromString(Tcl_GetString(tres));
}
LEAVE_OVERLAP_TCL
return res;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment