diff --git a/Misc/NEWS b/Misc/NEWS index 36dfa2c651d..71f9ca19dbf 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -152,6 +152,8 @@ Core and Builtins Library ------- +- Issue #1581476: Always use the Tcl global namespace when calling into Tcl. + - Fix a bug in the trace module where a bytes object from co_lnotab had its items being passed through ord(). diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 81ec6a06899..eed7177731e 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -1236,8 +1236,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)){