]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 69222 via svnmerge from
authorGuilherme Polo <ggpolo@gmail.com>
Mon, 2 Feb 2009 21:23:52 +0000 (21:23 +0000)
committerGuilherme Polo <ggpolo@gmail.com>
Mon, 2 Feb 2009 21:23:52 +0000 (21:23 +0000)
svn+ssh://pythondev/python/branches/py3k

................
  r69222 | guilherme.polo | 2009-02-02 19:17:09 -0200 (Mon, 02 Feb 2009) | 13 lines

  Merged revisions 69217,69219 via svnmerge from
  svn+ssh://pythondev/python/trunk

  ........
    r69217 | guilherme.polo | 2009-02-02 19:08:32 -0200 (Mon, 02 Feb 2009) | 1 line

    Fix for issue #1581476
  ........
    r69219 | guilherme.polo | 2009-02-02 19:14:14 -0200 (Mon, 02 Feb 2009) | 1 line

    NEWS entry for issue #1581476
  ........
................

Misc/NEWS
Modules/_tkinter.c

index 9566e3b0f681bd6cfd2d5e3999cc1526882e36e5..d3ac95c0663974ffd638079cf19bbb412e3d36e2 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -108,6 +108,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").
index 81ec6a06899efee373d6f7d47ee7831b4120f0a5..eed7177731e54745ec82abe53b2585723bac32d9 100644 (file)
@@ -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)){