[Python-checkins] python/dist/src/Python bltinmodule.c,2.293,2.294

nascheme at users.sourceforge.net nascheme at users.sourceforge.net
Thu Aug 14 14:37:36 EDT 2003


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv3768/Python

Modified Files:
	bltinmodule.c 
Log Message:
Make filter(bool, ...) as fast as filter(None, ...).


Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.293
retrieving revision 2.294
diff -C2 -d -r2.293 -r2.294
*** bltinmodule.c	2 Aug 2003 07:42:56 -0000	2.293
--- bltinmodule.c	14 Aug 2003 20:37:34 -0000	2.294
***************
*** 198,202 ****
  		}
  
! 		if (func == Py_None) {
  			ok = PyObject_IsTrue(item);
  		}
--- 198,202 ----
  		}
  
! 		if (func == (PyObject *)&PyBool_Type || func == Py_None) {
  			ok = PyObject_IsTrue(item);
  		}





More information about the Python-checkins mailing list