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.
This commit is contained in:
Guido van Rossum 2000-03-31 03:29:39 +00:00
parent 6148c2cfa6
commit 64231e5c39
1 changed files with 4 additions and 0 deletions

View File

@ -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;