[Python-checkins] python/dist/src/Modules itertoolsmodule.c,
1.18.6.2, 1.18.6.3
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Sat Aug 30 16:14:48 EDT 2003
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv23105/Modules
Modified Files:
Tag: release23-maint
itertoolsmodule.c
Log Message:
* Add news item for the previous bugfix
* Backport itertoolsmodule.c 1.19 to re-sync Py2.3.1 with Py2.4.
Index: itertoolsmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/itertoolsmodule.c,v
retrieving revision 1.18.6.2
retrieving revision 1.18.6.3
diff -C2 -d -r1.18.6.2 -r1.18.6.3
*** itertoolsmodule.c 30 Aug 2003 00:11:16 -0000 1.18.6.2
--- itertoolsmodule.c 30 Aug 2003 22:14:46 -0000 1.18.6.3
***************
*** 1511,1520 ****
int tuplesize = PySequence_Length(args);
- if (tuplesize < 1) {
- PyErr_SetString(PyExc_TypeError,
- "izip() requires at least one sequence");
- return NULL;
- }
-
/* args must be a tuple */
assert(PyTuple_Check(args));
--- 1511,1514 ----
***************
*** 1600,1603 ****
--- 1594,1599 ----
PyObject *olditem;
+ if (tuplesize == 0)
+ return NULL;
if (result->ob_refcnt == 1) {
Py_INCREF(result);
More information about the Python-checkins
mailing list