[Python-checkins] python/dist/src/Python bltinmodule.c,2.298,2.299

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Sat Oct 25 02:41:39 EDT 2003


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

Modified Files:
	bltinmodule.c 
Log Message:
Use PyArg_UnpackTuple() where possible.

Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.298
retrieving revision 2.299
diff -C2 -d -r2.298 -r2.299
*** bltinmodule.c	12 Oct 2003 19:09:37 -0000	2.298
--- bltinmodule.c	25 Oct 2003 06:41:37 -0000	2.299
***************
*** 1807,1811 ****
  	PyObject *temp, *item, *iter;
  
! 	if (!PyArg_ParseTuple(args, "O|O:sum", &seq, &result))
  		return NULL;
  
--- 1807,1811 ----
  	PyObject *temp, *item, *iter;
  
! 	if (!PyArg_UnpackTuple(args, "sum", 1, 2, &seq, &result))
  		return NULL;
  





More information about the Python-checkins mailing list