diff --git a/Misc/NEWS b/Misc/NEWS index 106b08a419e..8f4e485f61c 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -76,6 +76,8 @@ Core and Builtins Library ------- +- Issue #1581476: Always use the Tcl global namespace when calling into Tcl. + - Issue #2047: shutil.move() could believe that its destination path was inside its source path if it began with the same letters (e.g. "src" vs. "src.new"). diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index f101450de36..c1060f6d4cb 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -1284,8 +1284,7 @@ Tkapp_Call(PyObject *selfptr, PyObject *args) int objc, i; PyObject *res = NULL; TkappObject *self = (TkappObject*)selfptr; - /* Could add TCL_EVAL_GLOBAL if wrapped by GlobalCall... */ - int flags = TCL_EVAL_DIRECT; + int flags = TCL_EVAL_DIRECT | TCL_EVAL_GLOBAL; /* If args is a single tuple, replace with contents of tuple */ if (1 == PyTuple_Size(args)){