[Python-checkins] CVS: python/dist/src/Modules _tkinter.c,1.94,1.95

Guido van Rossum python-dev@python.org
Thu, 30 Mar 2000 22:29:42 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Modules
In directory eric:/projects/python/develop/guido/src/Modules

Modified Files:
	_tkinter.c 
Log Message:
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.


Index: _tkinter.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Modules/_tkinter.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -C2 -r1.94 -r1.95
*** _tkinter.c	2000/03/31 00:51:37	1.94
--- _tkinter.c	2000/03/31 03:29:39	1.95
***************
*** 605,608 ****
--- 605,612 ----
  		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])