diff Python/bltinmodule.c @ 30774:2d98710f272e legacy-trunk

Use PyArg_UnpackTuple() where possible.
author Raymond Hettinger <python@rcn.com>
date Sat, 25 Oct 2003 06:41:37 +0000
parents 3b59fa5d25b1
children df9d8f7e4c9c
line wrap: on
line diff
--- a/Python/bltinmodule.c	Sat Oct 25 06:37:47 2003 +0000
+++ b/Python/bltinmodule.c	Sat Oct 25 06:41:37 2003 +0000
@@ -1806,7 +1806,7 @@
 	PyObject *result = NULL;
 	PyObject *temp, *item, *iter;
 
-	if (!PyArg_ParseTuple(args, "O|O:sum", &seq, &result))
+	if (!PyArg_UnpackTuple(args, "sum", 1, 2, &seq, &result))
 		return NULL;
 
 	iter = PyObject_GetIter(seq);