commit | 5cf6394b126bcbc7a3e97d88b8b2d6fd51f3bee7 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sat Oct 25 06:41:37 2003 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sat Oct 25 06:41:37 2003 +0000 |
tree | 8562a3674472af98808947e8552943763d142113 | |
parent | 4514369f27c8c81af0736782c98689457df39ed5 [diff] [blame] |
Use PyArg_UnpackTuple() where possible.
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 29804f5..0309f1de 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c
@@ -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);