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:
parent
6148c2cfa6
commit
64231e5c39
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue