From: Guido van Rossum Date: Fri, 31 Mar 2000 03:29:39 +0000 (+0000) Subject: Add back an obscure "feature" to the Obj version of Tkapp_Call(): a X-Git-Tag: v1.6a1~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64231e5c39070ab4f8d92708cdc0b5799392b042;p=python Add back an obscure "feature" to the Obj version of Tkapp_Call(): a None in an argument list *terminates* the argument list: further arguments are *ignored*. This isn't kosher, but too much code relies on it, implicitly. For example, IDLE was pretty broken. --- diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 47edf626eb..601a70c56e 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -604,6 +604,10 @@ Tkapp_Call(self, args) for (i = 0; i < objc; i++) { PyObject *v = PyTuple_GetItem(args, i); + if (v == Py_None) { + objc = i; + break; + } objv[i] = AsObj(v); if (!objv[i]) goto finally;