As discussed on python-dev, changed builtin.zip() to handle zero arguments
by returning an empty list instead of raising a TypeError.
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 49fcc09..fb92478 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -1916,11 +1916,9 @@
PyObject *itlist; /* tuple of iterators */
int len; /* guess at result length */
- if (itemsize < 1) {
- PyErr_SetString(PyExc_TypeError,
- "zip() requires at least one sequence");
- return NULL;
- }
+ if (itemsize == 0)
+ return PyList_New(0);
+
/* args must be a tuple */
assert(PyTuple_Check(args));